/* ============================================================================
   MEETING RECORDING STYLES
   ============================================================================ */

/* Recording Controls Container */
.recording-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Recording Type Selector (used in note recording) */
.recording-type-selector {
    display: flex;
    gap: var(--space-2);
    background: var(--surface-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.recording-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 8px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-size: var(--font-size-12);
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recording-type-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

/* S1-11: an unavailable capture stays VISIBLE and explains itself — hiding it
   is what made the mic/meeting split invisible. */
.recording-type-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.recording-type-btn:disabled:hover {
    color: var(--text-tertiary);
    background: transparent;
}

/* One line under the selector saying, in words, what is about to be captured. */
.recording-mode-hint {
    margin: calc(var(--space-2) * -1) 0 0;
    font-size: var(--font-size-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.recording-type-btn.active {
    background: var(--bg-card);
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    box-shadow: var(--shadow-1);
}

.recording-type-btn.active svg {
    stroke: var(--accent-blue);
}

.recording-type-btn svg {
    width: 18px;
    height: 18px;
}

/* Start Recording Button */
.recording-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: 12px 16px;
    background: var(--color-red-fill);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recording-start-btn:hover {
    background: var(--color-red-fill-hover);
    transform: translateY(-1px);
}

.recording-start-btn:active {
    transform: translateY(0);
}

.recording-start-btn svg {
    width: 16px;
    height: 16px;
}

/* Upload Transcript Button */
.event-upload-transcript-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-top: 8px;
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-dark);
    font-family: inherit;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-in-out), border-color var(--duration-fast) var(--ease-in-out);
    justify-content: center;
}

.event-upload-transcript-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.event-upload-transcript-btn svg {
    flex-shrink: 0;
}

/* Recording Active State */
.recording-active {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: 16px;
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.recording-dot {
    width: 10px;
    height: 10px;
    background: var(--color-red);
    border-radius: var(--radius-circle);
    animation: recording-pulse 1.5s ease-in-out infinite;
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.recording-timer {
    font-family: var(--font-mono, monospace);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* Audio Waveform */
.recording-waveform {
    width: 100%;
    height: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.recording-waveform canvas {
    width: 100%;
    height: 100%;
}

/* Recording Buttons */
.recording-buttons {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
}

.recording-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-circle);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recording-btn svg {
    width: 18px;
    height: 18px;
}

.recording-btn.pause-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.recording-btn.pause-btn:hover {
    background: var(--bg-hover);
}

.recording-btn.pause-btn.is-paused svg {
    display: none;
}

.recording-btn.pause-btn.is-paused::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid currentColor;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.recording-btn.stop-btn {
    background: var(--color-red-fill);
    color: white;
}

.recording-btn.stop-btn:hover {
    background: var(--color-red-fill-hover);
}

.recording-btn.cancel-btn {
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border-light);
}

.recording-btn.cancel-btn:hover {
    color: var(--text-secondary);
    border-color: var(--text-tertiary);
}

/* Recording Upload Progress */
.recording-upload-progress {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
}

.upload-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-secondary);
    border-top-color: var(--accent-blue);
    border-radius: var(--radius-circle);
    animation: spin 0.8s linear infinite;
}

.upload-status-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.upload-progress-bar {
    height: 6px;
    background: var(--surface-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    transition: width var(--duration-normal) var(--ease-in-out);
}

.upload-details {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.upload-percentage {
    font-weight: 500;
    color: var(--accent-blue);
}

/* Upload complete state */
.recording-upload-progress.complete .upload-spinner {
    display: none;
}

.recording-upload-progress.complete .upload-status-text {
    color: var(--color-green-text);
}

.recording-upload-progress.complete .upload-progress-fill {
    background: var(--color-green);
}

/* Recording Playback */
.recording-playback {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.recording-player audio,
.recording-player video {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--surface-secondary);
}

.recording-player audio {
    height: 54px;
    min-height: 54px;
}

.recording-player video {
    max-height: 200px;
    object-fit: contain;
}
