/* ============================================
   WALKTHROUGH / GUIDED TOUR
   Shared component for page walkthroughs
   ============================================ */

.walkthrough-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.6);
    transition: clip-path 0.05s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.walkthrough-overlay.active {
    opacity: 1;
}

.walkthrough-highlight {
    position: fixed;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 0 0 3px var(--primary), 0 0 20px rgba(var(--primary-rgb), 0.3);
    pointer-events: none;
    transition: top 0.05s ease-out, left 0.05s ease-out,
                width 0.05s ease-out, height 0.05s ease-out,
                opacity 0.2s ease;
    opacity: 0;
}

.walkthrough-highlight.active {
    opacity: 1;
}

.walkthrough-tooltip {
    position: fixed;
    z-index: 10000;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: top 0.05s ease-out, left 0.05s ease-out, opacity 0.2s ease;
    opacity: 0;
    pointer-events: auto;
}

.walkthrough-tooltip.active {
    opacity: 1;
}

.walkthrough-tooltip-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.walkthrough-tooltip-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.walkthrough-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.walkthrough-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.walkthrough-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.2s ease, transform 0.2s ease;
}

.walkthrough-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.walkthrough-counter {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.walkthrough-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.walkthrough-btn-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.walkthrough-btn-skip:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.walkthrough-btn-back {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.walkthrough-btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.walkthrough-btn-next {
    background: var(--primary);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 7px 18px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.walkthrough-btn-next:hover {
    background: var(--primary-hover);
}

.walkthrough-btn-next:active {
    transform: scale(0.97);
}

/* Mobile */
@media (max-width: 600px) {
    .walkthrough-tooltip {
        bottom: 16px;
        left: 16px !important;
        right: 16px;
        top: auto !important;
        width: auto;
    }
}
