/* =========================================================
   ROYAL GOLD THEME
   Luxurious gold colors for premium streamers
   ========================================================= */

/* FORCE ROYAL GOLD THEME - HIGHEST PRIORITY */
.neon-frame {
    border: 2px solid #DAA520 !important;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.6) !important;
}

/* Royal Gold Color Palette */
:root {
    --royal-gold: #D4AF37;
    --light-gold: #FFD700;
    --dark-gold: #B8860B;
    --rose-gold: #ECC94B;
    --bronze: #CD7F32;
    
    /* Accent Colors */
    --gold-accent: #FFD700;
    --white-accent: #FFFFFF;
    --black-accent: #000000;
    
    /* Background Colors */
    --royal-dark: #1a140d;
    --royal-gray: #2c1f14;
    --royal-charcoal: #3c2a19;
    
    /* Glow Effects */
    --gold-glow: rgba(212, 175, 55, 0.3);
    --light-gold-glow: rgba(255, 215, 0, 0.25);
    --rose-gold-glow: rgba(236, 201, 75, 0.2);
}

/* Royal Gold Theme Override */
body.royal-gold-theme {
    --accent: var(--royal-gold);
    --glow: var(--gold-glow);
    --primary-bg: var(--royal-dark);
    --secondary-bg: var(--royal-gray);
    --text-primary: var(--white-accent);
    --text-secondary: #FFF8DC;
}

/* Sponsors Page Background for Index */
.royal-gold-bg {
    background: radial-gradient(circle at 45% 40%, #595959 0%, #2a2a2a 60%, #111 100%) !important;
    position: relative !important;
}

.royal-gold-bg::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    opacity: 0.15 !important;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(1px 1px at 100px 80px, rgba(255,255,255,0.2), transparent), 
                      radial-gradient(1.4px 1.4px at 200px 50px, rgba(255,255,255,0.25), transparent), 
                      radial-gradient(2px 2px at 400px 100px, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(1px 1px at 500px 40px, rgba(255,255,255,0.2), transparent), 
                      radial-gradient(1.2px 1.2px at 300px 120px, rgba(255,255,255,0.25), transparent) !important;
    background-size: 100% 100% !important;
}

/* Royal Gold Background */
body.royal-gold-theme .galaxy-stars {
    background: radial-gradient(ellipse at center, 
        #1a140d 0%, 
        #2c1f14 25%, 
        #3c2a19 50%, 
        #000000 100%);
}

/* Royal Gold Nebula Effects */
body.royal-gold-theme .galaxy-stars::before {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(236, 201, 75, 0.08) 0%, transparent 60%);
}

/* Royal Gold Stars */
body.royal-gold-theme .galaxy-star {
    background: var(--royal-gold);
    box-shadow: 
        0 0 4px var(--royal-gold),
        0 0 8px var(--gold-glow),
        0 0 12px var(--gold-glow);
}

/* Royal Gold Cards */
body.royal-gold-theme .card {
    background: radial-gradient(circle at 45% 40%,
        rgba(44, 31, 20, 0.8) 60%, 
        #1a140d 100%);
    border: 2px solid var(--royal-gold);
    box-shadow: 
        0 0 22px var(--gold-glow), 
        0 6px 20px rgba(0,0,0,0.9);
}

body.royal-gold-theme .card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 0 30px var(--gold-glow),
        0 8px 25px rgba(0,0,0,0.9);
}

/* Royal Gold Buttons */
body.royal-gold-theme .hover-button {
    background: linear-gradient(135deg, 
        var(--royal-gold), 
        var(--light-gold));
    color: var(--black-accent);
    border: 1px solid var(--rose-gold);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4), 
        0 0 16px var(--gold-glow);
}

body.royal-gold-theme .hover-button:hover {
    background: linear-gradient(135deg, 
        var(--light-gold), 
        var(--royal-gold));
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.5), 
        0 0 20px var(--gold-glow);
}

