/* video_studio/phase2.css — Phase 2 UI (dark .vs-* surface).
 * Grows per Phase 2 feature: markers (P2.6), snapping (P2.5), keyframes (P2.3). */

/* ── Per-track lock (Premiere-style) ──────────────────────────────────── */
.track-lock-toggle { margin-left: auto; font-size: 0.72rem; opacity: 0.35; cursor: pointer; transition: opacity 0.15s, color 0.15s; }
.track-label:hover .track-lock-toggle { opacity: 0.65; }
.track-lock-toggle:hover { opacity: 1 !important; color: #f59e0b; }
.track-label.track-locked { color: #f59e0b; }
.track-label.track-locked .track-lock-toggle { opacity: 1; color: #f59e0b; }
.track.track-locked { background-image: repeating-linear-gradient(45deg, rgba(245,158,11,0.07) 0 9px, transparent 9px 18px); cursor: not-allowed; }

/* ── Markers (P2.6) ───────────────────────────────────────────────────── */
.vs-marker {
    position: absolute;
    top: 0;
    height: 100%;
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.vs-marker-pin {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    transform: rotate(45deg);
    margin-top: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
    flex: none;
}
.vs-marker-line {
    width: 1px;
    flex: 1 1 auto;
    opacity: 0.5;
}
.vs-marker-label {
    position: absolute;
    top: 1px;
    left: 8px;
    white-space: nowrap;
    font-size: 0.62rem;
    font-family: var(--font-body, sans-serif);
    color: var(--vs-text-secondary, #a7adb7);
    background: rgba(0, 0, 0, 0.35);
    padding: 0 4px;
    border-radius: 3px;
    pointer-events: none;
}
.vs-marker-color-popup {
    position: fixed;
    z-index: 1000;
    display: flex;
    gap: 6px;
    padding: 7px 8px;
    background: var(--vs-bg-card, #1d2129);
    border: 1px solid var(--vs-border-medium, rgba(255, 255, 255, 0.15));
    border-radius: 10px;
    box-shadow: var(--vs-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.55));
}
.vs-marker-color-popup .vs-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.1s;
}
.vs-marker-color-popup .vs-swatch:hover { transform: scale(1.15); }
.vs-marker-color-popup .vs-swatch-del {
    background: transparent;
    color: var(--vs-text-secondary, #a7adb7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: none;
}

/* ── Snapping (P2.5) ──────────────────────────────────────────────────── */
.vs-snap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--vs-brand-primary, #78B41E);
    box-shadow: 0 0 4px rgba(120, 180, 30, 0.8);
    z-index: 9;
    pointer-events: none;
}

/* ── Keyframes / inspector transform (P2.3) ───────────────────────────── */
.vs-kf-row { gap: 0.4rem; }
.vs-kf-input { width: 70px; flex: none; }
.vs-kf-toggle {
    width: 26px;
    height: 26px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vs-border-medium, rgba(255, 255, 255, 0.15));
    background: var(--vs-bg-input, #262b33);
    color: var(--vs-text-muted, #6c7480);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.15s;
}
.vs-kf-toggle:hover { color: var(--vs-text-secondary, #a7adb7); }
.vs-kf-toggle.active {
    color: var(--vs-brand-primary, #78B41E);
    border-color: var(--vs-brand-primary, #78B41E);
    background: rgba(120, 180, 30, 0.12);
}
.vs-kf-track {
    position: relative;
    height: 12px;
    margin: 0 0 6px 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
}
.vs-kf-track:empty { display: none; }
.vs-kf-diamond {
    position: absolute;
    top: 1px;
    width: 9px;
    height: 9px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--vs-brand-primary, #78B41E);
    border: 1px solid rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.vs-kf-diamond:hover { background: #a6e04a; }

/* ── Source monitor (P2.2) ────────────────────────────────────────────── */
.vs-asset-monitor-btn {
    position: absolute;
    top: 4px;
    right: 30px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.asset-card:hover .vs-asset-monitor-btn { opacity: 1; }
.vs-asset-monitor-btn:hover { background: var(--vs-brand-primary, #78B41E); }
.vs-source-monitor {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vs-sm-panel {
    width: min(720px, 92vw);
    background: var(--vs-bg-card, #1d2129);
    border: 1px solid var(--vs-border-medium, rgba(255, 255, 255, 0.15));
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--vs-shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.6));
    font-family: var(--font-body, sans-serif);
    color: var(--vs-text-primary, #e9ebee);
}
.vs-sm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.vs-sm-close { background: none; border: none; color: var(--vs-text-secondary, #a7adb7); cursor: pointer; font-size: 1rem; }
.vs-sm-scrub {
    position: relative;
    height: 10px;
    margin: 10px 0 6px;
    background: var(--vs-bg-input, #262b33);
    border-radius: 5px;
}
.vs-sm-range { position: absolute; top: 0; bottom: 0; background: rgba(120, 180, 30, 0.35); border-radius: 5px; }
.vs-sm-mark { position: absolute; top: -2px; width: 2px; height: 14px; }
.vs-sm-mark.in { background: var(--vs-brand-primary, #78B41E); }
.vs-sm-mark.out { background: var(--vs-brand-secondary, #22b8cf); }
.vs-sm-info { font-size: 0.78rem; color: var(--vs-text-secondary, #a7adb7); margin-bottom: 10px; }
.vs-sm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-sm-actions .btn { flex: 1 1 auto; }

/* ── Help overlay / cheat sheet (Finding 6 Pass 2) ────────────────────── */
.vs-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vs-help-panel {
    width: min(900px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: var(--vs-bg-card, #1d2129);
    border: 1px solid var(--vs-border-medium, rgba(255, 255, 255, 0.15));
    border-radius: 14px;
    box-shadow: var(--vs-shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.6));
    color: var(--vs-text-primary, #e9ebee);
    font-family: var(--font-body, sans-serif);
}
.vs-help-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--vs-border-light, rgba(255, 255, 255, 0.08));
    font-weight: 700;
}
.vs-help-close { background: none; border: none; color: var(--vs-text-secondary, #a7adb7); cursor: pointer; font-size: 1.05rem; }
.vs-help-body {
    overflow-y: auto;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}
@media (max-width: 720px) { .vs-help-body { grid-template-columns: 1fr; } }
.vs-help-group-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vs-brand-primary, #78B41E);
    font-weight: 700;
    margin-bottom: 6px;
}
.vs-help-row {
    display: grid;
    grid-template-columns: 18px 130px auto;
    align-items: baseline;
    gap: 4px 8px;
    padding: 3px 0;
    font-size: 0.8rem;
}
.vs-help-icon { color: var(--vs-text-muted, #6c7480); font-size: 0.75rem; }
.vs-help-name { font-weight: 600; color: var(--vs-text-primary, #e9ebee); }
.vs-help-keys { grid-column: 2 / 3; }
.vs-help-desc {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    color: var(--vs-text-secondary, #a7adb7);
    line-height: 1.35;
}
.vs-help-nokey { font-size: 0.68rem; color: var(--vs-text-muted, #6c7480); font-style: italic; }
.vs-help-overlay kbd, .vs-help-foot kbd {
    display: inline-block;
    min-width: 16px;
    padding: 1px 5px;
    margin-right: 3px;
    font-family: var(--font-body, sans-serif);
    font-size: 0.68rem;
    text-align: center;
    color: var(--vs-text-primary, #e9ebee);
    background: var(--vs-bg-input, #262b33);
    border: 1px solid var(--vs-border-medium, rgba(255, 255, 255, 0.15));
    border-radius: 4px;
}
.vs-help-foot {
    padding: 10px 18px;
    border-top: 1px solid var(--vs-border-light, rgba(255, 255, 255, 0.08));
    font-size: 0.72rem;
    color: var(--vs-text-muted, #6c7480);
}

