/* ==========================================================================
   LEGION ARENA - FESTIVE HOLIDAY THEME & EXTRA GLOW LIGHTS
   Pozicionirano na donjoj ivici hedera (nema preklapanja sa menijima i tekstom)
   ========================================================================== */

/* 1. KONTENJER ZA SVETLEĆE LAMPICE I UKRASE (GARLAND) */
header .holiday-garland-wrap,
.site-header .holiday-garland-wrap {
    position: absolute !important;
    top: 100% !important; /* Dno hedera - visi ispod celog navigacionog bloka */
    left: 0 !important;
    width: 100% !important;
    height: 32px !important;
    pointer-events: none !important;
    z-index: 40 !important; /* Ispod hedera i padajućih menija */
    overflow: visible !important;
    user-select: none !important;
}

body > .holiday-garland-wrap {
    position: fixed !important;
    top: 125px !important; /* Nikada ne pokriva heder (Row 1 i Row 2 ostaju kristalno čisti) */
    left: 0 !important;
    width: 100% !important;
    height: 32px !important;
    pointer-events: none !important;
    z-index: 40 !important;
    overflow: visible !important;
    user-select: none !important;
}

.holiday-light-strand {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0 8px;
    list-style: none;
    position: relative;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 215, 0, 0.25);
}

/* Grana / žica između sijalica */
.holiday-light-strand::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b4332, #2d6a4f, #1b4332);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.35);
}

/* Pojedinačna lampica */
.holiday-bulb-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 20px;
    max-width: 44px;
}

