/* === Design Tokens & Base === */
:root {
    /* Colors - Light Theme with Red, Black, White */
    --color-bg: #ffffff; /* White */
    --color-bg-darker: #f8fafc; /* Slate 50 */
    --color-surface: #ffffff; /* White */
    --color-surface-hover: #f1f5f9; /* Slate 100 */
    
    --color-primary: #dc2626; /* Red 600 */
    --color-primary-hover: #b91c1c; /* Red 700 */
    --color-accent: #000000; /* Black */
    
    --color-text: #0f172a; /* Slate 900 */
    --color-text-muted: #64748b; /* Slate 500 */
    
    --color-border: #e2e8f0; /* Slate 200 */
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
}

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

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

.text-muted {
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.mt-xl {
    margin-top: var(--spacing-lg);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-surface-hover);
    border-color: var(--color-text-muted);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
}

.navbar.scrolled {
    /* No visual changes when scrolling - prevents the "moving" effect */
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text-muted);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600; /* Match the rest of the navigation links */
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    text-transform: none; /* Removed uppercase to fit the menu design */
    letter-spacing: normal;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-cta:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4) !important;
}

.watermark {
    position: relative;
    overflow: hidden;
}

.watermark::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    background-image: url('logo%20uprava.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.watermark > * {
    position: relative;
    z-index: 1;
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-bottom: 0;
    padding-top: 80px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.02) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.3) 75%, 
        rgba(255, 255, 255, 0.7) 92%, 
        var(--color-bg) 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.95);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 20%, 
        rgba(0, 0, 0, 0) 45%, 
        rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 2rem;
    gap: 4rem;
}

.hero-text-wrapper {
    max-width: 700px;
    flex: 1;
}

.hero-image-wrapper {
    flex: 0 0 500px;
    max-width: 100%;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-logo-giant {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.8)) drop-shadow(0 15px 15px rgba(0,0,0,0.6)) drop-shadow(0 -5px 10px rgba(255,255,255,0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 992px) {
    .hero {
        align-items: center;
        padding-bottom: 4rem;
        padding-top: 120px;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2rem;
    }
    .hero h1 {
        white-space: normal;
        font-size: clamp(3rem, 12vw, 4.5rem);
        line-height: 1.1;
    }
    .hero p {
        margin: 0 auto 2rem auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 150px;
        margin-top: 0;
        margin-bottom: 1.5rem;
        align-self: center;
        justify-content: center;
        order: -1;
    }
    .hero-logo-giant {
        animation: none;
    }
}

.hero-logo-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero p {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* === Recruitment Banner === */
.recruitment-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-text) 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin: 4rem auto;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.recruitment-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    width: 60%;
    height: 150%;
    background-image: url('logo%20uprava.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.recruitment-banner > * {
    position: relative;
    z-index: 1;
}

.recruitment-banner h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #ffffff;
}
.recruitment-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    background-color: var(--color-primary);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4);
    transition: all var(--transition-base);
}

/* === Sponsors Section === */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

.sponsor-logo {
    width: 150px;
    height: 80px;
    object-fit: contain;
    transition: all var(--transition-base);
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.btn-hero-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(220, 38, 38, 0.5);
    color: white;
}

.btn-hero-primary svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.btn-hero-primary:hover svg {
    transform: translateX(6px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    background-color: transparent;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
    background-color: white;
    color: var(--color-text);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(255, 255, 255, 0.3);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* === Match Stripe Section === */
.match-stripe-section {
    background-color: var(--color-bg);
    padding: var(--spacing-xl) 0 2rem 0;
}

.match-stripe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15), 0 10px 20px -5px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    border-left: 8px solid var(--color-primary);
    flex-wrap: wrap;
    gap: 1.5rem;
    transform: translateY(-4px);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.match-stripe:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.2), 0 15px 30px -10px rgba(0,0,0,0.1);
}

