/* =============================================
   ELO-Insights Report Website
   Green & Black Premier League Theme
   ============================================= */

/* CSS Variables */
:root {
    /* Primary Colors */
    --green-primary: #00FF85;
    --green-secondary: #38E27D;
    --green-dark: #00CC6A;
    --green-glow: rgba(0, 255, 133, 0.3);
    
    /* Background Colors */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #21262D;
    --bg-card: rgba(22, 27, 34, 0.8);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #8B949E;
    --text-muted: #484F58;
    
    /* Accent Colors */
    --ucl-blue: #1E88E5;
    --uel-orange: #FF9800;
    --uecl-green: #76FF03;
    --relegation-red: #F44336;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(0, 255, 133, 0.1) 0%, transparent 50%),
        linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0, 255, 133, 0.02) 50px,
            rgba(0, 255, 133, 0.02) 51px
        );
    pointer-events: none;
}

/* Floating Football Balls */
.floating-balls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.ball {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #fff 0%, #ddd 30%, #aaa 60%, #888 100%);
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.3),
        0 0 30px rgba(0, 255, 133, 0.2);
    animation: float 8s ease-in-out infinite;
    opacity: 0.15;
}

.ball::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    background: #333;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    transform: translate(-50%, -50%);
}

.ball-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.ball-2 {
    top: 60%;
    right: 15%;
    animation-delay: -3s;
    width: 80px;
    height: 80px;
}

.ball-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -5s;
    width: 50px;
    height: 50px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 255, 133, 0.1);
    border: 1px solid rgba(0, 255, 133, 0.3);
    color: var(--green-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.1s both;
    text-shadow: 0 0 60px rgba(0, 255, 133, 0.3);
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 22px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.3s both;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--bg-primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-normal);
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 0 30px rgba(0, 255, 133, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 133, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease 1s both;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid var(--green-primary);
    border-bottom: 2px solid var(--green-primary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(10px) rotate(45deg); }
    60% { transform: translateY(5px) rotate(45deg); }
}

/* =============================================
   Navigation
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 133, 0.1);
    padding: 16px 0;
    transform: translateY(-100%);
    animation: slideDown 0.5s ease 1.5s forwards;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo span {
    color: var(--green-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--green-primary);
}

/* =============================================
   Sections Common
   ============================================= */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 255, 133, 0.1);
    border: 1px solid rgba(0, 255, 133, 0.2);
    color: var(--green-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
}

/* =============================================
   Overview Section
   ============================================= */
.overview {
    background: var(--bg-secondary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 133, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--transition-normal);
}

.overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 133, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.overview-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.overview-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--green-primary);
}

.overview-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* =============================================
   Models Section
   ============================================= */
.models {
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(0, 255, 133, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 133, 0.1);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.model-card.featured {
    border-color: var(--green-primary);
    background: linear-gradient(135deg, rgba(0, 255, 133, 0.1) 0%, var(--bg-card) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-header {
    margin-bottom: 24px;
}

.model-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.model-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.accuracy-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.accuracy-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: var(--green-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: calc(283 - (283 * var(--progress) / 100));
    transition: stroke-dashoffset 1s ease;
}

.accuracy-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 800;
    color: var(--green-primary);
}

.model-desc {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Class-wise Section */
.classwise-section {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 133, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.subsection-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.classwise-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.classwise-bar {
    width: 100%;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bar-label {
    font-weight: 600;
    font-size: 14px;
}

.bar-value {
    color: var(--green-primary);
    font-weight: 700;
}

.bar-track {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: var(--width);
    background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    border-radius: 6px;
    transition: width 1s ease;
}

/* =============================================
   Predictions Section
   ============================================= */
.predictions {
    background: var(--bg-secondary);
}

.standings-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 133, 0.1);
}

.standings-table th,
.standings-table td {
    padding: 16px 20px;
    text-align: left;
}

.standings-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.standings-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.standings-table tbody tr:hover {
    background: rgba(0, 255, 133, 0.05);
}

.standings-table tbody tr:last-child {
    border-bottom: none;
}

.pos {
    font-weight: 800;
    color: var(--text-secondary);
    width: 40px;
}

.team {
    font-weight: 600;
}

.team-badge {
    margin-right: 8px;
}

.points {
    font-weight: 800;
    color: var(--green-primary);
    font-size: 18px;
}

.zone {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zone.ucl {
    background: rgba(30, 136, 229, 0.2);
    color: var(--ucl-blue);
}

.zone.uel {
    background: rgba(255, 152, 0, 0.2);
    color: var(--uel-orange);
}

.zone.uecl {
    background: rgba(118, 255, 3, 0.2);
    color: var(--uecl-green);
}

.zone.rel {
    background: rgba(244, 67, 54, 0.2);
    color: var(--relegation-red);
}

.champions .pos {
    color: var(--green-primary);
    font-size: 18px;
}

.champions .team {
    color: var(--green-primary);
}

.relegation-zone {
    background: rgba(244, 67, 54, 0.05);
}

/* =============================================
   Features Section
   ============================================= */
.features {
    background: 
        radial-gradient(ellipse at 70% 100%, rgba(0, 255, 133, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 133, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: rgba(0, 255, 133, 0.3);
    transform: translateX(5px);
}

.feature-rank {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.feature-bar {
    width: 60px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.feature-fill {
    height: 100%;
    width: var(--width);
    background: var(--green-primary);
    border-radius: 3px;
}

.feature-value {
    width: 50px;
    text-align: right;
    color: var(--green-primary);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 255, 133, 0.1);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-brand h3 span {
    color: var(--green-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-tech {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 133, 0.1);
    transition: var(--transition-fast);
}

.tech-badge:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 12px 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .classwise-section {
        padding: 24px;
    }
    
    .feature-card {
        flex-wrap: wrap;
    }
    
    .feature-bar {
        order: 4;
        width: 100%;
        margin-top: 8px;
    }
    
    .feature-value {
        order: 3;
    }
}
