/* La Liga - Styles */

:root {
    /* Elegant navy + gold palette (Real Madrid inspired) */
    --laliga-dark-blue: #071333;   /* deep navy */
    --laliga-blue: #132d6b;        /* royal navy */
    --laliga-yellow: #d4af37;      /* gold */
    --laliga-red: #0b1020;         /* ink (used as dark stop) */
    --laliga-green: #22c55e;       /* success accent */
    --laliga-orange: #d4af37;      /* deprecated – keep as gold */
    --laliga-purple: #132d6b;      /* deprecated – keep as navy */

    --dark-bg: #050814;            /* page background */
    --dark-gray: #0a1024;          /* cards/surfaces */
    --light-gray: #f5f7ff;
    --white: #ffffff;
    --text-primary: rgba(255, 255, 255, 0.96);
    --text-secondary: rgba(255, 255, 255, 0.72);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header */
.main-header {
    background: linear-gradient(135deg, rgba(7, 19, 51, 0.98) 0%, rgba(19, 45, 107, 0.98) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
    background: transparent;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    display: block;
    height: 110px;
    width: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

.logo img.logo-img {
    background: transparent;
}

.trophy-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s, filter 0.3s;
}

.logo:hover .trophy-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 237, 0, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
}

.logo .subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--laliga-yellow);
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.3px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--laliga-yellow);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--laliga-yellow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--laliga-dark-blue) 0%, var(--laliga-blue) 55%, var(--laliga-red) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 40% 20%, rgba(212, 175, 55, 0.10) 0%, transparent 55%);
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: rotate 20s linear infinite;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 0%, var(--laliga-yellow) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--laliga-yellow);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
}

