﻿/* =====================================================
   EVENT MODAL - Fullscreen Interactive Valentine Theme
   ===================================================== */

.event-modal {
    --mx: 50%;
    --my: 40%;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
}

.event-modal.active {
    display: block;
}

.event-modal-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 94, 143, 0.24), transparent 45%),
        radial-gradient(circle at 80% 15%, rgba(255, 160, 190, 0.18), transparent 45%),
        linear-gradient(160deg, #180010 0%, #2a0a1b 36%, #1e0719 62%, #0b0612 100%);
    z-index: 0;
}

.event-modal-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/events/valentine_event.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.16;
    filter: blur(2px);
}

.event-modal-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 6, 14, 0.68), rgba(9, 6, 14, 0.82));
}

.event-spotlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(680px circle at var(--mx) var(--my), rgba(255, 110, 160, 0.18), transparent 58%);
    transition: background-position 0.05s linear;
}

.event-hearts-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.event-heart {
    position: absolute;
    bottom: -64px;
    opacity: 0;
    animation: floatHeart linear forwards;
    filter: drop-shadow(0 0 10px rgba(255, 115, 160, 0.7));
    transform: translateX(0);
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
    }
    12% {
        opacity: 0.92;
    }
    80% {
        opacity: 0.68;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 0px), -115vh, 0) rotate(340deg) scale(1.15);
    }
}

.event-modal-close {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 12020;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 170, 200, 0.55);
    background: rgba(38, 9, 27, 0.7);
    color: #ffdce9;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(6px);
}

.event-modal-close:hover {
    transform: rotate(90deg) scale(1.08);
    background: rgba(255, 66, 125, 0.55);
    box-shadow: 0 0 24px rgba(255, 66, 125, 0.55);
}

.event-modal-scroll {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 42px 20px 70px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 120, 170, 0.45) transparent;
}

.event-modal-scroll::-webkit-scrollbar {
    width: 8px;
}

.event-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.event-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 120, 170, 0.45);
    border-radius: 10px;
}

.event-hero {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid rgba(255, 188, 213, 0.62);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffe5ef;
    background: rgba(59, 14, 40, 0.66);
}

.event-title {
    margin: 16px 0 6px;
    color: #fff2f9;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    text-shadow: 0 0 24px rgba(255, 118, 170, 0.42);
}

.event-subtitle {
    margin: 0 auto 26px;
    max-width: 760px;
    color: rgba(255, 223, 236, 0.88);
    font-size: clamp(14px, 1.8vw, 20px);
}

.event-banner-shell {
    position: relative;
    border: 1px solid rgba(255, 170, 205, 0.34);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 22px 54px rgba(5, 0, 7, 0.62),
        0 0 0 1px rgba(255, 178, 209, 0.12) inset,
        0 0 42px rgba(255, 92, 148, 0.22);
    background: rgba(27, 7, 20, 0.7);
}

.event-banner-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 3, 9, 0.24), transparent 38%);
    pointer-events: none;
}

.event-modal-banner {
    display: block;
    width: 100%;
    max-height: min(84vh, 980px);
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: bannerIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes bannerIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.event-actions {
    margin: 26px auto 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-modal-cta,
.event-modal-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.event-modal-cta {
    color: #fff;
    background: linear-gradient(135deg, #ff2f75, #ff6ea4);
    box-shadow: 0 8px 28px rgba(255, 78, 136, 0.4);
}

.event-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 34px rgba(255, 78, 136, 0.58);
}

.event-modal-secondary {
    color: #ffd8e9;
    border: 1px solid rgba(255, 184, 214, 0.58);
    background: rgba(55, 13, 37, 0.52);
}

.event-modal-secondary:hover {
    transform: translateY(-2px);
    background: rgba(71, 18, 47, 0.74);
    box-shadow: 0 8px 26px rgba(255, 114, 170, 0.24);
}

.event-feature-grid {
    margin: 8px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.event-feature-card {
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 175, 206, 0.34);
    background: rgba(44, 11, 30, 0.66);
    text-align: left;
}

.event-feature-card h3 {
    margin: 0 0 6px;
    color: #ffe8f2;
    font-size: 15px;
}

.event-feature-card p {
    margin: 0;
    color: rgba(255, 220, 236, 0.82);
    font-size: 13px;
    line-height: 1.45;
}

.event-modal-dismiss {
    margin-top: 18px;
    border: none;
    background: none;
    color: rgba(255, 212, 230, 0.72);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.event-modal-dismiss:hover {
    color: rgba(255, 228, 239, 1);
}

.event-scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 12030;
    text-align: center;
    color: rgba(255, 199, 223, 0.75);
    font-size: 12px;
    pointer-events: none;
    animation: hintPulse 1.9s ease-in-out infinite;
    transition: opacity 0.25s ease;
}

.event-scroll-hint .scroll-arrow {
    display: block;
    font-size: 18px;
    line-height: 1;
    animation: hintBounce 1.4s ease-in-out infinite;
}

.event-scroll-hint.hidden {
    opacity: 0;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.52; }
    50% { opacity: 1; }
}

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

@media (max-width: 1024px) {
    .event-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .event-modal-scroll {
        padding: 30px 12px 62px;
    }

    .event-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 21px;
    }

    .event-feature-grid {
        grid-template-columns: 1fr;
    }

    .event-modal-cta,
    .event-modal-secondary {
        min-width: min(92vw, 320px);
    }
}

@media (max-width: 480px) {
    .event-pill {
        font-size: 11px;
    }

    .event-subtitle {
        margin-bottom: 16px;
    }

    .event-banner-shell {
        border-radius: 12px;
    }

    .event-feature-card {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-heart,
    .event-modal-banner,
    .event-scroll-hint,
    .event-scroll-hint .scroll-arrow {
        animation: none;
    }
}
