/**
 * Serenity Scroll Hint CSS
 * All values driven by CSS variables set from widget settings.
 * @package Serenity_Toolkit_Pro
 */

/* ── Hint Container ────────────────────────────────────────── */
.sst-hint {
    --sst-bg:       rgba(0,0,0,0.35);
    --sst-color:    rgba(255,255,255,0.85);
    --sst-fs:       11px;
    --sst-ls:       0.22em;
    --sst-bottom:   36px;
    --sst-pb-color: rgba(255,255,255,0.85);
    --sst-pb-h:     2px;

    position: fixed;
    bottom: var(--sst-bottom);
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sst-hint.sst-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Pill ──────────────────────────────────────────────────── */
.sst-pill {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: var(--sst-fs);
    font-weight: 500;
    letter-spacing: var(--sst-ls);
    text-transform: uppercase;
    color: var(--sst-color);
    background: var(--sst-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 8px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Scroll Wheel (desktop) ────────────────────────────────── */
.sst-wheel {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.75);
    border-radius: 11px;
    position: relative;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.sst-wheel::before {
    content: '';
    width: 3px;
    height: 7px;
    background: rgba(255,255,255,0.9);
    border-radius: 3px;
    position: absolute;
    top: 5px;
    animation: sst-dot 1.8s ease-in-out infinite;
}

@keyframes sst-dot {
    0%   { transform: translateY(0);    opacity: 1; }
    60%  { transform: translateY(10px); opacity: 0; }
    61%  { transform: translateY(0);    opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* ── Finger Swipe (mobile) ─────────────────────────────────── */
.sst-finger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: sst-swipe 1.8s ease-in-out infinite;
}

.sst-finger svg {
    width: 22px;
    height: 22px;
    fill: rgba(255,255,255,0.85);
}

@keyframes sst-swipe {
    0%,100% { transform: translateY(4px);  opacity: 0.5; }
    40%      { transform: translateY(-4px); opacity: 1;   }
}

/* ── Progress Bar ──────────────────────────────────────────── */
.sst-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--sst-pb-h, 2px);
    width: 0%;
    background: var(--sst-pb-color);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, width 0.1s ease-out;
}

.sst-bar.sst-on {
    opacity: 1;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sst-pill {
        padding: 7px 16px;
        font-size: calc(var(--sst-fs) * 0.9);
    }
}

/* ── Hide in Elementor editor ──────────────────────────────── */
.elementor-editor-active .sst-hint,
.elementor-editor-active .sst-bar {
    display: none !important;
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .sst-wheel::before, .sst-finger { animation: none; }
    .sst-hint, .sst-bar { transition: none; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
    .sst-hint, .sst-bar { display: none !important; }
}
