/**
 * Guided Tour Component Styles (v2 — FAB only)
 * Tour modal/spotlight/help menu styles removed — replaced by help-sidebar.css
 */

/* ============================================================================
   VARIABLES
   ============================================================================ */

:root {
    --tour-help-btn-z: 9000;
}

/* ============================================================================
   FLOATING HELP BUTTON
   ============================================================================ */

.guided-tour-help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--tour-help-btn-z);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-primary, #3b82f6);
    color: var(--text-on-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease;
    font-family: inherit;
}

.guided-tour-help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.guided-tour-help-btn:active {
    transform: scale(1.05);
}

.guided-tour-help-btn svg {
    width: 24px;
    height: 24px;
}

/* Help button hidden state */
.guided-tour-help-btn.hidden {
    display: none;
}

/* ============================================================================
   CONNECTION WARNING FAB (sibling of help button, sits to its left)
   ============================================================================ */

.connection-warning-btn {
    position: fixed;
    bottom: 24px;
    right: 84px; /* 24px gap + 48px help width + 12px spacing */
    z-index: var(--tour-help-btn-z);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--status-warning, #f59e0b);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: none; /* hidden until connection drops or test override */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}

.connection-warning-btn.is-visible {
    display: flex;
}

.connection-warning-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

.connection-warning-btn:active {
    transform: scale(1.05);
}

.connection-warning-btn svg {
    width: 24px;
    height: 24px;
}

.connection-warning-btn:focus-visible {
    outline: 2px solid var(--status-warning, #f59e0b);
    outline-offset: 2px;
}

.connection-warning-popover {
    position: fixed;
    bottom: 84px; /* sits above the FAB */
    right: 24px;
    z-index: calc(var(--tour-help-btn-z) + 1);
    max-width: 320px;
    background: var(--card-bg, #ffffff);
    color: var(--text-primary, #111827);
    border: 1px solid var(--status-warning, #f59e0b);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.45;
    display: none;
}

.connection-warning-popover.is-open {
    display: block;
}

.connection-warning-popover .cw-title {
    font-weight: 600;
    color: var(--status-warning, #f59e0b);
    margin-bottom: 6px;
    font-size: 13px;
}

.connection-warning-popover .cw-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    word-break: break-all;
    background: var(--surface-2, rgba(0, 0, 0, 0.04));
    padding: 4px 6px;
    border-radius: 4px;
    margin: 4px 0;
    display: inline-block;
}

.connection-warning-popover .cw-detail {
    margin-top: 6px;
    color: var(--text-secondary, #6b7280);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .guided-tour-help-btn {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    .connection-warning-btn {
        bottom: 16px;
        right: 72px; /* 16 + 44 + 12 */
        width: 44px;
        height: 44px;
    }
    .connection-warning-popover {
        bottom: 72px;
        right: 16px;
        max-width: calc(100vw - 32px);
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.guided-tour-help-btn:focus-visible {
    outline: 2px solid var(--accent-primary, #3b82f6);
    outline-offset: 2px;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .guided-tour-help-btn,
    .connection-warning-btn,
    .connection-warning-popover {
        display: none !important;
    }
}
