/* ================================
   CSS VARIABLES - EASY CUSTOMIZATION
   ================================ */
:root {
    /* Color Palette - Purple Theme */
    --primary-color: #A855F7;
    --secondary-color: #EC4899;
    --accent-color: #C084FC;
    --accent-secondary: #F0ABFC;
    
    /* Gradient Colors */
    --gradient-1: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #C084FC 100%);
    --gradient-2: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 50%, rgba(192, 132, 252, 0.1) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Crimson Pro', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --card-padding: 2rem;
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --border-radius-sm: 20px;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
    
    /* Dark Theme Colors */
    --bg-dark: #0a0a0f;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);
}

/* ================================
   GLOBAL STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================================
   ANIMATED BACKGROUND
   ================================ */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

.gradient-background::before,
.gradient-background::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.gradient-background::before {
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.gradient-background::after {
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

/* Additional floating orbs */
.gradient-background::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

/* ================================
   GLASS MORPHISM UTILITIES
   ================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.glass-nav {
    background: rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.brand-highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light) !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* ================================
   LIVE SECTION
   ================================ */
.live-section {
    padding: var(--section-padding) 0;
}

/* Player Card */
.player-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Player Overlay - Loading State */
.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading Spinner */
.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: var(--secondary-color);
    animation-delay: -0.5s;
}

.spinner-ring:nth-child(3) {
    border-top-color: var(--accent-color);
    animation-delay: -1s;
}

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

.loading-text {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Player Info */
.player-info {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.player-info-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 44px;
}

.live-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid var(--secondary-color);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    flex-shrink: 0;
    min-height: 44px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(236, 72, 153, 0);
    }
}

.live-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-light);
    white-space: nowrap;
    line-height: 1;
}

.player-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
    min-height: 44px;
}

.separator {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1;
}

.viewer-count,
.show-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    line-height: 1;
}

.viewer-count i,
.show-time i {
    color: var(--accent-color);
    flex-shrink: 0;
    font-size: 1rem;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    padding: 3rem;
    text-align: center;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-left: 0.5rem;
}

.contact-info a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.social-follow {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    margin-top: var(--section-padding);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-end;
    }
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--glass-bg);
    color: var(--text-light);
    transition: all var(--transition-fast);
    border: 1px solid var(--glass-border);
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* ================================
   ANIMATIONS
   ================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fadeInDown"].animated {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-animate="fadeInUp"].animated {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
        --card-padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: rgba(10, 10, 15, 0.95);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        border: 1px solid var(--glass-border);
    }
    
    .navbar-nav {
        margin-right: 0 !important;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--glass-border);
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .player-card {
        border-radius: var(--border-radius-sm);
        overflow: hidden;
        margin-bottom: 0;
    }
    
    .player-info {
        padding: 1.25rem 1.5rem;
    }
    
    .player-info-wrapper {
        flex-direction: row;
        align-items: center !important;
        gap: 1rem !important;
        min-height: auto;
    }
    
    .player-stats {
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .live-badge-inline {
        padding: 0.65rem 1.25rem;
        min-height: auto;
    }
    
    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .player-info {
        padding: 1rem 1.25rem;
    }
    
    .live-text {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .player-stats {
        font-size: 0.85rem;
        min-height: auto;
    }
    
    .viewer-count i,
    .show-time i {
        font-size: 0.9rem;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
a:focus,
button:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .gradient-background,
    .navbar,
    .footer,
    .social-links,
    .live-badge {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}