/* ============================================
   MIDNIGHT COUNTDOWN WIDGET
   Sötét, misztikus stílus lila-kék-pink gradientekkel
   ============================================ */

.midnight-countdown-widget {
    position: relative;
    background-image: url('https://bnetcmsus-a.akamaihd.net/cms/blog_header/wn/WNVJRL5YVDSB1764095280016.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    /* overflow: hidden törölve - ez vágta le a dropdown menüt! */
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.3),
        0 0 40px rgba(75, 0, 130, 0.2),
        inset 0 0 60px rgba(138, 43, 226, 0.1);
    animation: midnightPulse 4s ease-in-out infinite;
    z-index: 0; /* Widget alul, dropdown (z-index: 1000) felül */
}

/* 30% Dark Overlay */
.midnight-countdown-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    pointer-events: none;
    z-index: -1; /* Widget tartalma alatt */
}

/* Lángoló border animáció */
@keyframes midnightPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(138, 43, 226, 0.3),
            0 0 40px rgba(75, 0, 130, 0.2),
            inset 0 0 60px rgba(138, 43, 226, 0.1);
        border-color: rgba(138, 43, 226, 0.5);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(138, 43, 226, 0.5),
            0 0 60px rgba(75, 0, 130, 0.4),
            inset 0 0 80px rgba(138, 43, 226, 0.2);
        border-color: rgba(186, 85, 211, 0.8);
    }
}

/* Háttér glow effect */
.midnight-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(138, 43, 226, 0.15) 0%,
        rgba(75, 0, 130, 0.1) 30%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: glowRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes glowRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Header */
.midnight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    /* z-index törölve - ne takarja el a dropdownt */
}

.midnight-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.8));
    animation: moonFloat 3s ease-in-out infinite;
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.midnight-title-group {
    flex: 1;
}

.midnight-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(
        90deg,
        hsla(273, 64%, 71%, 1.00) 0%,
        #DA70D6 50%,
        #9370DB 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.midnight-subtitle {
    font-size: 13px;
    color: rgba(186, 85, 211, 0.9);
    margin: 4px 0 0 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Countdown */
.midnight-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    /* z-index törölve - ne takarja el a dropdownt */
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 36px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 
        0 0 20px rgba(138, 43, 226, 0.8),
        0 0 30px rgba(75, 0, 130, 0.6);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Arial Black', Arial, sans-serif;
    animation: numberGlow 2s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(138, 43, 226, 0.8),
            0 0 30px rgba(75, 0, 130, 0.6);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(138, 43, 226, 1),
            0 0 50px rgba(75, 0, 130, 0.8);
    }
}

.countdown-label {
    font-size: 11px;
    color: rgba(186, 85, 211, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.countdown-separator {
    font-size: 28px;
    font-weight: bold;
    color: rgba(138, 43, 226, 0.7);
    margin: 0 4px;
    animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Launch Info */
.midnight-launch-info {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    /* z-index törölve - ne takarja el a dropdownt */
}

.launch-date,
.launch-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.6));
}

.info-text {
    font-size: 13px;
    color: rgba(220, 180, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .midnight-countdown-widget {
        padding: 20px;
    }
    
    .midnight-title {
        font-size: 24px;
    }
    
    .countdown-number {
        font-size: 28px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .midnight-launch-info {
        flex-direction: column;
        gap: 12px;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .midnight-countdown-widget {
        /* Már alapból dark, nincs változtatás */
    }
}
