/* Onboarding - Guided Tours & Nudges */

/* Nudge Tooltip */
.rf-nudge {
    position: absolute;
    z-index: 9998;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
    animation: rfNudgeFadeIn 0.3s ease-out;
    pointer-events: auto;
}

.rf-nudge::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #7c3aed;
    transform: rotate(45deg);
}

.rf-nudge[data-position="bottom"]::after {
    top: -5px;
    left: 24px;
}

.rf-nudge[data-position="top"]::after {
    bottom: -5px;
    left: 24px;
}

.rf-nudge[data-position="right"]::after {
    left: -5px;
    top: 16px;
}

.rf-nudge[data-position="left"]::after {
    right: -5px;
    top: 16px;
}

.rf-nudge-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.rf-nudge-body {
    opacity: 0.92;
    font-size: 13px;
}

/* Overlay with spotlight */
.rf-nudge-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0, 0, 0, 0.55);
    animation: rfNudgeFadeIn 0.25s ease-out;
}

.rf-nudge-spotlight {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    z-index: 9997;
    pointer-events: none;
}

/* Tour Progress Dots */
.rf-tour-progress {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.rf-tour-progress .rf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s;
}

.rf-tour-progress .rf-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Actions */
.rf-nudge-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.rf-nudge-actions button {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.rf-nudge-btn-skip {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.rf-nudge-btn-skip:hover {
    color: #fff;
}

.rf-nudge-btn-next {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.rf-nudge-btn-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

.rf-nudge-btn-cta {
    background: #fff;
    color: #7c3aed;
}

.rf-nudge-btn-cta:hover {
    background: #f3f0ff;
}

/* Animations */
@keyframes rfNudgeFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .rf-nudge,
    .rf-nudge-overlay {
        animation: none;
    }
}
