/* Live Page Specific Styles - Optimized */

:root {
    /* Align with style_new.css tokens */
    --bg-color: #0d1b2a;
    --bg-color-alt: #1b263b;
    --text-white: #e2e4f6;
    --text-muted: #a0a0a0;
    --brand-accent: #00ffe7;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --white: #ffffff;

    /* Legacy mappings for internal styles */
    --platinum: var(--text-white);
    --eerie-black: var(--bg-color);
    --jet: var(--bg-color-alt);
}

/* Hero Adjustments */
.live-hero-h1 {
    font-family: var(--font-main);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

/* Swiss Design Grid System */
.swiss-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Swiss Grid - 12 column system */
.swiss-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.swiss-col-1 {
    grid-column: span 1;
}

.swiss-col-2 {
    grid-column: span 2;
}

.swiss-col-3 {
    grid-column: span 3;
}

.swiss-col-4 {
    grid-column: span 4;
}

.swiss-col-6 {
    grid-column: span 6;
}

.swiss-col-8 {
    grid-column: span 8;
}

.swiss-col-12 {
    grid-column: span 12;
}

/* Swiss spacing system - based on 8px grid */
.swiss-space-xs {
    margin-bottom: 0.5rem;
}

.swiss-space-sm {
    margin-bottom: 1rem;
}

.swiss-space-md {
    margin-bottom: 2rem;
}

.swiss-space-lg {
    margin-bottom: 3rem;
}

.swiss-space-xl {
    margin-bottom: 4rem;
}

.swiss-space-2xl {
    margin-bottom: 6rem;
}

/* Section spacing */
.section-spacing {
    padding: 3rem 0;
}

.section-spacing-lg {
    padding: 4rem 0;
}

.section-spacing-sm {
    padding: 2rem 0;
}

/* Professional vertical rhythm */
.vertical-rhythm>*+* {
    margin-top: 1.25rem;
}

.vertical-rhythm-sm>*+* {
    margin-top: 0.75rem;
}

.vertical-rhythm-lg>*+* {
    margin-top: 1.5rem;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--white);
    color: var(--eerie-black);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
}

/* Enhanced Navigation */
.nav-link {
    color: var(--platinum);
    padding: 0.5rem 1rem;
    position: relative;
    background: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    outline: none;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-link:focus-visible,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* Micro-interactions */
.micro-interaction {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.micro-interaction:hover {
    transform: translateY(-1px);
}

/* Navbar fade animation */
.navbar-fade {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-fade.visible {
    opacity: 1;
}

/* Staggered animations */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.logo-img {
    height: 2.5rem;
    max-width: 140px;
    background: none;
    border-radius: 0;
    display: block;
    padding: 0;
    margin: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Faint dividers with fade-out effects */
.fade-divider {
    position: relative;
    margin: 2.5rem 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%);
}

.fade-divider-lg {
    margin: 4rem 0;
}

.fade-divider-sm {
    margin: 2rem 0;
}

/* Filter System Styles */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: var(--platinum);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    
}

.filter-tab.active {
    background: var(--brand-accent);
    color: var(--eerie-black);
    border-color: var(--brand-accent);
    box-shadow: 0 4px 15px rgba(0, 255, 231, 0.3);
}

.filter-tab.active::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Streamer card animations */
.streamer-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.streamer-card.filtered-out {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.streamer-card.filtering {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-item {
    height: 70px;
    margin-bottom: 0.5rem;
    border-radius: 1rem;
}

/* Enhanced Live Streamer Styles */
.streamer-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 200px;
}

.streamer-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.streamer-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.streamer-item.filtered-out {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Live Dot */
.live-dot {
    display: inline-block;
    width: 12px;
    min-width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    vertical-align: middle;
    background: #444;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    flex-grow: 0;
}

.live-dot.live-dot-online {
    background: var(--brand-accent);
    animation: pulse-enhanced 2s infinite;
    box-shadow: 0 0 0 4px rgba(0, 255, 231, 0.2);
}

@keyframes pulse-enhanced {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 231, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 231, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 231, 0);
        transform: scale(1);
    }
}

.group-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.6rem 1.5rem;
    border-radius: 5rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.group-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.group-filter-btn.active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 231, 0.3);
}

/* Platform Icons */
.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.platform-icon.twitch {
    background: #9146ff;
    color: white;
}

.platform-icon.youtube {
    background: #ff0000;
    color: white;
}

.platform-icon.kick {
    background: #00ff00;
    color: black;
}

.platform-separator {
    color: var(--gray-400);
    margin: 0 0.25rem;
    font-weight: bold;
}

/* Platform Links for Multi-Platform Streamers */
.platform-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.platform-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.platform-link.platform-twitch:hover {
    background: rgba(145, 70, 255, 0.2);
}

.platform-link.platform-kick:hover {
    background: rgba(83, 252, 24, 0.2);
}

.platform-link.platform-youtube:hover {
    background: rgba(255, 0, 0, 0.2);
}

/* Platform Icons Row Styles */
.platform-icons-row {
    display: flex;
    gap: 0.375rem;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.platform-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: content-box;
    color: var(--text-white);
}

