/* Custom styles for tournament cards highlight and animation fixes */

/* Enhanced hover effect for all glass cards */
.glass-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4) !important;
    border-color: var(--primary-gold) !important;
}

/* =========================================
   BUTTON STYLES (GLOBAL OVERRIDES except Mobile Menu)
   ========================================= */

/* Tournament & Hero Buttons: Default State */
.btn-glass {
    transition: all 0.3s ease !important;
    border: 1px solid var(--primary-gold) !important;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Hover: Black Background + Gold Text */
.btn-glass:hover {
    background: #000 !important;
    color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

/* Top Talents "Register Player" - Gold */
.btn-gold {
    background: var(--primary-gold) !important;
    color: #000 !important;
    border: 1px solid var(--primary-gold) !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Hover: Black Background + Gold Text */
.btn-gold:hover {
    background: #000 !important;
    color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

/* "Registration Open" Badge - Gold */
.tournament-status.status-open {
    background: linear-gradient(45deg, #d4af37, #aa8c2c) !important;
    color: #000 !important;
    text-shadow: none !important;
    font-weight: 800;
    border: 1px solid #fff;
}

/* Center Tournament Cards (Global) */
.tournament-card {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tournament-card h3,
.tournament-card p {
    text-align: center !important;
    width: 100%;
}

/* Card glow effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.glass-card:hover .card-glow {
    opacity: 1 !important;
}

/* Affiliation Badge in Hero */
.affiliation-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.affiliation-badge:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Hero Main Image Styling */
.hero-main-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
    animation: float-hero 6s ease-in-out infinite;
    display: block;
    margin: -50px auto 0;
}

@keyframes float-hero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Fix for grid-3 alignment */
.grid-3 {
    align-items: start !important;
}

/* Add side margins to all content sections */
.section-padding {
    padding-left: 5% !important;
    padding-right: 5% !important;
}

/* Container with proper margins */
.container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Fix for features grid (Why Play section) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-card .link-arrow {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}

.feature-card .link-arrow:hover {
    gap: 15px;
    color: var(--primary-gold);
}

/* News Cards Grid - Similar to Features */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    position: relative;
    padding: 40px 30px;
    text-align: center;
}

.news-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.news-date-badge {
    display: inline-block;
    background: var(--primary-gold);
    color: #000;
    padding: 8px 20px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.news-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.news-card .link-arrow {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}

.news-card .link-arrow:hover {
    gap: 15px;
    color: var(--primary-gold);
}

/* Fix for stats ticker (scrolling patti) */
.stats-ticker {
    background: rgba(212, 175, 55, 0.15) !important;
    /* Translucent Gold */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--primary-gold) !important;
    padding: 15px 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 20 !important;
    transform: none !important;
    /* Straight */
    margin-top: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
}

.ticker-wrap {
    display: flex !important;
    white-space: nowrap !important;
    animation: ticker 30s linear infinite !important;
    width: max-content !important;
}

.ticker-item {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin: 0 30px !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Reorder Buttons */
.btn-move {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-move:hover {
    background: var(--primary-gold);
    color: #000;
}

/* Utility classes */
.text-center {
    text-align: center !important;
}

.mb-2 {
    margin-bottom: 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Section title styling */
.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center !important;
    /* Ensure centered */
    width: 100%;
}

.text-gold {
    color: var(--primary-gold);
}

/* Logo Size Override */
.logo img {
    height: 60px !important;
    /* Increased size */
    width: auto !important;
}

/* Executive Committee Grid Spacing */
#executive-grid,
.executive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* News Grid Fix */
#news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-gold);
}

/* =========================================
   MOBILE RESPONSIVE FIXES
   ========================================= */

@media (max-width: 768px) {

    /* Global Container & Padding */
    .container {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100% !important;
    }

    .section-padding {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Header & Navigation */
    .glass-header {
        padding: 10px 0;
    }

    .navbar {
        height: 60px;
        justify-content: space-between;
    }

    .logo {
        font-size: 0.9rem;
        gap: 10px;
    }

    .logo img {
        height: 40px !important;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-gold);
        cursor: pointer;
        z-index: 1001;
    }

    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
    }

    .nav-links a.active {
        color: var(--primary-gold);
    }

    /* Hero Section */
    .hero-3d {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-content-wrapper {
        flex-direction: column-reverse;
        /* Image on top */
        gap: 40px;
    }

    .hero-text {
        padding-right: 0;
        width: 100%;
    }

    .glitch-text {
        font-size: 3rem !important;
        /* Smaller font for mobile */
        letter-spacing: -1px;
        margin-bottom: 15px;
    }

    .sub-hero {
        font-size: 1.5rem !important;
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        height: auto;
        width: 100%;
        padding-top: 0;
        margin-bottom: 20px;
    }

    .hero-main-image {
        max-width: 180px;
        /* Smaller image */
        margin: 0 auto;
    }

    /* Grids to Single Column */
    .grid-3,
    .grid-2,
    .features-grid,
    .news-cards-grid,
    .footer-grid,
    .executive-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Cards */
    .glass-card,
    .feature-card,
    .news-card {
        padding: 30px 20px;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 30px;
    }

    /* Footer */
    footer {
        padding: 50px 0 20px;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* =========================================
   MOBILE RESPONSIVE FIXES
   ========================================= */

@media (max-width: 768px) {

    /* Global Container & Padding */
    .container {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100% !important;
    }

    .section-padding {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Header & Navigation */
    .glass-header {
        padding: 10px 0;
    }

    .navbar {
        height: 60px;
        justify-content: space-between;
    }

    .logo {
        font-size: 0.9rem;
        gap: 10px;
    }

    .logo img {
        height: 40px !important;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-gold);
        cursor: pointer;
        z-index: 1001;
    }

    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
    }

    .nav-links a.active {
        color: var(--primary-gold);
    }

    /* Hero Section */
    .hero-3d {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-content-wrapper {
        flex-direction: column-reverse;

        /* Image on top */
        /* Tournament Card Centering */
        .tournament-card {
            text-align: center !important;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .tournament-card h3,
        .tournament-card p {
            text-align: center !important;
            width: 100%;
        }

        /* "Registration Open" Badge - Gold */
        .tournament-status.status-open {
            background: linear-gradient(45deg, #d4af37, #aa8c2c) !important;
            color: #000 !important;
            text-shadow: none !important;
            font-weight: 800;
            border: 1px solid #fff;
        }

        /* Hero Buttons & Tournament Buttons */
        .hero-btns {
            justify-content: center;
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }

        .hero-btns .btn {
            width: 100%;
            text-align: center;
        }

        .hero-visual {
            height: auto;
            width: 100%;
            padding-top: 0;
            margin-bottom: 20px;
        }

        .hero-main-image {
            max-width: 180px;
            /* Smaller image */
            margin: 0 auto;
        }

        /* Grids to Single Column */
        .grid-3,
        .grid-2,
        .features-grid,
        .news-cards-grid,
        .footer-grid,
        .executive-grid,
        #news-grid,
        #executive-grid,
        #tournament-grid {
            grid-template-columns: 1fr !important;
            gap: 30px !important;
        }

        /* Cards */
        .glass-card,
        .feature-card,
        .news-card {
            padding: 30px 20px;
        }

        /* Section Titles */
        .section-title {
            font-size: 2rem !important;
            margin-bottom: 30px;
        }

        /* Footer */
        footer {
            padding: 50px 0 20px;
            text-align: center;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .footer-social {
            justify-content: center;
        }

        .footer-links {
            text-align: center;
        }

        /* Stats Ticker */
        .ticker-item {
            font-size: 1rem !important;
            margin: 0 15px !important;
        }

        /* Glass Panel */
        .glass-panel {
            padding: 20px;
        }
    }

    /* =========================================
   MOBILE MENU FIXES (CRITICAL)
   ========================================= */

    @media (max-width: 768px) {
        .nav-links {
            display: flex !important;
            /* Override display: none but hide with opacity/visibility */
            position: fixed !important;
            top: 70px !important;
            left: 0 !important;
            width: 100% !important;
            height: calc(100vh - 70px) !important;
            background: rgba(5, 5, 5, 0.98) !important;
            flex-direction: column !important;
            justify-content: flex-start !important;
            align-items: center !important;
            padding-top: 50px !important;
            gap: 30px !important;
            z-index: 9998 !important;
            /* Below cursor, above everything else */

            /* Transition for smooth toggle */
            opacity: 0 !important;
            visibility: hidden !important;
            transform: translateY(-20px);
            transition: all 0.3s ease-in-out !important;
            pointer-events: none;
        }

        .nav-links.active {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0);
            pointer-events: all;
        }

        .nav-links li {
            opacity: 1 !important;
            transform: none !important;
            /* Reset GSAP */
            width: 100%;
            text-align: center;
        }

        .nav-links a {
            font-size: 1.5rem !important;
            color: #fff !important;
            display: block;
            padding: 10px;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary-gold) !important;
        }

        /* Ensure hamburger is visible */
        .mobile-menu-btn {
            display: block !important;
            z-index: 1002 !important;
            position: relative;
        }
    }