/* ============================================
   Easter Egg Hunt – Styles
   ============================================ */

/* ---------- The Egg ---------- */
#easter-egg-hunt-egg {
    position: fixed;
    z-index: 99990;
    cursor: pointer;
    /* Random position is set via JS */
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

#easter-egg-hunt-egg:hover {
    transform: scale(1.25);
}

.easter-egg-inner {
    animation: eggBounce 2.5s ease-in-out infinite, eggWobble 3s ease-in-out infinite;
}

.easter-egg-icon {
    font-size: 44px;
    display: block;
    line-height: 1;
    user-select: none;
}

/* Bouncing animation */
@keyframes eggBounce {
    0%, 100% { transform: translateY(0); }
    40%      { transform: translateY(-14px); }
    60%      { transform: translateY(-6px); }
}

/* Wobble animation */
@keyframes eggWobble {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(4deg); }
    75%      { transform: rotate(-4deg); }
}

/* ---------- Modal ---------- */
.easter-egg-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999998;
}

#easter-egg-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.easter-egg-modal-content {
    position: relative;
    z-index: 999999;
    background: linear-gradient(145deg, #fef9e7 0%, #fff5f9 50%, #edf7ff 100%);
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPop {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.easter-egg-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px 8px;
}

.easter-egg-modal-close:hover {
    color: #333;
}

/* ---------- Prize Reveal ---------- */
.easter-egg-cracked {
    font-size: 64px;
    animation: crackPop 0.6s ease-out;
    margin-bottom: 8px;
}

@keyframes crackPop {
    0%   { transform: scale(0) rotate(-20deg); }
    60%  { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.easter-egg-prize h2 {
    font-size: 24px;
    color: #2d2d2d;
    margin: 0 0 6px;
    font-weight: 700;
}

.easter-egg-congrats {
    color: #666;
    font-size: 15px;
    margin: 0 0 20px;
}

/* Coupon box */
.easter-egg-coupon-box {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 0 0 20px;
    position: relative;
    overflow: hidden;
}

.easter-egg-coupon-box::before,
.easter-egg-coupon-box::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #fef9e7, #fff5f9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.easter-egg-coupon-box::before { left: -12px; }
.easter-egg-coupon-box::after  { right: -12px; }

.easter-egg-discount {
    display: block;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.easter-egg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 12px;
}

.easter-egg-code-wrap {
    font-size: 15px;
    opacity: 0.95;
}

.easter-egg-code {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 17px;
    letter-spacing: 1.5px;
}

/* Copy button */
.easter-egg-copy-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.easter-egg-copy-btn:hover {
    background: #6d28d9;
}

.easter-egg-copied {
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

/* ---------- Confetti ---------- */
.easter-egg-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    opacity: 0;
    animation: confettiFall 2.5s ease-out forwards;
}

@keyframes confettiFall {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(350px) rotate(720deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .easter-egg-modal-content {
        padding: 28px 20px 24px;
    }
    .easter-egg-discount {
        font-size: 34px;
    }
    .easter-egg-icon {
        font-size: 36px;
    }
}