.stripe-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stripe-badge {
    background-color: var(--color-primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stripe-date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.stripe-game {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

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

.stripe-team.text-right {
    flex-direction: row;
}

.stripe-team img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    background: var(--color-bg);
}

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

.stripe-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--color-bg-darker);
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
}

.stripe-score .win { color: var(--color-primary); }
.stripe-score .lose { color: var(--color-accent); }
.stripe-score .divider { color: var(--color-text-muted); font-size: 1.25rem; }

.stripe-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 9999px;
}

@media (max-width: 1024px) {
    .match-stripe {
        justify-content: center;
        flex-direction: column;
        gap: 1.5rem;
    }
    .stripe-game {
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 576px) {
    .stripe-team .team-name {
        display: none;
    }
    .stripe-game {
        gap: 1rem;
    }
    .stripe-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Original Light Glassmorphism */
.glassmorphism {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

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

.match-badge {
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-date {
    color: var(--color-text-muted);
    font-weight: 600;
}

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

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

.team img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
    padding: 4px;
    background-color: var(--color-bg);
}

.team h3 {
    font-size: 1.25rem;
    text-align: center;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    flex: 1;
}

.score.win {
    color: var(--color-primary);
}

.score.lose {
    color: var(--color-accent);
}

.divider {
    color: var(--color-text-muted);
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.about-image {
    position: relative;
}

.rounded-image {
    border-radius: 24px;
    width: 100%;
}

.shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* === Roster / Team Section === */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.player-card {
    background-color: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    border: 1px solid var(--color-border);
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.player-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.player-card:hover img {
    transform: scale(1.05);
}

.player-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    background: linear-gradient(to top, var(--color-surface) 0%, var(--color-surface) 80%, transparent 100%);
    margin-top: -2rem;
    z-index: 2;
}

.player-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    -webkit-text-stroke: 1px var(--color-border);
}

.player-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.player-position {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* === Gallery Section === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* === Footer === */
.footer {
    background-color: var(--color-bg-darker);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 1rem;
    max-width: 400px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-links ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a, .footer-contact li {
    color: var(--color-text-muted);
}

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

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.creator-credits {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.creator-credits a:hover {
    color: var(--color-primary) !important;
}

/* === Page Header === */
.page-header {
    padding: 150px 0 60px 0;
    background-color: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-border);
}

/* === Pill Navigation === */
.pill-nav-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.pill-nav {
    display: inline-flex;
    background-color: var(--color-surface-hover);
    padding: 0.5rem;
    border-radius: 9999px;
}

.pill-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.pill-btn:hover {
    color: var(--color-text);
}

.pill-btn.active {
    background-color: #fff;
    color: var(--color-text);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

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

/* === Match List === */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.match-list-item {
    display: flex;
    align-items: center;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.match-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.match-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 1.5rem;
    border-right: 1px solid var(--color-border);
    min-width: 80px;
}

.match-date-col .day {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.match-date-col .month {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.match-teams-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.match-teams-col .team {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
}

.match-teams-col .team:first-child {
    text-align: right;
}

.vs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.match-teams-col .vs {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--color-text-muted);
    background-color: var(--color-surface-hover);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.match-teams-col .match-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.1em;
}

.match-location {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.match-time-col {
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-text);
    min-width: 100px;
    text-align: center;
}

.win-label {
    color: var(--color-primary);
    font-size: 1rem;
}
.lose-label {
    color: var(--color-text-muted);
    font-size: 1rem;
}

@media (max-width: 640px) {
    .match-list-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .match-date-col, .match-time-col {
        border: none;
        padding: 0;
        min-width: auto;
    }
    .match-date-col {
        flex-direction: row;
        gap: 0.5rem;
        align-items: baseline;
    }
    .match-teams-col {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    .match-teams-col .team:first-child, .match-teams-col .team {
        text-align: center;
    }
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar .logo img {
        width: 40px;
        height: 40px;
    }
    .navbar .logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }
    
    .hero {
        padding-top: 100px;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .roster-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .experience-badge .years {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .latest-match {
        margin-top: -40px;
    }
}

/* === Scroll to Top Button === */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 9999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
