/* ============================================
   QUIZTREFF Easter Event 2026
   Pastell-Glow + Neon/Space Accents
   ============================================ */

/* Easter Egg Base */
.easter-egg {
    position: absolute;
    width: 32px;
    height: 40px;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: easter-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 180, 220, 0.4));
}

.easter-egg:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 12px rgba(255, 180, 220, 0.8));
}

.easter-egg.found {
    opacity: 0;
    pointer-events: none;
    transform: scale(0) rotate(360deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Egg Collection Animation */
.easter-egg.collecting {
    animation: easter-collect 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes easter-collect {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.5) rotate(15deg); opacity: 1; }
    60% { transform: scale(0.3) rotate(-30deg); opacity: 0.6; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes easter-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Egg SVG Variants - Pastel Colors */
.easter-egg[data-variant="1"] { --egg-color: #FFB3D9; --egg-accent: #FF69B4; --egg-stripe: #FFD700; }
.easter-egg[data-variant="2"] { --egg-color: #B3FFB3; --egg-accent: #4CAF50; --egg-stripe: #8BC34A; }
.easter-egg[data-variant="3"] { --egg-color: #B3D9FF; --egg-accent: #42A5F5; --egg-stripe: #7C4DFF; }
.easter-egg[data-variant="4"] { --egg-color: #FFE0B3; --egg-accent: #FFA726; --egg-stripe: #FF7043; }
.easter-egg[data-variant="5"] { --egg-color: #E0B3FF; --egg-accent: #AB47BC; --egg-stripe: #EC407A; }

/* Sparkle effect on find */
.easter-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.easter-sparkle-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: sparkle-burst 0.8s ease-out forwards;
}

@keyframes sparkle-burst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ============================================
   Progress Badge (Bottom Right)
   ============================================ */
.easter-progress-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(30, 15, 40, 0.95), rgba(15, 10, 30, 0.95));
    border: 1px solid rgba(255, 180, 220, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(255, 100, 180, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.easter-progress-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 180, 220, 0.6);
    box-shadow: 0 12px 40px rgba(255, 100, 180, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.easter-progress-badge .badge-icon {
    font-size: 28px;
    animation: easter-float 2s ease-in-out infinite;
}

.easter-progress-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.easter-progress-badge .badge-title {
    font-size: 11px;
    color: rgba(255, 180, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.easter-progress-badge .badge-count {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFB3D9, #FF69B4, #AB47BC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.easter-progress-badge .badge-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.easter-progress-badge .badge-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB3D9, #FF69B4, #AB47BC);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ============================================
   Easter Panel (Expanded Progress)
   ============================================ */
.easter-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    width: 320px;
    max-height: 420px;
    background: linear-gradient(135deg, rgba(30, 15, 40, 0.98), rgba(15, 10, 30, 0.98));
    border: 1px solid rgba(255, 180, 220, 0.3);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 100, 180, 0.1);
    overflow-y: auto;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.easter-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.easter-panel-title {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFB3D9, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.easter-panel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.easter-panel-egg {
    width: 100%;
    aspect-ratio: 0.8;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.easter-panel-egg.found {
    border-color: rgba(255, 180, 220, 0.5);
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.2), rgba(171, 71, 188, 0.2));
    box-shadow: 0 0 12px rgba(255, 100, 180, 0.2);
}

.easter-panel-egg.not-found {
    opacity: 0.3;
}

.easter-panel-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.easter-panel-reward {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.1), rgba(171, 71, 188, 0.1));
    border: 1px solid rgba(255, 180, 220, 0.2);
    border-radius: 12px;
    text-align: center;
}

.easter-panel-reward-text {
    font-size: 13px;
    color: rgba(255, 180, 220, 0.8);
}

.easter-panel-reward-amount {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA726);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Completion Modal
   ============================================ */
.easter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.easter-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.easter-modal {
    background: linear-gradient(135deg, rgba(40, 20, 55, 0.98), rgba(20, 10, 35, 0.98));
    border: 2px solid rgba(255, 180, 220, 0.4);
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(255, 100, 180, 0.15);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.easter-modal-overlay.open .easter-modal {
    transform: scale(1) translateY(0);
}

.easter-modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: easter-float 2s ease-in-out infinite;
}

.easter-modal-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFB3D9, #FF69B4, #AB47BC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.easter-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.easter-modal-credits {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 167, 38, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 20px;
}

.easter-modal-credits span:first-child {
    font-size: 28px;
}

.easter-modal-credits span:last-child {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA726);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.easter-modal-close {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #FF69B4, #AB47BC);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.easter-modal-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 100, 180, 0.4);
}

/* ============================================
   Page hint indicator (subtle glow on pages with eggs)
   ============================================ */
.easter-page-hint {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 100;
    font-size: 11px;
    color: rgba(255, 180, 220, 0.5);
    padding: 4px 10px;
    background: rgba(255, 180, 220, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 180, 220, 0.15);
    pointer-events: none;
    animation: easter-hint-pulse 3s ease-in-out infinite;
}

@keyframes easter-hint-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .easter-progress-badge {
        bottom: 70px;
        right: 12px;
        padding: 8px 12px;
        min-width: 140px;
    }

    .easter-panel {
        bottom: 130px;
        right: 12px;
        width: calc(100vw - 24px);
        max-height: 350px;
    }

    .easter-egg {
        width: 28px;
        height: 36px;
    }
}
