/* style.css */
:root {
    --unpak: #573c9d;
    --unpak-dark: #3c2777;
    --unpak-light: #7e5fc7;
    --bg-radial: radial-gradient(125% 125% at 50% 10%, #030206 35%, #2a1b50 75%, #573c9d 100%);
    --card-bg: rgba(23, 27, 36, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f1f6;
    --text-secondary: #9ea2b0;
    --glass-blur: blur(16px);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-radial: radial-gradient(125% 125% at 50% 10%, #ffffff 40%, #f1edf9 80%, #e1d7f6 100%);
        --card-bg: rgba(255, 255, 255, 0.65);
        --card-border: rgba(87, 60, 157, 0.15);
        --text-primary: #1b1333;
        --text-secondary: #5a5768;
    }
}

body { 
    background: var(--bg-radial) !important; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    margin: 0; 
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .font-heading {
    font-family: 'Outfit', sans-serif;
}

.header-logo { height: 52px; width: auto; object-fit: contain; }

/* Glassmorphism styling */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    box-shadow: 0 16px 48px 0 rgba(87, 60, 157, 0.2);
    border-color: rgba(87, 60, 157, 0.35);
}

.glass-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
@media (prefers-color-scheme: light) {
    .glass-input {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(87, 60, 157, 0.2);
    }
}
.glass-input:focus {
    outline: none;
    border-color: var(--unpak-light);
    box-shadow: 0 0 0 3px rgba(126, 95, 199, 0.3);
}

/* Active statuses indicators */
.pulse-live {
    position: relative;
    display: inline-flex;
    height: 9px;
    width: 9px;
    border-radius: 9999px;
    background-color: #ef4444;
}
.pulse-live::after {
    content: '';
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    background-color: #ef4444;
    opacity: 0.75;
    animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Scrollbar customizing */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(87, 60, 157, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(87, 60, 157, 0.5);
}

/* Fullscreen card overrides */
.glass-card:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
    padding: 24px !important;
    background: #06050b !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none !important;
    border: none !important;
}

.glass-card:fullscreen .video-container {
    flex-grow: 1 !important;
    height: 100% !important;
    max-height: calc(100vh - 120px) !important;
    aspect-ratio: auto !important;
}

.glass-card:fullscreen iframe {
    border-radius: 12px !important;
    height: 100% !important;
}

/* Loading skeleton */
.shimmer {
    background: linear-gradient(90deg, rgba(87, 60, 157, 0.05) 25%, rgba(87, 60, 157, 0.15) 50%, rgba(87, 60, 157, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}
@media (prefers-color-scheme: light) {
    .shimmer {
        background: linear-gradient(90deg, rgba(87, 60, 157, 0.03) 25%, rgba(87, 60, 157, 0.08) 50%, rgba(87, 60, 157, 0.03) 75%);
        background-size: 200% 100%;
    }
}
@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
