/* ==========================================================================
   Ro-Broadcasting Group - Core Design System v2.0 (From Scratch)
   ========================================================================== */

/* 1. RESET & BASICS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

:root {
    /* Brand Colors */
    --primary: #9c3aff;
    --secondary: #ee2fd2;
    --accent: #00e5ff;
    /* Cyan accent for contrast */
    --success: #00c853;
    --warning: #ffab00;
    --error: #ff1744;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-brand-text: linear-gradient(120deg, var(--primary), var(--secondary));
    --grad-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* Deep Dark Theme (Default Base) */
    --bg-body: #0a0a0f;
    --bg-surface: #13131f;
    --bg-glass: rgba(19, 19, 31, 0.75);
    --bg-glass-strong: rgba(19, 19, 31, 0.95);

    /* Typography */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dark: #1a1a1a;
    /* For light buttons */

    --font-base: 'Outfit', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --nav-height: 80px;
    --container-width: 1200px;
}

/* Light Mode Overrides (if class .light is applied or strictly preferred) 
   For this "Modern/Premium" look, we prioritize Dark Mode by default as it usually looks more "premium" for gaming/tech groups. 
   But we will support light mode variables if needed later. For now, strict consistent dark/premium look.
*/

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

body {
    font-family: var(--font-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    /* Ambient Background Mesh */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(156, 58, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(238, 47, 210, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

/* 2. TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

.text-gradient {
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding-bottom: 0.1em;
}

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

/* 3. UTILITIES */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

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

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-4 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 58, 255, 0.5);
    box-shadow: none;
}

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

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

.mt-8 {
    margin-top: 4rem;
}

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

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

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-8 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* 4. COMPONENTS */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--grad-brand);
    color: white !important;
    box-shadow: 0 4px 15px rgba(156, 58, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(156, 58, 255, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
}

.btn-discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(88, 101, 242, 0.08);
    /* Minimalist Tint */
    color: white;
    padding: 0.9rem 2.4rem;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    border: 1px solid rgba(88, 101, 242, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-discord-cta:hover {
    background: #5865F2;
    border-color: #5865F2;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.4);
    color: white;
}

.btn-discord-cta i {
    font-size: 1.3rem;
    transition: transform 0.4s ease;
}

.btn-discord-cta:hover i {
    transform: scale(1.1) rotate(5deg);
}


.feature-check {
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-new {
    background: var(--success);
    color: #fff;
}

/* 5. NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--grad-brand);
    transition: width 0.3s ease;
}

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

/* Navbar Button Overrides */
.nav-links a.btn {
    color: white !important;
}

.nav-links a.btn::after {
    display: none;
}

.nav-plain-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-plain-btn:hover {
    color: var(--text-main);
}

/* Language Switcher Premium */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    height: 36px;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-option-pill {
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-option-pill.active {
    background: var(--grad-brand);
    color: white !important;
    box-shadow: 0 2px 12px rgba(156, 58, 255, 0.3);
}

.lang-switcher:hover .lang-option-pill:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-btn {
    display: none;
    background: rgba(19, 19, 31, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    display: none;
    /* Controlled by media query */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    outline: none;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn.is-active {
    transform: rotate(90deg);
    background: var(--grad-brand);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(156, 58, 255, 0.4);
}

/* USER DROPDOWN DROPDOWN */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-mobile-pills {
    display: none;
}

.user-pill-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-pill-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.user-pill-btn.logout {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.3);
}

.user-pill-btn.logout:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
}

.user-avatar-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    /* Glass effect like index buttons */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-avatar-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 200px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown-item {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(5px);
}

.user-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
}

.user-dropdown-item.logout {
    color: #ff4d4d;
}

.user-dropdown-item.logout:hover {
    background: rgba(255, 77, 77, 0.1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 1024px) {
    .user-dropdown {
        position: relative;
        /* Position relative in mobile menu flow */
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        display: none;
        top: 0;
        right: auto;
        animation: none;
        opacity: 1;
        transform: translateY(0);
        border-radius: var(--radius-sm);
    }

    .user-dropdown.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .user-menu-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .user-desktop-menu {
        display: none;
    }

    .user-mobile-pills {
        display: flex;
        gap: 15px;
        margin-top: 1.5rem;
        justify-content: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* 6. HERO SECTION */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
    animation: heroFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 10s infinite alternate;
}

/* 7. FOOTER */
.footer {
    margin-top: auto;
    padding: 6rem 0 4rem;
    background: transparent;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-personalized {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-discord-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-full);
    color: #5865F2;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-discord-pill:hover {
    background: #5865F2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.2);
}

.footer-section-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section-links a:hover {
    color: white;
}

.footer-dot-divider {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.footer-section-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-section-copyright a {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-section-copyright a:hover {
    opacity: 1;
    color: var(--primary);
}

@media (min-width: 768px) {
    .footer-bottom-personalized {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }

    .footer-section-links {
        order: 2;
    }

    .footer-section-social {
        order: 3;
    }

    .footer-section-copyright {
        order: 1;
        text-align: left;
    }
}

/* Standard Card Layout helpers */
.card-stretch {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-footer {
    margin-top: auto;
}

/* Footer Logo Improvements */
.footer-logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 2.5rem;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%) brightness(200%);
    /* Make white */
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.1);
}

/* Metadata Typography */
.meta-text {
    font-size: 0.9rem;
    /* 14.4px approx */
    font-weight: 500;
    color: var(--text-muted);
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 8. ANIMATIONS */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
}

/* 9. RESPONSIVE */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Start from top in landscape */
        padding: 4rem 2rem;
        /* More padding top/bottom */
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: -1;
        /* Behind navbar bar itself */
        overflow-y: auto;
        /* Enable scroll */
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .lang-switcher {
        height: 42px;
        padding: 4px;
    }

    .lang-option-pill {
        font-size: 0.85rem;
        padding: 0 16px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    /* Adjust button size in mobile menu */
    .nav-links .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-links li.nav-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-actions-wrapper {
        flex-direction: column;
        display: flex;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
    }

    .nav-action-btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        justify-content: center;
    }

    /* Landscape specific tweaks */
    @media (orientation: landscape) and (max-height: 500px) {
        .nav-links {
            padding-top: 2rem;
            padding-bottom: 2rem;
            gap: 1rem;
            justify-content: flex-start;
        }

        .nav-links a {
            font-size: 1.2rem;
        }

        .user-mobile-pills {
            margin-top: 1rem;
            gap: 10px;
        }
    }
}

/* Navbar Action Button Consistency */
.nav-action-btn {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
    min-width: 140px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* 10. INDEX PAGE SPECIFICS */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.8;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    overflow: hidden;
}

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

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

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

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: auto;
        grid-row: auto;
    }
}

.blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(156, 58, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   11. UTILITIES & HELPER CLASSES (Added for Index Redesign)
   ========================================================================== */

/* Layout & Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-minus-10 {
    z-index: -10;
}

.z-minus-20 {
    z-index: -20;
}

.overflow-hidden {
    overflow: hidden;
}

.pointer-events-none {
    pointer-events: none;
}

/* Flexbox Extras */
.flex-wrap {
    flex-wrap: wrap;
}

.shrink-0 {
    flex-shrink: 0;
}

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

.self-end {
    align-self: flex-end;
}

.items-end {
    align-items: flex-end;
}

/* Sizing */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-500 {
    height: 500px;
}

/* Fixed card height */
.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-sm {
    max-width: 24rem;
}

.min-h-screen {
    min-height: 100vh;
}

.h-48 {
    height: 12rem;
}

.h-52 {
    height: 13rem;
}

/* Fixed image height */
.h-6 {
    height: 1.5rem;
}

.h-4 {
    height: 1rem;
}

.w-3-4 {
    width: 75%;
}

.w-1-2 {
    width: 50%;
}

/* Typography Extras */
.text-center {
    text-align: center;
}

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

.text-white {
    color: white;
}

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

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

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

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-extrabold {
    font-weight: 800;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Font Sizes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-7xl {
    font-size: 4.5rem;
}

/* Spacing (Padding/Margin) */
.p-0 {
    padding: 0;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.p-12 {
    padding: 3rem;
}

.p-24 {
    padding: 6rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-1-5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-10 {
    padding-top: 2.5rem;
}

.m-0 {
    margin: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

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

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-24 {
    margin-bottom: 6rem;
}

.mb-32 {
    margin-bottom: 8rem;
}

.mb-48 {
    margin-bottom: 12rem;
}

.mb-64 {
    margin-bottom: 16rem;
}

.mt-20 {
    margin-top: 5rem;
}

.mt-auto {
    margin-top: auto;
}

.space-y-8> :not([hidden])~ :not([hidden]) {
    margin-top: 2rem;
}

.space-y-32> :not([hidden])~ :not([hidden]) {
    margin-top: 8rem;
}

/* Borders & Radius */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-3rem {
    border-radius: 3rem;
}

/* Backgrounds & Opacities (Replacements for Tailwind bg-white/X) */
.bg-white-5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-black-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-black-60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-primary-10 {
    background-color: rgba(156, 58, 255, 0.1);
}

.bg-primary-20 {
    background-color: rgba(156, 58, 255, 0.2);
}

.bg-secondary-20 {
    background-color: rgba(238, 47, 210, 0.2);
}

.bg-accent-20 {
    background-color: rgba(0, 229, 255, 0.2);
}

.bg-discord-10 {
    background-color: rgba(88, 101, 242, 0.1);
}

.border-white-5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.7);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Custom Gradients */
.bg-gradient-brand-t {
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.bg-gradient-brand-t-strong {
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

/* Blobs & Blurs */
.w-blob {
    width: 400px;
}

.h-blob {
    height: 400px;
}

.w-blob-lg {
    width: 600px;
}

.h-blob-lg {
    height: 600px;
}

.blur-xl {
    filter: blur(120px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Transitions & Anim */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-fade-in-up {
    animation: heroFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

@media (max-width: 768px) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .animate-fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

.object-cover {
    object-fit: cover;
}

.cursor-pointer {
    cursor: pointer;
}

/* Group Hover Utilities */
.group:hover .group-hover\:bg-primary-20 {
    background-color: rgba(156, 58, 255, 0.2);
}

.group:hover .group-hover\:bg-secondary-20 {
    background-color: rgba(238, 47, 210, 0.2);
}

.group:hover .group-hover\:bg-accent-20 {
    background-color: rgba(0, 229, 255, 0.2);
}

.group:hover .group-hover\:text-primary {
    color: var(--primary);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

.group:hover .group-hover\:opacity-80 {
    opacity: 0.8;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Hero Refinements */
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }

    .md\:mt-6 {
        margin-top: 1.5rem;
    }

    .md\:mt-12 {
        margin-top: 3rem;
    }

    .md\:mt-20 {
        margin-top: 5rem;
    }

    .md\:gap-32 {
        gap: 8rem;
    }

    .md\:gap-48 {
        gap: 12rem;
    }
}

/* Spacing Extras */
.mt-12 {
    margin-top: 3rem;
}

.mt-20 {
    margin-top: 5rem;
}

.pt-16 {
    padding-top: 4rem;
}

.gap-16 {
    gap: 4rem;
}

.gap-32 {
    gap: 8rem;
}

.gap-48 {
    gap: 12rem;
}

.pt-16 {
    padding-top: 4rem;
}

/* Logo Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 4rem;
}



.ticker-item img {
    height: 40px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%) brightness(200%);
    /* White monochrome effect */
    transition: all 0.3s ease;
}

.ticker-item img:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   12. FORM CONTROLS & PILLS (New Design System)
   ========================================================================== */

.control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
}

.control-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.control-pill:hover,
.control-pill:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.control-pill i {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.control-pill:hover i,
.control-pill:focus-within i {
    color: var(--primary);
}

.glass-input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Filter Buttons (Pills) */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 58, 255, 0.3);
}

.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

/* Sizing Utilities Missing */
.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.w-40 {
    width: 10rem;
}

/* Responsive Grid Utilities (Missing) */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================================================
   13. BROADCASTER SPECIFIC LAYOUT
   ========================================================================== */
.broadcasters-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .broadcasters-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .broadcasters-layout {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   14. EVENT CARD SYSTEM
   ========================================================================== */
.event-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 58, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.event-image-container {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
}

.event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.event-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--grad-brand);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(156, 58, 255, 0.4);
}

.event-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: rgba(156, 58, 255, 0.1);
    border: 1px solid rgba(156, 58, 255, 0.2);
    border-radius: var(--radius-md);
    color: #9c3aff;
    font-weight: 700;
    width: fit-content;
    font-size: 0.9rem;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.event-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

@media (min-width: 900px) {
    .event-card {
        flex-direction: row;
        min-height: 400px;
    }

    .event-image-container {
        width: 40%;
        height: auto;
    }

    .event-info {
        width: 60%;
        padding: 3rem;
        justify-content: center;
    }
}

/* ==========================================================================
   12. GENERIC MODAL SYSTEM (Added for Popups)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #13131f;
    background: linear-gradient(145deg, rgba(19, 19, 31, 0.95), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal-close:hover {
    background: var(--grad-brand);
    color: white;
    transform: rotate(90deg);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(156, 58, 255, 0.4);
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(156, 58, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(156, 58, 255, 0.15);
}