/**
 * css/tournament-content.css - Content-Bereiche Styles
 * Pfad: /css/tournament-content.css
 * 
 * Funktionen:
 * - Turnierregeln Cards
 * - "Nach dem Turnier" Highlight-Boxen
 * - Schedule-Info Bereiche
 * - Feature-Icons für Teams
 * - Content-spezifische Komponenten
 */

/* ========================================
   TURNIERREGELN CARDS
======================================== */

.rules-card {
    background: linear-gradient(135deg, #fff, var(--tennis-blue-light));
    border-left: 5px solid var(--gold);
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rules-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    border-left-width: 8px;
}

.rules-card h4 {
    color: var(--tennis-blue-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rules-card h4 i {
    color: var(--gold);
    font-size: 1.5rem;
}

.rules-card ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.rules-card li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--tennis-blue-dark);
}

.rules-card li strong {
    color: var(--tennis-blue);
    font-weight: 600;
}

/* ========================================
   SCHEDULE INFO BEREICHE
======================================== */

.schedule-info {
    background: linear-gradient(135deg, #f8f9ff, var(--tennis-blue-light));
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.schedule-info h4 {
    color: var(--tennis-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.schedule-info h4 i {
    color: var(--gold);
    font-size: 1.6rem;
}

.schedule-info .row {
    align-items: center;
}

.schedule-info .col-md-3 {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid rgba(59, 130, 196, 0.2);
}

.schedule-info .col-md-3:last-child {
    border-right: none;
}

.schedule-info strong {
    color: var(--tennis-blue-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ========================================
   HIGHLIGHT BOX ("Nach dem Turnier")
======================================== */

.highlight-box {
    background: linear-gradient(135deg, #fff, var(--gold-light));
    border: 3px solid var(--gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), #ffed4e, var(--gold));
    animation: metallic-shine 3s infinite;
    background-size: 200% 100%;
}

.highlight-box h3 {
    color: var(--tennis-blue-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.highlight-box h3 i {
    color: var(--gold);
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.highlight-box .row {
    margin-top: 1.5rem;
}

.highlight-box .col-md-6 {
    padding: 1rem;
    border-right: 1px solid rgba(59, 130, 196, 0.2);
}

.highlight-box .col-md-6:last-child {
    border-right: none;
}

.highlight-box p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.highlight-box strong {
    color: var(--tennis-blue);
    font-weight: 600;
    font-size: 1.2rem;
}

/* ========================================
   FEATURE ICONS (für Teams)
======================================== */

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tennis-blue), var(--tennis-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--gold), #ffed4e);
    border-radius: 50%;
    z-index: -1;
    animation: metallic-shine 4s infinite;
    background-size: 200% 200%;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* ========================================
   PRINT BUTTON
======================================== */

.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--tennis-blue-dark);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.print-btn:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--tennis-blue-dark);
}

.print-btn i {
    font-size: 1.2rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .rules-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .schedule-info {
        padding: 1.5rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .print-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .rules-card {
        padding: 1rem;
        border-radius: 0 10px 10px 0;
    }
    
    .rules-card h4 {
        font-size: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .schedule-info {
        padding: 1rem;
        text-align: center;
    }
    
    .schedule-info .col-md-3 {
        border-right: none;
        border-bottom: 1px solid rgba(59, 130, 196, 0.2);
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .schedule-info .col-md-3:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .highlight-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .highlight-box h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .highlight-box .col-md-6 {
        border-right: none;
        border-bottom: 1px solid rgba(59, 130, 196, 0.2);
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .highlight-box .col-md-6:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .print-btn {
        position: static;
        margin: 1rem auto;
        display: flex;
        justify-content: center;
        border-radius: 25px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .rules-card {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .rules-card h4 {
        font-size: 1.1rem;
    }
    
    .schedule-info {
        padding: 0.75rem;
    }
    
    .highlight-box {
        padding: 0.75rem;
    }
    
    .highlight-box h3 {
        font-size: 1.3rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .print-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .print-btn {
        display: none !important;
    }
    
    .rules-card,
    .schedule-info,
    .highlight-box {
        background: white !important;
        border: 1px solid #333 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin: 0.5rem 0 !important;
    }
    
    .rules-card h4,
    .schedule-info h4,
    .highlight-box h3 {
        color: #333 !important;
    }
    
    .feature-icon {
        background: white !important;
        color: #333 !important;
        border: 2px solid #333 !important;
        animation: none !important;
    }
    
    .feature-icon::after {
        display: none !important;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    .rules-card:hover,
    .feature-icon:hover {
        transform: none !important;
        animation: none !important;
    }
    
    .feature-icon::after {
        animation: none !important;
    }
    
    .highlight-box::before {
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    .rules-card,
    .schedule-info,
    .highlight-box {
        border-width: 3px !important;
        font-weight: bold !important;
    }
    
    .feature-icon {
        border: 3px solid #000 !important;
    }
}

/* Focus states für Accessibility */
.rules-card:focus-within,
.schedule-info:focus-within,
.highlight-box:focus-within {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.print-btn:focus {
    outline: 3px solid var(--tennis-blue);
    outline-offset: 3px;
}
