/* ========================================================
   Miss Khmu Laos 2026 Official Theme
   Imperial Crimson Red & Royal Gold Aesthetic
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Lao:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --crimson-darkest: #4D030D;
    --crimson-dark: #6E0513;
    --crimson-base: #8B0818;
    --crimson-light: #B80F25;
    --crimson-bright: #D91432;
    --crimson-vibrant: #EE1D3D;
    
    --gold-primary: #F59E0B;
    --gold-bright: #FDE047;
    --gold-glow: rgba(245, 158, 11, 0.45);
    --gold-border: rgba(251, 191, 36, 0.4);
}

*, body, button, input, select, textarea {
    font-family: 'Noto Serif Lao', Georgia, 'Times New Roman', serif !important;
}

body:not(.admin-body) {
    background-color: #680512;
    color: #FFFFFF;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(225, 29, 60, 0.55) 0%, transparent 70%),
        radial-gradient(circle at 12% 35%, rgba(244, 63, 94, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 88% 45%, rgba(225, 29, 72, 0.35) 0%, transparent 50%),
        linear-gradient(180deg, #7E0716 0%, #630410 40%, #760615 70%, #5E030E 100%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #4D030D;
}

::-webkit-scrollbar-thumb {
    background: #8B0818;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Iconic Official Poster Double-Bordered Pill */
.poster-pill-badge {
    background: linear-gradient(180deg, #9E0D20 0%, #680512 100%);
    border: 2px solid #FDE047;
    box-shadow: 0 0 0 3px rgba(90, 6, 16, 0.95), 0 0 25px rgba(251, 191, 36, 0.55), inset 0 2px 6px rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Double-bordered gold container for announcements and tables */
.poster-gold-frame {
    background: rgba(115, 8, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid #F59E0B;
    box-shadow: 0 0 0 3px rgba(80, 5, 14, 0.95), 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 30px rgba(245, 158, 11, 0.35);
    border-radius: 1.5rem;
}

/* Crimson Glassmorphism Cards */
.glass-card,
.crimson-card {
    background: rgba(120, 10, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 10px 30px -5px rgba(50, 4, 10, 0.45), 0 0 20px rgba(225, 29, 60, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover,
.crimson-card:hover {
    border-color: rgba(251, 191, 36, 0.75);
    box-shadow: 0 15px 35px -5px rgba(40, 2, 8, 0.55), 0 0 30px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Gold Gradient Shimmer */
@keyframes goldShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.gold-shimmer {
    background: linear-gradient(90deg, transparent, rgba(229, 169, 60, 0.2), transparent);
    background-size: 200% 100%;
    animation: goldShimmer 3.5s infinite;
}

/* Golden Buttons */
.btn-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #D97706 100%);
    color: #1A0104;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #FDE047 50%, #F59E0B 100%);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55);
    transform: translateY(-1px);
}

.glow-gold {
    box-shadow: 0 0 25px var(--gold-glow);
}

/* Traditional Motif Header Accent */
.khmu-motif-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #E5A93C, #FDE047, #E5A93C, transparent);
    border-radius: 9999px;
}

/* ========================================================
   GALA PAGEANT STAGE LIGHTING & ANIMATED SPOTLIGHT BEAMS
   ======================================================== */

/* Left Moving-Head Stage Spotlight Beam */
.stage-spotlight-beam-left {
    position: absolute;
    top: -120px;
    left: 4%;
    width: 520px;
    height: 1250px;
    background: conic-gradient(
        from 155deg at 10% 0%,
        rgba(251, 191, 36, 0.28) 0deg,
        rgba(253, 224, 71, 0.16) 18deg,
        rgba(239, 68, 68, 0.08) 35deg,
        transparent 55deg,
        transparent 360deg
    );
    filter: blur(40px);
    transform-origin: top left;
    animation: sweepStageBeamLeft 14s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Right Moving-Head Stage Spotlight Beam */
.stage-spotlight-beam-right {
    position: absolute;
    top: -120px;
    right: 4%;
    width: 520px;
    height: 1250px;
    background: conic-gradient(
        from 185deg at 90% 0%,
        transparent 0deg,
        rgba(239, 68, 68, 0.08) 18deg,
        rgba(253, 224, 71, 0.16) 35deg,
        rgba(251, 191, 36, 0.28) 55deg,
        transparent 70deg,
        transparent 360deg
    );
    filter: blur(40px);
    transform-origin: top right;
    animation: sweepStageBeamRight 16s ease-in-out infinite alternate-reverse;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Center Crown Spotlight Halo (Breathing stage center aura) */
.stage-crown-spotlight {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 750px;
    background: radial-gradient(
        ellipse at 50% 20%,
        rgba(254, 240, 138, 0.32) 0%,
        rgba(245, 158, 11, 0.22) 32%,
        rgba(220, 38, 38, 0.2) 60%,
        transparent 80%
    );
    filter: blur(50px);
    animation: pulseStageCenter 8s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Pageant Stage Ambient Floating Smoke / Haze Glow */
.stage-haze-ambient {
    position: absolute;
    bottom: -120px;
    left: 15%;
    width: 750px;
    height: 550px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(185, 28, 28, 0.16) 50%, transparent 75%);
    filter: blur(65px);
    animation: driftStageHaze 18s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes sweepStageBeamLeft {
    0% {
        transform: rotate(-16deg) scaleY(0.95);
        opacity: 0.7;
    }
    50% {
        transform: rotate(20deg) scaleY(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(-8deg) scaleY(1);
        opacity: 0.8;
    }
}

@keyframes sweepStageBeamRight {
    0% {
        transform: rotate(16deg) scaleY(0.95);
        opacity: 0.75;
    }
    50% {
        transform: rotate(-22deg) scaleY(1.12);
        opacity: 1;
    }
    100% {
        transform: rotate(8deg) scaleY(1);
        opacity: 0.85;
    }
}

@keyframes pulseStageCenter {
    0% {
        transform: translateX(-50%) scale(0.92);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scale(1.12);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(0.96);
        opacity: 0.8;
    }
}

@keyframes driftStageHaze {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translate(140px, -45px) scale(1.18);
        opacity: 0.9;
    }
    100% {
        transform: translate(-70px, -25px) scale(0.98);
        opacity: 0.65;
    }
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

