/**
 * qda-tour-menu.css — Tour menu modal + toast feedback styling
 * Per PROMPT_FIX_3_ISSUES_ALL_OUT — anti-shortcut #2
 *
 * Includes:
 *   - Tour menu modal page-aware sections
 *   - Tour menu items (primary + others collapsed)
 *   - Quiz AI quick-help link
 *   - Toast feedback (info/warning/error)
 */

/* ── Toast feedback ─────────────────────────────────────────────── */
.qda-tour-toast {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: var(--bg-elevated, #1f2937);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: var(--text-primary, #f1f5f9);
    font-size: 0.875rem;
    max-width: 420px;
    line-height: 1.5;
    animation: qda-toast-slide-in 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes qda-toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.qda-tour-toast-msg {
    flex: 1;
    color: var(--text-primary, #f1f5f9);
}

.qda-tour-toast-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary, #94a3b8);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.qda-tour-toast-close:hover {
    color: var(--text-primary, #f1f5f9);
}

.qda-tour-toast-info {
    border-left: 4px solid var(--accent-primary, #3B82F6);
}
.qda-tour-toast-success {
    border-left: 4px solid var(--success, #22c55e);
}
.qda-tour-toast-warning {
    border-left: 4px solid var(--warning, #eab308);
}
.qda-tour-toast-error {
    border-left: 4px solid var(--danger, #ef4444);
}

/* ── Tour menu page-aware enhancements ──────────────────────────── */

.tour-menu-section-label {
    font-size: 0.8rem;
    color: var(--text-tertiary, #94a3b8);
    margin: 0 0 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tour-menu-others {
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--border-color, rgba(255, 255, 255, 0.08));
}
.tour-menu-others summary {
    cursor: pointer;
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.825rem;
    padding: 0.4rem 0;
    user-select: none;
}
.tour-menu-others summary::-webkit-details-marker {
    color: var(--accent-primary, #3B82F6);
}
.tour-menu-others[open] summary {
    margin-bottom: 0.5rem;
}

.tour-menu-divider {
    border: none;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    margin: 1rem 0;
}

.tour-menu-quick-help {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tour-menu-quiz {
    background: linear-gradient(135deg, var(--c-app-accent-soft, rgba(59, 130, 246, 0.1)), var(--c-app-accent-soft, rgba(6, 182, 212, 0.06)));
    border-color: var(--c-app-accent-soft, rgba(59, 130, 246, 0.3)) !important;
}

/* Responsive: mobile toast */
@media (max-width: 767px) {
    .qda-tour-toast {
        left: 1rem;
        right: 1rem;
        bottom: calc(4.5rem + env(safe-area-inset-bottom));
        max-width: none;
    }
}

/* Light mode */
body.theme-light .qda-tour-toast {
    background: var(--bg-elevated, #ffffff);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
