/*
 * IPS Tour — pure overlay theme.
 * Only styles #ips-tour-highlight and #ips-tour-popover.
 * Never touches existing page elements.
 */

/* ── Highlight with backdrop cutout ─────────────────────── */
#ips-tour-highlight {
    position: fixed;
    z-index: 99998;
    pointer-events: none;
    display: none;
    border-radius: var(--radius-md);
    outline: 2px solid var(--brand-amber);
    outline-offset: 2px;
    box-shadow: 0 0 0 9999px rgba(38, 76, 80, 0.65);
    transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ── Popover ────────────────────────────────────────────── */
#ips-tour-popover {
    position: fixed;
    z-index: 99999;
    display: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-primary);
    color: var(--text-primary);
    padding: var(--space-5);
    max-width: 340px;
    min-width: 240px;
}

/* Close button */
.ips-tour-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.ips-tour-close:hover {
    color: var(--text-primary);
}

/* Title */
.ips-tour-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--brand-teal);
    margin-bottom: var(--space-2);
    padding-right: var(--space-5);
}
[data-theme="dark"] .ips-tour-title {
    color: var(--brand-sky-light);
}

/* Description */
.ips-tour-desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Footer */
.ips-tour-footer {
    margin-top: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.ips-tour-progress {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.ips-tour-nav {
    display: flex;
    gap: var(--space-2);
}

/* Next / Done button */
.ips-tour-btn--next {
    background: var(--interactive-primary);
    color: var(--text-inverted);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition-all);
}
.ips-tour-btn--next:hover {
    background: var(--interactive-primary-hover);
}

/* Back button */
.ips-tour-btn--back {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition-all);
}
.ips-tour-btn--back:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* ── Floating tour button (bottom-right) ────────────────── */
#ips-tour-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    color: var(--brand-teal);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    justify-content: center;
}
#ips-tour-fab:hover {
    background: var(--interactive-primary);
    color: var(--text-inverted);
    border-color: var(--interactive-primary);
    box-shadow: var(--shadow-lg);
}
