/* ============================================
   VÖRÅ DISC GOLF STATISTICS - BLACK & WHITE THEME
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* ✨ Changed: Black gradient instead of purple */
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header h2 {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.9;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.loading, .error {
    background: white;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spinner {
    border: 4px solid #f3f3f3;
    /* ✨ Changed: Black spinner instead of purple */
    border-top: 4px solid #000000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
}

.error button {
    margin-top: 15px;
    padding: 10px 25px;
    /* ✨ Changed: Black button */
    background: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.error button:hover {
    background: #333333;
}

/* ============================================
   STATS CARDS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* ✨ Added: Black border for emphasis */
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    /* ✨ Added: Black border on hover */
    border: 2px solid #000000;
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    /* ✨ Changed: Black instead of purple */
    color: #000000;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

/* Weather info inside stat cards */
.weather-info {
    margin-top: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.6;
}

.weather-info strong {
    color: #000;
}

/* ============================================
   ✨ NEW: FUN FACTS & PREDICTIONS BOX
   ============================================ */

.fun-facts-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid #000000;
}

.fun-facts-container h3 {
    color: #000000;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.fact-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.fact-item.prediction {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border: 2px solid #3498db;
}

.fact-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.fact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fact-content strong {
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fact-value {
    color: #000000;
    font-size: 1.3em;
    font-weight: bold;
}

.fact-content small {
    color: #666;
    font-size: 0.85em;
    margin-top: 3px;
}

/* ============================================
   CHARTS
   ============================================ */

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #e0e0e0;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #000000;
    font-size: 1.3em;
}

.chart-container canvas {
    max-height: 380px !important;
    height: 380px !important;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer p {
    color: #666;
    margin-bottom: 15px;
}

.refresh-btn {
    padding: 12px 30px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.refresh-btn:hover {
    background: #333333;
    transform: scale(1.05);
}

.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.admin-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   LOGO STYLING
   ============================================ */

/* Small logo next to title (replaces dart emoji) */
.title-logo {
    height: 1.8em;  /* ✅ FIXED: Was 0.4em (way too small!) */
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Club logo in footer (below refresh button) */
.footer-logo {
    display: block;
    max-width: 300px;  /* ✅ FIXED: Was 50px! */
    width: 100%;
    height: auto;
    margin: 40px auto;
    opacity: 0.9;
}

.footer-logo:hover {
    opacity: 1;
}

/* Weather icons styling */
.weather-info i {
    color: #000;
    margin-right: 5px;
    font-size: 1.1em;
}

.weather-info i.fa-sun {
    color: #f39c12;
}

.weather-info i.fa-cloud-sun {
    color: #f39c12;
}

.weather-info i.fa-cloud {
    color: #7f8c8d;
}

.weather-info i.fa-cloud-rain,
.weather-info i.fa-cloud-showers-heavy {
    color: #3498db;
}

.weather-info i.fa-snowflake {
    color: #3498db;
}

.weather-info i.fa-bolt {
    color: #e74c3c;
}

.weather-info i.fa-smog {
    color: #95a5a6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-value {
        font-size: 2em;
    }
    
    /* Fun facts responsive */
    .fun-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .fact-item {
        padding: 12px;
    }
    
    .fact-icon {
        font-size: 2em;
    }
    
    .fact-value {
        font-size: 1.1em;
    }
    
    /* Charts on mobile */
    .chart-container {
        height: 350px;
        padding: 15px;
    }
    
    .chart-container h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .chart-container canvas {
        max-height: 280px !important;
        height: 280px !important;
    }
    
    /* ✅ FIXED: Added missing dot */
    .title-logo {
        height: 1.5em;
    }
    
    .footer-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .chart-container {
        height: 300px;
        padding: 10px;
    }
    
    .chart-container h3 {
        font-size: 1em;
    }
    
    .chart-container canvas {
        max-height: 240px !important;
        height: 240px !important;
    }
    
    .title-logo {
        height: 1.3em;
    }
    
    .footer-logo {
        max-width: 200px;
    }
    
    /* Compact fun facts on small screens */
    .fun-facts-container {
        padding: 15px;
    }
    
    .fact-item {
        gap: 10px;
        padding: 10px;
    }
    
    .fact-icon {
        font-size: 1.8em;
    }
    
    .fact-value {
        font-size: 1em;
    }
}