/**
 * css/tournament-core.css - Kern-Styles für TC Hugsweier Turnier
 * Pfad: /css/tournament-core.css
 * 
 * Funktionen:
 * - CSS-Variablen und Grundeinstellungen
 * - Basis-Animationen und Transitions
 * - Kernkomponenten wie Hero Section
 * - Team Grid Layout
 * - Wird als ERSTE Turnier-CSS-Datei geladen
 */

/* ========================================
   CSS VARIABLEN
======================================== */

:root {
    --tennis-blue: #3b82c4;
    --tennis-blue-light: #e3f2fd;
    --tennis-blue-dark: #1e3a5f;
    --gold: #ffd700;
    --gold-light: #fff9c4;
    --gold-dark: #b8860b;
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --silver-dark: #a0a0a0;
    --bronze: #cd7f32;
    --bronze-light: #daa520;
    --bronze-dark: #8b4513;
    
    /* Metallische Gradients */
    --gold-metallic: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #b8860b 75%, #ffd700 100%);
    --silver-metallic: linear-gradient(135deg, #e8e8e8 0%, #ffffff 25%, #c0c0c0 50%, #a0a0a0 75%, #e8e8e8 100%);
    --bronze-metallic: linear-gradient(135deg, #daa520 0%, #cd7f32 25%, #b8860b 50%, #8b4513 75%, #cd7f32 100%);
}

/* ========================================
   BASIS ANIMATIONEN
======================================== */

@keyframes metallic-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-gold {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes glow-gold {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 1); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--tennis-blue), var(--tennis-blue-dark));
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/tennis-pattern.png') center/cover;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

.tournament-status {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 1rem 2rem;
    display: inline-block;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

/* ========================================
   CONTENT SECTIONS
======================================== */

.content-section {
    margin: 3rem 0;
}

.content-section h2 {
    color: var(--tennis-blue);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--tennis-blue);
    font-size: 2.5rem;
    border: none;
    margin-bottom: 1rem;
}

.section-header .subtitle {
    color: #6c757d;
    font-size: 1.2rem;
}

/* ========================================
   TEAM GRID & CARDS
======================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.team-card {
    background: white;
    border: 2px solid var(--tennis-blue-light);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.team-card h5 {
    color: var(--tennis-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-stats {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.team-players {
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ========================================
   QUICK ACTIONS
======================================== */

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: white;
    color: var(--tennis-blue);
    border: 2px solid var(--tennis-blue);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-btn:hover {
    background: var(--tennis-blue);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 196, 0.3);
}

.quick-action-btn.primary {
    background: var(--tennis-blue);
    color: white;
}

.quick-action-btn.primary:hover {
    background: var(--tennis-blue-dark);
}

.quick-action-btn.success {
    border-color: #28a745;
    color: #28a745;
}

.quick-action-btn.success:hover {
    background: #28a745;
    color: white;
}

/* ========================================
   BASIS KOMPONENTEN
======================================== */

.back-btn {
    background: var(--gold);
    color: var(--tennis-blue-dark);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: #ffed4e;
    color: var(--tennis-blue-dark);
    text-decoration: none;
    transform: translateX(-5px);
}

/* ========================================
   GEWINNER ICONS (BASIS)
======================================== */

.winner-icon {
    color: var(--gold) !important;
    font-size: 1.1rem !important;
    margin: 0 0.3rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    animation: pulse-gold 2s infinite !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.draw-icon {
    color: #ffc107 !important;
    font-size: 1rem !important;
    margin: 0 0.3rem !important;
    opacity: 0.8 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ========================================
   UTILITY CLASSES
======================================== */

.no-print {
    display: block;
}

@media print {
    .no-print {
        display: none !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States für Accessibility */
*:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ========================================
   RESPONSIVE BASIS
======================================== */

@media (max-width: 768px) {
    .hero-section h1 { 
        font-size: 2rem; 
    }
    
    .team-grid { 
        grid-template-columns: 1fr; 
    }
    
    .quick-actions { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .quick-action-btn { 
        min-width: 200px; 
        justify-content: center; 
    }
}