.hero-dates {
    font-size: 1.3rem;
    color: var(--laliga-yellow);
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Hero samo početna – moderan izgled bez slike */
.hero--home .hero-subtitle {
    font-size: 1.4rem;
    margin-top: 0.75rem;
}

.hero--home .hero-dates {
    margin-top: 0.75rem;
}

/* Pravna napomena u hero-ju (početna) */
.hero-disclaimer {
    max-width: 52rem;
    margin: 2rem auto 0;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-left: 3px solid var(--laliga-yellow);
}

.hero-disclaimer strong {
    color: var(--laliga-yellow);
    font-weight: 600;
}

/* Key dates strip */
.key-dates-strip {
    background: linear-gradient(90deg, var(--laliga-dark-blue) 0%, var(--laliga-blue) 100%);
    padding: 1rem 0;
    border-bottom: 2px solid var(--laliga-yellow);
}

.key-dates-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.key-dates-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.key-dates-range {
    font-size: 1.25rem;
    color: var(--white);
}

.key-dates-range strong {
    color: var(--laliga-yellow);
    font-weight: 700;
}

.key-dates-sep {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Prijave sekcija */
.prijave-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.prijave-section .section-header {
    margin-bottom: 2rem;
}

.prijave-contact {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.prijave-phone {
    color: var(--laliga-yellow);
    font-weight: 600;
    text-decoration: none;
}

.prijave-phone:hover {
    text-decoration: underline;
}

/* Section header (shared) */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Landing promo section - O ligi */
.landing-promo {
    padding: 4.5rem 0;
    background: var(--dark-gray);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

@media (min-width: 640px) {
    .promo-grid {
        gap: 1.75rem;
    }
}

/* 3 kolone na širem ekranu → 3+2 reda, nijedna pločica sama */
@media (min-width: 900px) {
    .promo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 500px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

.promo-card {
    background: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 158, 215, 0.15);
}

.promo-card-inner {
    padding: 2.25rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 158, 215, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.promo-icon-wrap--accent {
    background: rgba(255, 237, 0, 0.12);
}

.promo-card:hover .promo-icon-wrap {
    background: rgba(0, 158, 215, 0.25);
    transform: scale(1.05);
}

.promo-card:hover .promo-icon-wrap--accent {
    background: rgba(255, 237, 0, 0.2);
}

.promo-icon {
    width: 28px;
    height: 28px;
    display: block;
}

.promo-icon svg {
    width: 100%;
    height: 100%;
    color: var(--laliga-blue);
}

.promo-icon-wrap--accent .promo-icon svg {
    color: var(--laliga-yellow);
}

.promo-card-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.promo-card-text {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0;
}

.promo-card-text strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Landing rules section */
.landing-rules {
    padding: 4.5rem 0;
    background: var(--dark-bg);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0;
}

@media (max-width: 900px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
}

.rules-card {
    background: var(--dark-gray);
    border-radius: 16px;
    padding: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rules-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--laliga-green), var(--laliga-blue));
    opacity: 0.9;
}

.rules-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.rules-card-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
    margin-bottom: -0.5rem;
    font-family: 'Inter', sans-serif;
}

.rules-card-title {
    color: var(--laliga-yellow);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.rules-card-text {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0;
}

.rules-card-text strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

/* Age Groups */
.age-groups {
    padding: 4rem 0;
    background: var(--dark-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--laliga-yellow);
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.age-card {
    background: linear-gradient(135deg, var(--laliga-blue) 0%, var(--laliga-dark-blue) 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.age-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 158, 215, 0.4);
}

.age-card.active {
    border: 3px solid var(--laliga-yellow);
    box-shadow: 0 4px 20px rgba(255, 237, 0, 0.35);
}

.age-year {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.age-label {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Matches Section */
.next-matches,
.latest-results {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.matches-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--dark-gray);
    border: 2px solid var(--laliga-blue);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--laliga-blue);
    color: var(--white);
    transform: scale(1.05);
}

.matches-grid,
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.schedule-round-title {
    grid-column: 1 / -1;
    font-size: 1.25rem;
    color: var(--laliga-yellow);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.schedule-round-title:first-child {
    margin-top: 0;
}

.match-card {
    background: var(--dark-gray);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--laliga-red);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
}

.match-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-width: 45%;
}

.team-emblem {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.team:hover .team-emblem {
    transform: scale(1.1);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: break-word;
}

.team-real-name {
    font-size: 0.75rem;
    color: var(--laliga-yellow);
    opacity: 0.8;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.2;
    max-width: 100%;
}

.team-emblem-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 0.5rem;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    display: inline-block;
}

.match-score {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0.5rem;
    color: var(--laliga-red);
    flex-shrink: 0;
    white-space: nowrap;
}

.match-vs {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0.5rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    white-space: nowrap;
}

.match-info {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Top Scorers Preview */
.top-scorers-preview {
    padding: 4rem 0;
    background: var(--dark-gray);
}

.scorers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.scorer-card {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--laliga-green);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scorer-rank {
    font-size: 2rem;
    font-weight: 800;
    color: var(--laliga-green);
    min-width: 40px;
}

.scorer-info {
    flex: 1;
}

.scorer-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.scorer-team {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scorer-goals {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--laliga-green);
}

.view-all-btn {
    display: block;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--laliga-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.view-all-btn:hover {
    background: var(--laliga-blue);
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background: var(--dark-gray);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--laliga-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--laliga-yellow);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--laliga-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Table Styles */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
}

.stats-table thead {
    background: var(--laliga-blue);
}

.stats-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--white);
}

.stats-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table tbody tr:hover {
    background: rgba(0, 158, 215, 0.1);
}

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

/* Team Page Styles */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--dark-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--laliga-red);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
}

.team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover .team-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 15px rgba(227, 6, 19, 0.4));
}

.team-official-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-real-name {
    font-size: 0.9rem;
    color: var(--laliga-yellow);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--laliga-dark-blue);
        flex-direction: column;
        padding: 1rem;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-title::after {
        width: 60px;
        height: 3px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-disclaimer {
        margin-top: 1.5rem;
        padding: 0.85rem 1rem;
        font-size: 0.75rem;
    }

    .age-groups {
        padding: 2rem 0;
    }

    .age-groups .section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .age-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 0;
    }

    .age-card {
        padding: 0.85rem 0.5rem;
        border-radius: 8px;
    }

    .age-card:hover {
        transform: none;
    }

    .age-card.active {
        border-width: 2px;
    }

    .age-year {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .age-label {
        display: none;
    }

    .matches-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        min-height: auto;
        padding: 1.2rem;
    }

    .match-teams {
        gap: 0.5rem;
    }

    .team {
        max-width: 40%;
    }

    .team-name {
        font-size: 0.9rem;
    }

    .team-emblem {
        width: 50px;
        height: 50px;
    }

    .match-vs {
        font-size: 1rem;
        margin: 0 0.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-table {
        font-size: 0.85rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 400px) {
    .age-grid {
        gap: 0.35rem;
    }

    .age-card {
        padding: 0.7rem 0.25rem;
    }

    .age-year {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