/* Grlo lampice (Socket) */
.holiday-bulb-socket {
    width: 8px;
    height: 7px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px 2px 0 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Sijalica sa čistim, bogatim prazničnim sjajem */
.holiday-bulb {
    width: 13px;
    height: 20px;
    border-radius: 50% 50% 60% 60% / 40% 40% 70% 70%;
    position: relative;
    margin-top: -1px;
    transition: all 0.3s ease;
    animation-duration: 1.6s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

/* Unutrašnji odraz svetlosti (Glass Reflection) */
.holiday-bulb::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 3px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: rotate(-25deg);
}

/* BOJE I KONTROLISANI PRAZNIČNI GLOW (Nema zaslepljujuće magle preko teksta) */
.holiday-bulb.bulb-red {
    background: radial-gradient(circle at 35% 35%, #ff4d6d, #dc2626);
    box-shadow: 0 0 16px 5px rgba(239, 68, 68, 0.9), 0 0 28px 8px rgba(239, 68, 68, 0.4);
    animation-name: extraGlowRed;
    animation-delay: 0s;
}
.holiday-bulb.bulb-gold {
    background: radial-gradient(circle at 35% 35%, #fff066, #f59e0b);
    box-shadow: 0 0 16px 5px rgba(255, 215, 0, 0.95), 0 0 30px 9px rgba(255, 215, 0, 0.45);
    animation-name: extraGlowGold;
    animation-delay: 0.35s;
}
.holiday-bulb.bulb-green {
    background: radial-gradient(circle at 35% 35%, #6ee7b7, #059669);
    box-shadow: 0 0 16px 5px rgba(16, 185, 129, 0.9), 0 0 28px 8px rgba(16, 185, 129, 0.4);
    animation-name: extraGlowGreen;
    animation-delay: 0.7s;
}
.holiday-bulb.bulb-blue {
    background: radial-gradient(circle at 35% 35%, #93c5fd, #00e5ff);
    box-shadow: 0 0 16px 5px rgba(0, 229, 255, 0.9), 0 0 28px 8px rgba(0, 229, 255, 0.45);
    animation-name: extraGlowBlue;
    animation-delay: 1.05s;
}
.holiday-bulb.bulb-purple {
    background: radial-gradient(circle at 35% 35%, #f0abfc, #a855f7);
    box-shadow: 0 0 16px 5px rgba(168, 85, 247, 0.9), 0 0 28px 8px rgba(168, 85, 247, 0.4);
    animation-name: extraGlowPurple;
    animation-delay: 1.4s;
}
.holiday-bulb.bulb-orange {
    background: radial-gradient(circle at 35% 35%, #fed7aa, #ea580c);
    box-shadow: 0 0 16px 5px rgba(249, 115, 22, 0.9), 0 0 28px 8px rgba(249, 115, 22, 0.4);
    animation-name: extraGlowOrange;
    animation-delay: 0.5s;
}

/* NOVOGODIŠNJE KUGLICE (BAUBLES) */
.holiday-bulb.bulb-ornament {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    margin-top: 1px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffd700 45%, #b45309 90%);
    box-shadow: 0 0 18px 6px rgba(255, 215, 0, 0.95), 0 0 32px 10px rgba(245, 158, 11, 0.5);
    animation-name: extraGlowOrnament;
    animation-delay: 0.8s;
}

/* ANIMACIJE GLOWA */
@keyframes extraGlowRed {
    0% { opacity: 0.7; box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.5); transform: scale(0.96); }
    100% { opacity: 1; box-shadow: 0 0 20px 7px rgba(239, 68, 68, 0.95); transform: scale(1.05); }
}
@keyframes extraGlowGold {
    0% { opacity: 0.75; box-shadow: 0 0 10px 3px rgba(255, 215, 0, 0.55); transform: scale(0.96); }
    100% { opacity: 1; box-shadow: 0 0 24px 8px rgba(255, 215, 0, 1); transform: scale(1.06); }
}
@keyframes extraGlowGreen {
    0% { opacity: 0.7; box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.5); transform: scale(0.96); }
    100% { opacity: 1; box-shadow: 0 0 20px 7px rgba(16, 185, 129, 0.95); transform: scale(1.05); }
}
@keyframes extraGlowBlue {
    0% { opacity: 0.7; box-shadow: 0 0 8px 2px rgba(0, 229, 255, 0.5); transform: scale(0.96); }
    100% { opacity: 1; box-shadow: 0 0 20px 7px rgba(0, 229, 255, 0.95); transform: scale(1.05); }
}
@keyframes extraGlowPurple {
    0% { opacity: 0.7; box-shadow: 0 0 8px 2px rgba(168, 85, 247, 0.5); transform: scale(0.96); }
    100% { opacity: 1; box-shadow: 0 0 20px 7px rgba(168, 85, 247, 0.95); transform: scale(1.05); }
}
@keyframes extraGlowOrange {
    0% { opacity: 0.7; box-shadow: 0 0 8px 2px rgba(249, 115, 22, 0.5); transform: scale(0.96); }
    100% { opacity: 1; box-shadow: 0 0 20px 7px rgba(249, 115, 22, 0.95); transform: scale(1.05); }
}
@keyframes extraGlowOrnament {
    0% { opacity: 0.75; box-shadow: 0 0 10px 3px rgba(255, 215, 0, 0.6); transform: scale(0.96); }
    100% { opacity: 1; box-shadow: 0 0 24px 8px rgba(255, 215, 0, 1); transform: scale(1.08); }
}

/* 2. MAKSIMALNA VIDLJIVOST I PRIORITET PADAJUĆIH MENIJA (FIX ZA DROPDOWN) */
.user-dropdown,
#userMenuDropdown,
#notifDropdown,
.legion-dropdown-menu,
.legion-lang-dropdown,
.mobile-menu-drawer,
#mobileDrawer {
    z-index: 1000000 !important; /* Uvek na samom vrhu - ništa ne može prekriti meni */
    background: rgba(13, 16, 24, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 229, 255, 0.25) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

/* 3. PADAJUĆI SNEG CANVAS (VISOKE GUSTINE) */
/* Pada iza hedera i iza menija kako tekst i dugmad u hederu uvek ostaju 100% čitljivi */
.holiday-snow-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 35 !important; /* Ispod hedera (z-50 / z-1000) i ispod menija */
}

/* 4. MOBILNA PRILAGOĐENOST */
@media (max-width: 768px) {
    header .holiday-garland-wrap,
    .site-header .holiday-garland-wrap {
        height: 26px !important;
    }
    .holiday-bulb {
        width: 10px;
        height: 15px;
    }
    .holiday-bulb.bulb-ornament {
        width: 13px;
        height: 13px;
    }
    .holiday-bulb-socket {
        width: 6px;
        height: 5px;
    }
}
