/* ==========================================================================
   SKÖLD INTERACTIVE GUIDED TUTORIAL STYLES (tutorial.css)
   ========================================================================== */

.skold-tour-spotlight {
    position: fixed;
    z-index: 1085;
    border-radius: 10px;
    border: 2px solid var(--color-cyan, #00F0FF);
    box-shadow: 0 0 0 9999px rgba(4, 8, 18, 0.72), 0 0 22px rgba(0, 240, 255, 0.45);
    pointer-events: none;
    transition: top 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

.skold-tour-spotlight.is-hidden {
    opacity: 0;
}

.skold-tour-no-transition {
    transition: none !important;
}

.skold-tour-backdrop-clickcatcher {
    position: fixed;
    inset: 0;
    z-index: 1084;
    background: transparent;
}

.skold-tour-backdrop-dim {
    position: fixed;
    inset: 0;
    z-index: 1084;
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(3px);
}

.skold-tour-card {
    position: fixed;
    z-index: 1088;
    width: min(390px, calc(100vw - 24px));
    background: rgba(11, 16, 30, 0.98);
    border: 1px solid rgba(0, 240, 255, 0.42);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 240, 255, 0.16);
    color: var(--color-text-main, #F1F5F9);
    font-family: var(--font-sans, sans-serif);
    transition: top 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

.skold-tour-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.skold-tour-chapter {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--color-cyan, #00F0FF);
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.32);
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
}

.skold-tour-step-counter {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: var(--color-text-muted, #94A3B8);
}

.skold-tour-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-main, #FFFFFF);
    margin: 0 0 0.4rem 0;
}

.skold-tour-body {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--color-text-sub, #CBD5E1);
    margin-bottom: 0.85rem;
}

.skold-tour-progress-track {
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.skold-tour-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--color-cyan, #00F0FF);
    transition: width 0.25s ease;
}

.skold-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skold-tour-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* First Sign-In Welcome Dialog */
.skold-tutorial-welcome-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1086;
    background: rgba(4, 8, 18, 0.78);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.skold-tutorial-welcome-card {
    width: min(500px, 100%);
    background: rgba(11, 16, 30, 0.99);
    border: 1px solid rgba(0, 240, 255, 0.42);
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 240, 255, 0.16);
    color: var(--color-text-main, #F1F5F9);
}

.skold-tutorial-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--color-cyan, #00F0FF);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.75rem;
}

/* Top Bar Guide Button Polish */
.terminal-guide-btn {
    padding: 0.24rem 0.58rem !important;
    font-size: 0.73rem !important;
}

/* Light Theme Overrides */
[data-theme="light"] .skold-tour-spotlight {
    border-color: #0284C7;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.52), 0 0 20px rgba(2, 132, 199, 0.45);
}

[data-theme="light"] .skold-tour-backdrop-dim,
[data-theme="light"] .skold-tutorial-welcome-backdrop {
    background: rgba(15, 23, 42, 0.54);
}

[data-theme="light"] .skold-tour-card,
[data-theme="light"] .skold-tutorial-welcome-card {
    background: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    color: #0F172A;
}

[data-theme="light"] .skold-tour-title {
    color: #0F172A;
}

[data-theme="light"] .skold-tour-body {
    color: #334155;
}

[data-theme="light"] .skold-tour-chapter,
[data-theme="light"] .skold-tutorial-welcome-badge {
    color: #0284C7;
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.28);
}

[data-theme="light"] .skold-tour-progress-track {
    background: #E2E8F0;
}

[data-theme="light"] .skold-tour-progress-fill {
    background: #0284C7;
}

@media (max-width: 639.98px) {
    .skold-tour-card {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        top: auto !important;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skold-tour-spotlight,
    .skold-tour-card,
    .skold-tour-progress-fill {
        transition-duration: 0.01ms !important;
    }
}
