:root {
    --br-green: #009c3b;
    --br-yellow: #ffdf00;
    --br-blue: #002776;
    --ca-red: #D80621;
    --bg-dark: #0a0c10;
    --bg-darker: #050608;
    --text-light: #f4f5f7;
    --text-muted: #a0aab2;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Typography & Titles */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--br-green), var(--br-yellow));
    margin: 1rem 0 2rem 0;
    border-radius: 2px;
}

.divider.center {
    margin: 1rem auto 2rem auto;
    background: linear-gradient(90deg, var(--br-green), var(--ca-red));
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--br-yellow);
    box-shadow: 0 0 15px rgba(255, 223, 0, 0.3);
}

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

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--br-yellow);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('hero-bg.png') center/cover no-repeat;
    text-align: center;
    overflow: hidden;
}

/* Fallback background if hero-bg.png doesn't exist */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 39, 118, 0.4) 0%, rgba(10, 12, 16, 1) 80%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 12, 16, 0.2) 0%, rgba(10, 12, 16, 1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 2rem;
    max-width: 800px;
}

.maple-leaf-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30rem;
    color: rgba(216, 6, 33, 0.05);
    /* CA Red very faint */
    z-index: -1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--br-green), var(--br-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--ca-red);
    color: white;
    box-shadow: 0 10px 20px rgba(216, 6, 33, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(216, 6, 33, 0.4);
}

/* Sections */
section {
    padding: 6rem 0;
}

/* About */
.about {
    background: var(--bg-dark);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    right: -10%;
    top: 20%;
    width: 300px;
    height: 300px;
    background: var(--br-green);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--br-yellow);
    margin-bottom: 0.5rem;
}

.stat-item span {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
}

.canadian-border {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--ca-red);
    border-radius: 20px;
    animation: rotate 20s linear infinite;
    opacity: 0.5;
}

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

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

.about-img {
    width: 100%;
    border-radius: 15px;
    position: relative;
    z-index: 1;
    filter: grayscale(20%);
    transition: var(--transition);
}

.image-wrapper:hover .about-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Roster */
.roster {
    background: var(--bg-darker);
    position: relative;
}

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

.player-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--br-green), var(--br-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.player-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.player-card:hover::before {
    transform: scaleX(1);
}

.player-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
    transition: var(--transition);
}

.player-card:hover .player-number {
    color: rgba(255, 223, 0, 0.2);
}

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.player-info span {
    color: var(--br-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.player-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--br-yellow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.player-card:hover .player-image img {
    transform: scale(1.1);
    border-color: var(--br-green);
}

/* Matches */
.matches {
    background: var(--bg-dark);
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.match-card {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    transition: var(--transition);
}

.match-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.5);
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(216, 6, 33, 0.1);
    border: 1px solid rgba(216, 6, 33, 0.3);
    border-radius: 12px;
    margin-right: 2rem;
    color: var(--ca-red);
}

.match-date .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.match-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.match-details {
    flex: 1;
}

.match-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.match-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-time {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--br-yellow);
    background: rgba(255, 223, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand .footer-logo {
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social h3 {
    margin-bottom: 0.5rem;
    color: var(--br-yellow);
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: #E1306C;
}

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

/* Shop Section */
.shop-section {
    background: linear-gradient(rgba(10, 12, 16, 0.8), rgba(10, 12, 16, 0.8)), url('brazukas.jpg') center/cover no-repeat fixed;
    padding: 8rem 0;
    text-align: center;
}

.shop-banner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.shop-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--br-green), var(--br-yellow), var(--ca-red));
}

.shop-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--br-yellow);
}

.shop-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.shop-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.shop-link {
    font-size: 1.2rem;
    color: var(--br-yellow);
    transition: var(--transition);
}

.shop-link:hover {
    color: var(--ca-red);
    transform: scale(1.2);
}

.shop-nav-item {
    display: flex;
    align-items: center;
}

/* Animations & Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

    .hero h1 {
        font-size: 3rem;
    }

    .match-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .match-time {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 12, 16, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: -1;
    }

    .nav-links.active {
        right: 0;
    }

    .logo span {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================================
   NEW STYLES (Language, Filters, Events, etc)
========================================= */

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-switch button:hover {
    color: var(--br-yellow);
}

.lang-switch button.active {
    color: var(--text-light);
    border-bottom: 2px solid var(--br-yellow);
}

/* Roster Filters */
.roster-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Teams Categories Section */
.teams {
    background: var(--bg-darker);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-cat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-cat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--br-green), var(--br-yellow), var(--ca-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.team-cat-card:hover::before {
    transform: scaleX(1);
}

.cat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--br-green), var(--br-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-cat-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.team-cat-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.cat-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.cat-list li {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cat-list li i {
    color: var(--br-green);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    min-width: 200px;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--br-yellow);
}

/* Utilities */
.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.placeholder-text {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

/* Events */
.events {
    background: var(--bg-darker);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.event-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--br-green);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left-color: var(--br-yellow);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.event-header h3 {
    font-size: 1.3rem;
    color: var(--text-light);
}

.event-date {
    background: rgba(0, 156, 59, 0.1);
    color: var(--br-green);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
}

.event-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-desc {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-light) !important;
}

/* Footer Admin Login */
.footer-admin-link {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.admin-login-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

.admin-login-link:hover {
    color: var(--text-light);
}

.btn-warning {
    background: var(--br-yellow);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-warning:hover {
    background: #e6c900;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}