/* V2 feature panels: shortcut overlay (Alt+K), recording panel. */

/* ═══════════════════════════════════════════════════════════════════════════
   Shortcut Overlay (Alt+K / toolbar button, desktop only)
   ═══════════════════════════════════════════════════════════════════════════ */

.v2-shortcut-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.v2-shortcut-overlay-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.v2-shortcut-overlay-inner {
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 40px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.v2-shortcut-header {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #e6e6e6);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-align: center;
}

.v2-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.v2-shortcut-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 18px 20px;
}

.v2-shortcut-card-wide {
    grid-column: span 2;
}

@media (max-width: 800px) {
    .v2-shortcut-card-wide {
        grid-column: span 1;
    }
    .v2-shortcut-grid {
        grid-template-columns: 1fr;
    }
}

.v2-shortcut-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #58a6ff);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.v2-shortcut-card-note {
    font-size: 11px;
    color: var(--text-muted, #888);
    margin-bottom: 10px;
    line-height: 1.4;
    font-style: italic;
}

.v2-shortcut-card-footer {
    font-size: 11px;
    color: var(--text-muted, #888);
    margin-top: 10px;
    line-height: 1.4;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}

.v2-shortcut-table {
    width: 100%;
    border-collapse: collapse;
}

.v2-shortcut-table tr + tr td {
    padding-top: 5px;
}

.v2-shortcut-keys {
    white-space: nowrap;
    padding-right: 14px;
    vertical-align: top;
    width: 1%;
}

.v2-shortcut-action {
    color: var(--text-primary, #ccc);
    font-size: 12px;
    vertical-align: top;
    line-height: 1.5;
}

.v2-shortcut-note {
    color: var(--text-muted, #888);
    font-size: 11px;
}

.v2-shortcut-sep {
    color: var(--text-muted, #666);
    margin: 0 2px;
    font-size: 11px;
}

.v2-shortcut-overlay kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary, #ddd);
    line-height: 1.6;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.v2-shortcut-toolbar-btn {
    font-size: 16px;
    opacity: 0.7;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary, #ccc);
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: opacity 0.15s;
}

.v2-shortcut-toolbar-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Recording Panel
   ═══════════════════════════════════════════════════════════════════════════ */

.v2-recording-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
    color: var(--text-primary, #ccc);
}

.v2-recording-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #e6e6e6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2-recording-close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #888);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
    margin-right: 20px;
    margin-top: -15px;
}

.v2-recording-close-btn:hover {
    color: var(--text-primary, #ccc);
    background: rgba(255,255,255,0.08);
}

.v2-recording-hint {
    font-size: 10px;
    color: var(--text-muted, #666);
    line-height: 1.4;
    margin-top: -6px;
    padding-left: 120px;
}

.v2-recording-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-recording-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-recording-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted, #888);
}

.v2-recording-input,
.v2-recording-select {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
    background: var(--bg-secondary, #1e1e2e);
    color: var(--text-primary, #ccc);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
}

.v2-recording-input:focus,
.v2-recording-select:focus {
    border-color: var(--accent, #58a6ff);
    outline: none;
}

.v2-recording-info {
    font-size: 11px;
    color: var(--text-muted, #888);
    line-height: 1.5;
    min-height: 1.5em;
}

.v2-recording-warning {
    color: var(--console-warn, #d29922) !important;
}

.v2-recording-btn-row {
    display: flex;
    gap: 8px;
}

.v2-recording-start-btn {
    flex: 1;
    padding: 8px 16px;
    background: var(--accent, #58a6ff);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.v2-recording-start-btn:hover {
    opacity: 0.85;
}

.v2-recording-start-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.v2-recording-abort-btn {
    padding: 8px 16px;
    background: var(--console-error, #f85149);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.v2-recording-abort-btn:hover {
    opacity: 0.85;
}

.v2-recording-progress {
    height: 6px;
    background: var(--bg-secondary, #1e1e2e);
    border-radius: 3px;
    overflow: hidden;
}

.v2-recording-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent, #58a6ff);
    border-radius: 3px;
    transition: width 0.2s ease;
}

.v2-recording-progress-text {
    font-size: 11px;
    color: var(--text-muted, #888);
    text-align: center;
}
