@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 28, 45, 0.4);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --pitch-green: #10b981;
    --trophy-gold: #f59e0b;
    --accent-red: #ef4444;
    --font-sans: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Header & Navbar */
header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--pitch-green);
}

/* Hero Countdown */
.hero-section {
    padding: 60px 0 40px 0;
    text-align: center;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.hero-subtitle {
    color: var(--pitch-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-size: 14px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 15px;
    min-width: 90px;
}

.countdown-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--trophy-gold);
    display: block;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Ad Placement Slots */
.ad-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 30px 0;
}

.ad-header-banner {
    max-width: 728px;
    margin: 20px auto;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--pitch-green);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Schedule Section */
.schedule-grid {
    display: grid;
    gap: 20px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
}

.match-info {
    flex: 1;
}

.match-stage {
    font-size: 12px;
    color: var(--pitch-green);
    font-weight: 600;
    text-transform: uppercase;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.vs-divider {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.match-time-box {
    text-align: right;
}

.match-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.match-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.timezone-label {
    font-size: 11px;
    color: var(--pitch-green);
    text-transform: uppercase;
    font-weight: 600;
}

.live-badge {
    background: var(--accent-red);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
    display: inline-block;
    margin-bottom: 5px;
}

/* Standings Panel */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 20px;
}

.group-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--trophy-gold);
}

.table-responsive {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.standings-table th {
    color: var(--text-secondary);
    font-weight: 500;
    padding-bottom: 10px;
}

.standings-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.standings-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* TV Guide Panel */
.tv-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tv-card:hover {
    transform: translateY(-3px);
}

.tv-icon {
    font-size: 32px;
    color: var(--pitch-green);
    margin-bottom: 15px;
}

.tv-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tv-region {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.tv-status {
    background: rgba(16, 185, 129, 0.1);
    color: var(--pitch-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Live Commentary Widget */
.live-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.live-match-title {
    font-size: 20px;
    font-weight: 700;
}

.live-score {
    font-size: 24px;
    font-weight: 800;
    color: var(--trophy-gold);
}

.commentary-box {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.commentary-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.commentary-time {
    color: var(--pitch-green);
    font-weight: 700;
    min-width: 45px;
}

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

.commentary-text strong {
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-card {
        padding: 25px 15px;
        margin-bottom: 25px;
    }
    .countdown-container {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .countdown-box {
        min-width: 70px;
        padding: 10px 5px;
    }
    .countdown-value {
        font-size: 24px;
    }
    .countdown-label {
        font-size: 10px;
    }
    .tabs-nav {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    /* Hide scrollbar for Chrome, Safari and Opera */
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    .tabs-nav {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .tab-btn {
        padding: 8px 14px;
        font-size: 14px;
        flex-shrink: 0;
    }
    .match-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    .match-teams {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 10px 0;
    }
    .team {
        font-size: 16px;
    }
    .match-time-box {
        text-align: left;
        width: 100%;
        border-top: 1px solid var(--border-card);
        padding-top: 12px;
    }
    .match-time {
        font-size: 18px;
    }
    .live-widget {
        padding: 15px;
    }
    .live-match-title {
        font-size: 16px;
    }
    .ad-slot {
        padding: 15px 10px;
        font-size: 11px;
    }
}
