/**
 * css/header-footer-includes.css - Styles für Header/Footer Includes
 * Pfad: /css/header-footer-includes.css
 * 
 * Funktionen:
 * - Header Navigation Styles für includes/header.php
 * - Footer Styles für includes/footer.php
 * - Responsive Navigation & Layout
 * - Live-Ergebnisse Button Funktionalität
 * - Admin-Link Styles
 */

/* ========================================
   HEADER NAVIGATION (INCLUDES/HEADER.PHP)
======================================== */

.header-navigation {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-buttons-right {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: var(--gold);
    color: var(--tennis-blue-dark);
    border-color: var(--gold);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.nav-btn.back-btn {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.live-btn {
    background: rgba(40, 167, 69, 0.8);
    border-color: #28a745;
    animation: pulse-live 2s infinite;
}

.nav-btn.live-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.nav-btn.admin-btn {
    background: rgba(220, 53, 69, 0.8);
    border-color: #dc3545;
}

.nav-btn.admin-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

@keyframes pulse-live {
    0% { 
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ========================================
   FOOTER STYLES (INCLUDES/FOOTER.PHP)
======================================== */

.tournament-footer {
    background: linear-gradient(135deg, var(--tennis-blue-dark), var(--tennis-blue));
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.tournament-footer .container {
    max-width: 1200px;
}

.tournament-footer h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.tournament-footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-home-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-home-btn:hover {
    background: var(--gold);
    color: var(--tennis-blue-dark);
    border-color: var(--gold);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--gold);
    text-decoration: none;
    transform: translateX(3px);
}

.footer-info {
    text-align: right;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-info a:hover {
    color: var(--gold);
    text-decoration: none;
}

/* ========================================
   LIVE STATUS BANNER
======================================== */

.live-status-banner {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-info i {
    font-size: 1.5rem;
}

.status-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.status-detail {
    opacity: 0.9;
    margin-left: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Tournament Finished Banner */
.live-status-banner.tournament-finished {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 3px solid var(--gold) !important;
}

.live-status-banner.tournament-finished .status-info i {
    color: var(--gold) !important;
    font-size: 2rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

.live-status-banner.tournament-finished .status-text {
    color: white !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

.finished-dot {
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: glow-gold 2s infinite;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .header-navigation {
        position: static;
        margin-bottom: 2rem;
        padding: 0;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-buttons-right {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        text-align: center;
        justify-content: center;
    }
    
    .tournament-footer {
        padding: 2rem 0 1.5rem;
        text-align: center;
    }
    
    .tournament-footer .row {
        text-align: center;
    }
    
    .tournament-footer .text-end {
        text-align: center !important;
    }
    
    .footer-links {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .live-status-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .status-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .status-detail {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header-navigation {
        padding: 0 1rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .tournament-footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================================
   ACCESSIBILITY & FOCUS STATES
======================================== */

.nav-btn:focus,
.footer-home-btn:focus,
.footer-link:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-btn,
    .footer-home-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-btn,
    .footer-home-btn,
    .footer-link {
        transition: none;
    }
    
    .pulse-live,
    .pulse-dot,
    .glow-gold {
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .header-navigation,
    .tournament-footer,
    .nav-btn,
    .footer-home-btn,
    .live-status-banner {
        display: none !important;
    }
}
