/* ============================================================
   INTRO SPOTLIGHT TOUR
   Highlights key UI elements with positioned tooltips.
   ============================================================ */

/* Backdrop — darkens everything behind the spotlight */
.intro-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-backdrop--visible {
    opacity: 1;
}

.intro-backdrop--exiting {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Spotlight — cutout hole over the target element */
.intro-spotlight {
    position: fixed;
    z-index: 2001;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.78);
    border: 2px solid rgba(234, 179, 8, 0.35);
    pointer-events: none;
    opacity: 0;
    transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.intro-spotlight--visible {
    opacity: 1;
}

.intro-spotlight--exiting {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Tooltip — positioned near the highlighted element */
.intro-tooltip {
    position: fixed;
    z-index: 2002;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 14px 18px 12px;
    max-width: 280px;
    min-width: 180px;
    opacity: 0;
    transition: opacity 0.25s ease, top 0.3s ease, left 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.intro-tooltip--visible {
    opacity: 1;
}

.intro-tooltip--exiting {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Arrow — CSS triangle pointing toward the target */
.intro-tooltip-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #1f2937;
    border: 1px solid #374151;
    transform: rotate(45deg);
}

.intro-tooltip--below .intro-tooltip-arrow {
    top: -7px;
    border-right: none;
    border-bottom: none;
}

.intro-tooltip--above .intro-tooltip-arrow {
    bottom: -7px;
    border-left: none;
    border-top: none;
}

/* Tooltip content */
.intro-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    color: #eab308;
    margin-bottom: 6px;
    line-height: 1.2;
}

.intro-tooltip-text {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.45;
}

/* Footer — hint, CTA button, dots */
.intro-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 10px;
}

.intro-tooltip-hint {
    font-size: 11px;
    color: #6b7280;
    letter-spacing: 0.3px;
}

.intro-tooltip-cta {
    background: #eab308;
    color: #1f2937;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.intro-tooltip-cta:hover {
    background: #facc15;
}

/* Dot indicators */
.intro-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.intro-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b5563;
    transition: background 0.2s;
}

.intro-dot--active {
    background: #eab308;
}

/* Multi-spotlight SVG overlay — dark backdrop with multiple cutout holes */
.intro-multi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2001;
    pointer-events: none;
}

/* Individual highlight borders for multi-spotlight buttons */
.intro-highlight {
    position: fixed;
    z-index: 2001;
    pointer-events: none;
    border: 2px solid rgba(234, 179, 8, 0.35);
    border-radius: 8px;
}

/* "Tap to continue" hint for multi-spotlight step */
.intro-hint {
    position: fixed;
    z-index: 2002;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Diagonal labels for multi-spotlight buttons */
.intro-label {
    position: fixed;
    z-index: 2002;
    pointer-events: none;
    font-size: 12px;
    font-weight: 700;
    color: #eab308;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: left bottom;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
