/**
 * Onboarding UI Styles
 * Flipbook Tour + Newsstand Welcome Banner + Tag Tooltips
 * V1.0.0 — 2026-03-25
 * Matches existing dark theme: #0a0a0f bg, #c9a84c gold accent
 */

/* ═══════════════════════════════════════════════════
   1. COACH MARK OVERLAY (Flipbook Tour)
   ═══════════════════════════════════════════════════ */

.fluid-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: none;
}

/* The spotlight cutout mask */
.fluid-tour-spotlight {
    position: fixed;
    z-index: 99998;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Pulsing ring around spotlight */
.fluid-tour-spotlight::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(201, 168, 76, 0.6);
    border-radius: 16px;
    animation: tour-pulse 2s ease-in-out infinite;
}

@keyframes tour-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* Tooltip card */
.fluid-tour-tooltip {
    position: fixed;
    z-index: 99999;
    max-width: 340px;
    width: calc(100vw - 32px);
    background: rgba(18, 18, 26, 0.96);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
    padding: 24px;
    color: #e8e6e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 168, 76, 0.08);
    pointer-events: auto;
    animation: tour-tooltip-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tour-tooltip-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fluid-tour-tooltip-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.fluid-tour-tooltip-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.fluid-tour-tooltip-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #9a9890;
    margin-bottom: 20px;
}

/* Progress dots */
.fluid-tour-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.fluid-tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.fluid-tour-dot.active {
    background: #c9a84c;
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.5);
}

.fluid-tour-dot.done {
    background: rgba(201, 168, 76, 0.4);
}

/* Action buttons */
.fluid-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fluid-tour-btn-skip {
    background: none;
    border: none;
    color: #6a6860;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
    transition: color 0.2s;
}

.fluid-tour-btn-skip:hover {
    color: #9a9890;
}

.fluid-tour-btn-next {
    background: linear-gradient(135deg, #c9a84c, #b8943c);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25);
}

.fluid-tour-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, 0.35);
    background: linear-gradient(135deg, #d4b35a, #c9a84c);
}

/* Step counter */
.fluid-tour-counter {
    font-size: 0.72rem;
    color: #6a6860;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════
   2. NEWSSTAND WELCOME BANNER
   ═══════════════════════════════════════════════════ */

.fluid-welcome-banner {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.95), rgba(26, 26, 37, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 16px 24px 0;
    position: relative;
    overflow: hidden;
    animation: welcome-slide-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes welcome-slide-in {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fluid-welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
}

.fluid-welcome-banner-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #6a6860;
    font-size: 1.1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.fluid-welcome-banner-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #9a9890;
}

.fluid-welcome-title {
    font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.fluid-welcome-title span {
    color: #c9a84c;
}

.fluid-welcome-text {
    font-size: 0.88rem;
    color: #9a9890;
    margin-bottom: 16px;
    line-height: 1.5;
}

.fluid-welcome-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.fluid-welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.78rem;
    color: #e8e6e0;
    white-space: nowrap;
    transition: all 0.25s;
}

.fluid-welcome-pill:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    color: #c9a84c;
}

.fluid-welcome-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fluid-welcome-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #c9a84c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.fluid-welcome-btn-primary:hover {
    background: #b8943c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.fluid-welcome-btn-secondary {
    color: #9a9890;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fluid-welcome-btn-secondary:hover {
    color: #c9a84c;
}

/* Banner dismiss animation */
.fluid-welcome-banner.dismissing {
    animation: welcome-dismiss 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes welcome-dismiss {
    to { opacity: 0; transform: translateY(-16px); margin-top: -80px; }
}


/* ═══════════════════════════════════════════════════
   3. TAG FIRST-TAP TOOLTIPS
   ═══════════════════════════════════════════════════ */

.fluid-tag-hint {
    position: absolute;
    z-index: 10000;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 220px;
    pointer-events: none;
    animation: tag-hint-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@keyframes tag-hint-in {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fluid-tag-hint-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.fluid-tag-hint-text {
    font-size: 0.75rem;
    color: #9a9890;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

/* Arrow pointing down */
.fluid-tag-hint::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(18, 18, 26, 0.95);
    border-right: 1px solid rgba(201, 168, 76, 0.3);
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}


/* ═══════════════════════════════════════════════════
   4. RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .fluid-tour-tooltip {
        max-width: calc(100vw - 24px);
        padding: 20px;
        border-radius: 12px;
    }

    .fluid-welcome-banner {
        margin: 12px 12px 0;
        padding: 20px;
        border-radius: 12px;
    }

    .fluid-welcome-title {
        font-size: 1.1rem;
    }

    .fluid-welcome-features {
        gap: 6px;
    }

    .fluid-welcome-pill {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .fluid-welcome-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fluid-welcome-btn-primary {
        justify-content: center;
    }
}
