/* ═══════════════════════════════════════════
 * ALM Easter Eggs — Frontend styles
 * Ambiance : librairie romance, dark & gold
 * ═══════════════════════════════════════════ */

/* ── Hidden book icon in footer ── */
.alm-ee-hidden-book {
    position: fixed;
    bottom: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 80, 90, 0.12);
    cursor: default;
    z-index: 10;
    transition: color 0.4s, transform 0.3s;
    user-select: none;
}
.alm-ee-hidden-book:hover {
    color: rgba(160, 108, 213, 0.55);
    transform: scale(1.3);
    cursor: pointer;
}

/* ── Popup overlay ── */
.alm-ee-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.alm-ee-popup.is-visible {
    opacity: 1;
}

/* Backdrop */
.alm-ee-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 25, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Content card */
.alm-ee-popup-content {
    position: relative;
    background: linear-gradient(145deg, #1e1028, #2b1221);
    border: 1px solid rgba(214, 177, 90, 0.3);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 460px;
    width: 90%;
    box-shadow:
        0 0 40px rgba(160, 108, 213, 0.2),
        0 0 80px rgba(214, 177, 90, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.alm-ee-popup.is-visible .alm-ee-popup-content {
    transform: scale(1) translateY(0);
}

/* Close button */
.alm-ee-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}
.alm-ee-popup-close:hover {
    color: #d6b15a;
}

/* Message text */
.alm-ee-popup-msg {
    color: #f5f0ff;
    font-size: 1.05rem;
    line-height: 1.65;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.01em;
}

/* ── Sparkle particles ── */
.alm-ee-sparkle {
    position: absolute;
    font-size: 18px;
    pointer-events: none;
    animation: alm-ee-float 2s ease-out forwards;
    opacity: 0;
    z-index: 1;
}
@keyframes alm-ee-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-60px) scale(1.1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(0.3) rotate(360deg);
    }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .alm-ee-popup-content {
        padding: 28px 20px 22px;
        max-width: 95%;
    }
    .alm-ee-popup-msg {
        font-size: 0.95rem;
    }
}
