/* Guide Tooltip — v1 (new file to bypass Cloudflare cache on _ui-redesign.css)
 *
 * Problem: Alpine x-transition reuses pricing-tooltip-enter/leave classes which set
 * transform: translateY(8px). This conflicts with the tooltip's transform: translateX(-50%)
 * centering. When the enter-end class fires, translateY(0) removes the X centering.
 *
 * Fix: Override all transition states for .guide-btn-wrap .guide-tooltip to combine
 * both transforms, preserving the X centering at every transition state.
 */

.guide-btn-wrap {
    position: relative;
}

.guide-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    padding: 12px 14px 12px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    z-index: 200;
    white-space: nowrap;
    min-width: 240px;
    pointer-events: auto;
}

/* Transition state overrides — combine both transforms to preserve X centering */
.guide-btn-wrap .guide-tooltip.pricing-tooltip-enter-start {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

.guide-btn-wrap .guide-tooltip.pricing-tooltip-enter-end {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.guide-btn-wrap .guide-tooltip.pricing-tooltip-leave-start {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.guide-btn-wrap .guide-tooltip.pricing-tooltip-leave-end {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

/* Arrow pointing down from tooltip */
.guide-tooltip__arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

/* Icon badge */
.guide-tooltip__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    flex-shrink: 0;
}

/* Close button */
.guide-tooltip__close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    margin-left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.guide-tooltip__close:hover {
    background: var(--bg-primary);
}

/* Text content */
.guide-tooltip__text {
    font-size: 13px;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.guide-tooltip__text strong {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.guide-tooltip__text span {
    color: var(--text-secondary);
}

/* Accent highlight within tooltip text */
.guide-tooltip__hl {
    color: var(--accent) !important;
    font-weight: 700;
}

/* ===== MOBILE: right-align tooltip on small screens ===== */
@media (max-width: 640px) {
    .guide-btn-wrap .guide-tooltip {
        left: auto;
        right: -8px;
        transform: none;
    }

    .guide-btn-wrap .guide-tooltip.pricing-tooltip-enter-start {
        transform: none;
        opacity: 0;
    }

    .guide-btn-wrap .guide-tooltip.pricing-tooltip-enter-end {
        transform: none;
        opacity: 1;
    }

    .guide-btn-wrap .guide-tooltip.pricing-tooltip-leave-start {
        transform: none;
        opacity: 1;
    }

    .guide-btn-wrap .guide-tooltip.pricing-tooltip-leave-end {
        transform: none;
        opacity: 0;
    }
}