/* Royal Gold Text */
body.royal-gold-theme .bonus {
    color: var(--white-accent);
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.9), 
        0 0 15px var(--gold-glow), 
        1px 1px 4px rgba(0,0,0,0.9);
}

/* Royal Gold Top Winners Section */
body.royal-gold-theme .top-winners {
    background: linear-gradient(135deg, 
        var(--royal-gold) 0%, 
        var(--light-gold) 50%, 
        var(--rose-gold) 100%);
    color: var(--black-accent);
    border: 3px solid var(--light-gold);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.4),
        0 0 20px var(--gold-glow);
}

/* Royal Gold Video Player Border */
body.royal-gold-theme .video-container {
    border: 3px solid var(--royal-gold);
    box-shadow: 
        0 0 20px var(--gold-glow),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Royal Gold Animations */
@keyframes royalPulse {
    0%, 100% { box-shadow: 0 0 15px var(--gold-glow); }
    50% { box-shadow: 0 0 25px var(--light-gold-glow); }
}

body.royal-gold-theme .pulse-animation {
    animation: royalPulse 2s ease-in-out infinite;
}

/* Royal Gold Neon Frame - IMPORTANT overrides */
.neon-frame,
body .neon-frame,
body.royal-gold-theme .neon-frame {
    position: relative !important;
    z-index: 2 !important;
    background: linear-gradient(135deg, 
        rgba(26, 20, 13, 0.95) 0%, 
        rgba(44, 31, 20, 0.9) 25%, 
        rgba(60, 42, 25, 0.85) 50%, 
        rgba(26, 20, 13, 0.95) 100%) !important;
    border: 2px solid #DAA520 !important;
    border-radius: var(--nf-radius, 12px) !important;
    box-shadow: 
        0 0 20px rgba(218, 165, 32, 0.6),
        inset 0 0 20px rgba(218, 165, 32, 0.15),
        inset 0 1px 0 rgba(218, 165, 32, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    overflow: hidden !important;
}

/* Royal Gold Winners Card Background */
body.royal-gold-theme .winners-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 20, 13, 0.9) 0%, 
        rgba(44, 31, 20, 0.8) 25%, 
        rgba(60, 42, 25, 0.7) 50%, 
        rgba(26, 20, 13, 0.9) 100%);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

body.royal-gold-theme .winners-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body.royal-gold-theme .winners-card > * {
    position: relative;
    z-index: 1;
}

/* Royal Gold Winners Header */
body.royal-gold-theme .winners-header {
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.2) 0%, 
        rgba(255, 215, 0, 0.15) 50%, 
        rgba(212, 175, 55, 0.2) 100%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

/* Royal Gold Winners Body */
body.royal-gold-theme .winners-body {
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(26, 20, 13, 0.3) 50%, 
        rgba(0, 0, 0, 0.2) 100%);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Royal Gold Winners Item */
body.royal-gold-theme .winners-item {
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(255, 215, 0, 0.05) 50%, 
        rgba(212, 175, 55, 0.1) 100%);
    border-radius: 6px;
    padding: 8px 4px 8px 12px;
    margin-bottom: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
}

body.royal-gold-theme .winners-item:hover {
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.2) 0%, 
        rgba(255, 215, 0, 0.1) 50%, 
        rgba(212, 175, 55, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Royal Gold Winners Footer */
body.royal-gold-theme .winners-footer {
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(255, 215, 0, 0.1) 50%, 
        rgba(212, 175, 55, 0.15) 100%);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: auto;
    margin-bottom: 8px;
    flex-shrink: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern Top Winners Styles */
body.royal-gold-theme .top-winners-container {
    min-height: 450px;
    max-height: 450px;
}

body.royal-gold-theme .winners-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

body.royal-gold-theme .winner-crown {
    color: #FFD700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

body.royal-gold-theme .winners-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

body.royal-gold-theme .winners-scroll-container {
    max-height: 270px;
    overflow-y: auto;
    padding: 8px 4px;
    margin: 8px 0 8px 0;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.7) rgba(0, 0, 0, 0.2);
}

body.royal-gold-theme .winners-scroll-container::-webkit-scrollbar {
    width: 6px;
}

body.royal-gold-theme .winners-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin: 4px 0;
}

