:root {
    /* Colors */
    --clr-dark: #0a0e17;
    --clr-light: #f8fafc;
    --clr-accent: #38bdf8;
    --clr-glass-bg: rgba(10, 15, 25, 0.65);
    --clr-glass-border: rgba(255, 255, 255, 0.1);
    --clr-glass-shadow: rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--clr-light);
    background-color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Backgrounds */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/round-of-16-football-night.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(4, 7, 13, 0.6), rgba(4, 7, 13, 0.95));
    z-index: -1;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

a {
    color: var(--clr-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--clr-accent);
}

/* Glassmorphism */
.glass-header {
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-glass-border);
}

.glass-panel {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--clr-glass-shadow);
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--clr-light);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list a.active {
    color: var(--clr-accent);
    border-bottom: 2px solid var(--clr-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-light);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--clr-light);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: var(--spacing-xl);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 3rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #94a3b8;
    font-weight: 300;
}

/* Match Board */
.match-board-section {
    padding-bottom: var(--spacing-xl);
}

.match-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.match-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.round-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.match-datetime {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.match-date {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.match-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-accent);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.team:last-child {
    justify-content: flex-end;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
}

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

.vs-divider {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    padding: 0 1rem;
}

/* Sections */
.focus-panel, .note-panel {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.focus-panel h2, .note-panel h3 {
    margin-bottom: 1rem;
}

.focus-panel p, .note-panel p {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.note-panel {
    background: rgba(10, 15, 25, 0.4);
}

.note-panel h3 {
    font-size: 1.25rem;
    color: #94a3b8;
}

.note-panel p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Internal Pages */
.page-content {
    padding: 4rem 0;
}

.content-panel {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-panel h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.content-panel h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: var(--clr-accent);
}

.content-panel p {
    margin-bottom: 1.25rem;
    color: #cbd5e1;
}

/* Forms */
.form-panel {
    max-width: 600px;
}

.form-intro {
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--clr-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.1);
}

select.form-control option {
    background: var(--clr-dark);
    color: var(--clr-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--clr-accent);
    color: var(--clr-dark);
}

.btn-primary:hover, .btn-primary:focus {
    background: #7dd3fc;
    color: var(--clr-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-light);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--clr-light);
}

.btn-outline:hover, .btn-outline:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-light);
}

.return-action {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand span {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-links a:focus {
    color: var(--clr-light);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 2rem);
    max-width: 800px;
    z-index: 2000;
    padding: 1.5rem;
    transition: transform 0.5s ease-out;
    opacity: 0;
    visibility: hidden;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-content a {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Accessibility Focus */
:focus-visible {
    outline: 2px dashed var(--clr-accent);
    outline-offset: 4px;
}

/* Breakpoints */
@media (max-width: 1200px) {
    .match-board {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 25, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--clr-glass-border);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.is-open {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .match-board {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .match-card {
        padding: 1.25rem;
    }
    
    .team-name {
        font-size: 0.95rem;
    }

    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
    }

    .content-panel {
        padding: 1.5rem;
    }
}