/* ============================================
   SPOTLIGHT TOUR (v13.32.25)
   ============================================ */

/* Overlay - captures clicks outside spotlight */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    /* No background - the spotlight box-shadow creates the darkening */
}

/* Spotlight - the highlighted element cutout */
.tour-spotlight {
    position: fixed;
    z-index: 99999;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* When spotlight is hidden, use overlay as full backdrop */
.tour-spotlight.tour-no-target {
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50%;
}

/* Make highlighted element clickable above overlay */
body.tour-active [data-tour-highlight] {
    position: relative;
    z-index: 100000;
}

/* Tour Card */
.tour-card {
    position: fixed;
    z-index: 100001;
    width: 340px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 20px;
    animation: tourCardIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
}

.tour-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tour-step-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #2563eb);
}

.tour-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.tour-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.tour-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.tour-card-text {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 18px;
}

.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Dots */
.tour-dots {
    display: flex;
    gap: 5px;
}

.tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.2s;
}

.tour-dot.active {
    background: var(--accent, #2563eb);
    width: 20px;
    border-radius: 4px;
}

.tour-dot.done {
    background: #94a3b8;
}

/* Buttons */
.tour-btns {
    display: flex;
    gap: 8px;
}

.tour-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}

.tour-btn-back {
    background: #f1f5f9;
    color: #64748b;
}

.tour-btn-back:hover {
    background: #e2e8f0;
    color: #334155;
}

.tour-btn-next {
    background: var(--accent, #2563eb);
    color: white;
}

.tour-btn-next:hover {
    filter: brightness(1.1);
}

/* Animations */
@keyframes tourFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tourCardIn {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Dark mode */
.dark-mode .tour-card {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dark-mode .tour-card-title { color: #f1f5f9; }
.dark-mode .tour-card-text { color: #94a3b8; }
.dark-mode .tour-step-label { color: var(--accent, #2563eb); }
.dark-mode .tour-dot { background: #334155; }
.dark-mode .tour-dot.done { background: #64748b; }
.dark-mode .tour-btn-back { background: #334155; color: #94a3b8; }
.dark-mode .tour-btn-back:hover { background: #475569; color: #e2e8f0; }
.dark-mode .tour-close:hover { background: #334155; color: #e2e8f0; }