body.royal-gold-theme .winners-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.8), rgba(255, 215, 0, 0.6));
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

body.royal-gold-theme .winners-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 1), rgba(255, 215, 0, 0.8));
}

body.royal-gold-theme .winner-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(255, 215, 0, 0.04) 50%, 
        rgba(212, 175, 55, 0.08) 100%);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

body.royal-gold-theme .winner-item:hover {
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(255, 215, 0, 0.08) 50%, 
        rgba(212, 175, 55, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

body.royal-gold-theme .winner-rank {
    margin-right: 12px;
}

body.royal-gold-theme .rank-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.royal-gold-theme .rank-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
}

body.royal-gold-theme .rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #1a1a1a;
}

body.royal-gold-theme .rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: #fff;
}

body.royal-gold-theme .rank-badge.top5 {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

body.royal-gold-theme .rank-badge.default {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: #fff;
}

body.royal-gold-theme .winner-info {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 12px;
}

body.royal-gold-theme .winner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

body.royal-gold-theme .winner-details {
    flex: 1;
}

body.royal-gold-theme .winner-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 1px;
    line-height: 1.2;
}

body.royal-gold-theme .winner-amount {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.1;
}

body.royal-gold-theme .winner-earnings {
    text-align: right;
}

body.royal-gold-theme .earnings-text {
    font-weight: 700;
    color: #10B981;
    font-size: 0.75rem;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

body.royal-gold-theme .winners-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

body.royal-gold-theme .empty-icon {
    color: rgba(255, 215, 0, 0.6);
    margin-bottom: 16px;
}

body.royal-gold-theme .empty-title {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

body.royal-gold-theme .empty-subtitle {
    color: rgba(240, 230, 140, 0.8);
    font-size: 0.875rem;
}

body.royal-gold-theme .view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.2) 0%, 
        rgba(255, 215, 0, 0.15) 50%, 
        rgba(212, 175, 55, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    color: #FFD700;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.royal-gold-theme .view-all-btn:hover {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.3) 0%, 
        rgba(255, 215, 0, 0.2) 50%, 
        rgba(212, 175, 55, 0.3) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Prevent iframe background interference */
body.royal-gold-theme .winners-card,
body.royal-gold-theme .winners-body,
body.royal-gold-theme .winners-item {
    position: relative;
    z-index: 10;
    isolation: isolate;
}

/* Ensure proper stacking context for winners section */
body.royal-gold-theme .neon-frame .winners-card {
    background: linear-gradient(135deg, 
        rgba(26, 20, 13, 0.95) 0%, 
        rgba(44, 31, 20, 0.9) 25%, 
        rgba(60, 42, 25, 0.85) 50%, 
        rgba(26, 20, 13, 0.95) 100%) !important;
    backdrop-filter: blur(10px);
}

.neon-frame::before,
body .neon-frame::before,
body.royal-gold-theme .neon-frame::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, 
        #DAA520, 
        #FFD700, 
        #DAA520, 
        #B8860B) !important;
    border-radius: var(--nf-radius, 12px) !important;
    z-index: -1 !important;
    opacity: 0.8 !important;
}

.neon-frame.dynamic,
body .neon-frame.dynamic,
body.royal-gold-theme .neon-frame.dynamic {
    animation: royal-glow 3s ease-in-out infinite alternate !important;
}

@keyframes royal-glow {
    0% {
        box-shadow: 
            0 0 15px rgba(218, 165, 32, 0.4),
            inset 0 0 15px rgba(218, 165, 32, 0.1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(218, 165, 32, 0.8),
            inset 0 0 25px rgba(218, 165, 32, 0.2);
    }
}