.platform-icon-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.platform-icon-link.platform-twitch:hover {
    background-color: rgba(145, 70, 255, 0.2);
    color: #9146FF;
}

.platform-icon-link.platform-kick:hover {
    background-color: rgba(83, 252, 24, 0.2);
    color: #53FC18;
}

.platform-icon-link.platform-youtube:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: #FF0000;
}

.platform-icon-link.platform-instagram:hover {
    background-color: rgba(228, 64, 95, 0.2);
    color: #E4405F;
}

.platform-icon-link.platform-tiktok:hover {
    background-color: rgba(255, 0, 128, 0.2);
    color: #FF0080;
}

.platform-icon-link.platform-twitter:hover {
    background-color: rgba(29, 161, 242, 0.2);
    color: #1DA1F2;
}

/* Subtle glow animation for live platform icons */
@keyframes platform-glow {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 2px currentColor);
    }

    50% {
        opacity: 0.9;
        filter: brightness(1.1) drop-shadow(0 0 3px currentColor);
    }
}

.platform-icon-link.live {
    animation: platform-glow 3s ease-in-out infinite;
}

.platform-icon-link.live.platform-twitch {
    color: #9146FF;
    filter: drop-shadow(0 0 2px rgba(145, 70, 255, 0.4));
}

.platform-icon-link.live.platform-youtube {
    color: #FF0000;
    filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.4));
}

.platform-icon-link.live.platform-kick {
    color: #53FC18;
    filter: drop-shadow(0 0 2px rgba(83, 252, 24, 0.4));
}

/* Multi-Streaming Badge */
.multi-streaming-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
    margin-left: 0.75rem;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
    animation: multi-stream-glow 2s ease-in-out infinite;
}

@keyframes multi-stream-glow {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

.streamer-name {
    font-weight: 500;
    color: var(--gray-200);
    transition: color 0.2s ease;
}

.streamer-name.live {
    color: var(--brand-accent);
}

/* Enhanced Pills */
.category-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    margin-left: 0.75rem;
    white-space: nowrap;
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.group-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, var(--brand-accent), #a2fff7);
    color: var(--eerie-black);
    margin-left: 0.5rem;
    white-space: nowrap;
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 255, 231, 0.2);
}

.group-pill:hover {
    box-shadow: 0 4px 12px rgba(0, 255, 231, 0.3);
}

/* Enhanced Streamer Links */
.streamer-link {
    font-weight: 600;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.streamer-link.live {
    color: var(--white);
    font-weight: 700;
}

.streamer-link:hover {
    color: var(--brand-accent);
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.min-w-0 {
    min-width: 0;
}

.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-auto {
    margin-top: auto;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pb-0 {
    padding-bottom: 0;
}

.bg-black {
    background-color: #000000;
}

.min-h-screen {
    min-height: 100vh;
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-red-300 {
    color: #fca5a5;
}

.text-muted {
    color: var(--text-muted);
}

/* Swiss Typography */
.swiss-h1 {
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.swiss-h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: clamp(1.875rem, 3vw, 2.5rem);
}

.swiss-body {
    line-height: 1.6;
    font-size: 1.125rem;
    font-weight: 400;
}

.swiss-body-sm {
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 400;
}

.swiss-caption {
    line-height: 1.4;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-400);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (min-width: 640px) {
    .swiss-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .swiss-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .swiss-grid {
        gap: 1rem;
    }

    .swiss-col-6 {
        grid-column: span 12;
    }

    /* Navigation responsive adjustments */
    nav .swiss-col-6.text-right {
        text-align: left;
    }

    nav .swiss-col-6.text-right ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .filter-tabs {
        gap: 0.25rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .streamer-item {
        padding: 0.75rem 1rem;
    }

    .streamer-link {
        max-width: 150px;
    }

    .category-pill {
        display: none;
    }

    /* Mobile navigation */
    nav ul {
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Hide platform links and group tags in mobile portrait mode */
    .platform-icons-row {
        display: none !important;
    }

    .streamer-item .platform-icons-row {
        display: none !important;
    }

    .group-pill {
        display: none;
    }

    /* Keep the main content inline but adjust spacing */
    .streamer-item .flex.items-center.gap-3.min-w-0.flex-1 {
        gap: 0.75rem;
    }

    .streamer-item .flex.gap-2.flex-wrap {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    /* Ensure live dot and name stay on same line */
    .streamer-item .flex.items-center {
        flex-wrap: nowrap;
    }

    /* Make streamer names clickable on mobile when icons are hidden */
    .streamer-item .streamer-name {
        cursor: pointer;
        text-decoration: underline;
        text-decoration-color: transparent;
        transition: all 0.2s ease;
    }

    .streamer-item .streamer-name:hover {
        color: var(--brand-accent);
        text-decoration-color: var(--brand-accent);
    }

    .streamer-item .flex.gap-2.flex-shrink-0 {
        display: none;
    }

    /* Additional specific selectors to hide platform icons */
    .streamer-item .platform-icon-link {
        display: none !important;
    }

    .streamer-item .platform-icons-row .platform-icon-link {
        display: none !important;
    }
}