/* ============================================
   Splash Popup - Ayakkabi Sihirbazi
   UQPE - Premium Discovery Popup
   ============================================ */

/* === Container / Overlay === */
.uq-splash {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.uq-splash.is-visible {
    opacity: 1;
    visibility: visible;
}

/* === Backdrop === */
.uq-splash__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 42, 38, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* === Card === */
.uq-splash__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 48px 36px 36px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(236, 229, 223, 0.7);
    border-radius: 24px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    text-align: center;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
}

.uq-splash.is-visible .uq-splash__card {
    transform: translateY(0) scale(1);
}

/* === Decorative Orbs === */
.uq-splash__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.uq-splash__orb--1 {
    width: 200px;
    height: 200px;
    background: #f5e6e8;
    top: -60px;
    right: -40px;
    animation: splashOrbFloat1 15s ease-in-out infinite;
}

.uq-splash__orb--2 {
    width: 160px;
    height: 160px;
    background: #fce4e0;
    bottom: -40px;
    left: -30px;
    animation: splashOrbFloat2 18s ease-in-out infinite;
}

@keyframes splashOrbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 8px); }
}

@keyframes splashOrbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -10px); }
}

/* === Close Button === */
.uq-splash__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 248, 246, 0.7);
    border: 1px solid #ece5df;
    border-radius: 50%;
    color: #8c7b74;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.uq-splash__close:hover {
    background: #fff;
    color: #b76e79;
    border-color: #b76e79;
    transform: rotate(90deg);
}

/* === Visual / Icon Area === */
.uq-splash__visual {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
}

.uq-splash__icon-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b76e79, #c9a96e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(183, 110, 121, 0.3);
    animation: splashIconPulse 3s ease-in-out infinite;
}

.uq-splash__icon-ring-inner {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    animation: splashIconSpin 8s linear infinite;
}

@keyframes splashIconPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(183, 110, 121, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 48px rgba(183, 110, 121, 0.45);
        transform: scale(1.05);
    }
}

@keyframes splashIconSpin {
    to { transform: rotate(360deg); }
}

/* === Sparkle Particles === */
.uq-splash__sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a96e;
    opacity: 0;
    animation: splashSparkle 3s ease-in-out infinite;
}

.uq-splash__sparkle--1 { top: -5px; left: 20%; animation-delay: 0s; background: #b76e79; }
.uq-splash__sparkle--2 { top: 15%; right: -8px; animation-delay: 0.6s; width: 4px; height: 4px; }
.uq-splash__sparkle--3 { bottom: -5px; right: 25%; animation-delay: 1.2s; background: #d4a0a8; width: 5px; height: 5px; }
.uq-splash__sparkle--4 { bottom: 20%; left: -6px; animation-delay: 1.8s; width: 4px; height: 4px; }
.uq-splash__sparkle--5 { top: 40%; right: -10px; animation-delay: 2.4s; background: #b76e79; width: 3px; height: 3px; }

@keyframes splashSparkle {
    0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
    30% { opacity: 1; transform: scale(1) translateY(-4px); }
    70% { opacity: 0.5; transform: scale(0.8) translateY(-8px); }
}

/* === Typography === */
.uq-splash__eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c9a96e;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.uq-splash__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2d2a26;
    margin: 0 0 12px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.uq-splash__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #8c8279;
    line-height: 1.65;
    margin: 0 0 28px;
    position: relative;
    z-index: 1;
}

/* === CTA Button === */
.uq-splash__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #b76e79;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(183, 110, 121, 0.25);
}

.uq-splash__cta:hover {
    background: #a55f6a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(183, 110, 121, 0.35);
    text-decoration: none;
}

.uq-splash__cta:active {
    transform: translateY(0);
}

/* === Skip/Dismiss Link === */
.uq-splash__skip {
    display: block;
    margin: 16px auto 0;
    padding: 4px 8px;
    background: none;
    border: none;
    color: #b0a59e;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}

.uq-splash__skip:hover {
    color: #b76e79;
}

/* === Exit Animation === */
.uq-splash.is-leaving {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.uq-splash.is-leaving .uq-splash__card {
    transform: translateY(-20px) scale(0.96);
    transition: transform 0.35s ease;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .uq-splash,
    .uq-splash__card {
        transition-duration: 0.01s !important;
    }

    .uq-splash__orb,
    .uq-splash__sparkle,
    .uq-splash__icon-ring,
    .uq-splash__icon-ring-inner {
        animation: none !important;
    }

    .uq-splash__icon-ring {
        transform: none !important;
        box-shadow: 0 8px 32px rgba(183, 110, 121, 0.3) !important;
    }

    .uq-splash__close:hover {
        transform: none;
    }
}

/* === Mobile Responsive === */
@media (max-width: 480px) {
    .uq-splash {
        padding: 16px;
    }

    .uq-splash__card {
        max-width: 100%;
        padding: 40px 24px 28px;
        border-radius: 20px;
    }

    .uq-splash__visual {
        width: 76px;
        height: 76px;
        margin-bottom: 20px;
    }

    .uq-splash__icon-ring {
        width: 76px;
        height: 76px;
    }

    .uq-splash__icon-ring .uq-splash__icon-svg {
        width: 34px;
        height: 34px;
    }

    .uq-splash__title {
        font-size: 1.6rem;
    }

    .uq-splash__text {
        font-size: 0.82rem;
        margin-bottom: 22px;
    }

    .uq-splash__cta {
        padding: 12px 26px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}
