/* ===== Görüntülü AI Mülakat: kamera paneli ===== */
/* .interview-room, .interview-header, .interview-setup, .chat-area, .input-area vb.
   temel yapı css/views/interview.css'ten paylaşılır; burada yalnızca kamera paneline
   özgü stiller bulunur. */

/* .video-placeholder / .rec-indicator / .video-timer-chip her biri kendi display'ini
   tanımlıyor; .hidden ile aynı özgüllükte olduğundan (bkz. interview.css'teki not) burada
   açıkça ezilmesi gerekiyor, yoksa kamera açıkken yer tutucu/REC/kronometre gizlenmiyor. */
.video-placeholder.hidden,
.rec-indicator.hidden,
.video-timer-chip.hidden {
    display: none;
}

.video-panel {
    width: 320px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-light);
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}
.video-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.video-panel-title { font-size: 0.95rem; font-weight: 800; color: var(--text-main); display: inline-flex; align-items: center; gap: 8px; }
.video-panel-title i { color: var(--color-primary); }
.video-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.74rem; font-weight: 700; color: var(--text-muted);
    padding: 4px 10px; border-radius: 999px; background: var(--bg-panel);
    border: 1px solid var(--border-light);
}
.video-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; transition: background-color 0.3s; }
.video-status.is-live { color: var(--color-success); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.video-status.is-live .video-status-dot { background: var(--color-success); animation: pulseDot 1.4s infinite; }

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--shadow-md), inset 0 0 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-light);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity 0.4s ease; }
.video-frame.is-live video { opacity: 1; }

/* Camera Monitor Scanline Effect */
.video-frame::after {
    content: "";
    position: absolute;
    left: 0; right: 0; height: 3px;
    background: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}
.video-frame.is-live::after {
    opacity: 1;
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { top: 0%; }
    100% { top: 100%; }
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Kamera kapalıyken (henüz oturum başlamadan önce) gösterilen yer tutucu */
.video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 24px; text-align: center; color: #cbd5e1;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
}
.video-placeholder i { font-size: 2.5rem; color: var(--color-primary); animation: glowPulse 2s infinite alternate; }
.video-placeholder span { font-size: 0.95rem; font-weight: 700; color: #e2e8f0; }
.video-placeholder small { font-size: 0.76rem; line-height: 1.4; color: #94a3b8; max-width: 200px; }

@keyframes glowPulse {
    from { filter: drop-shadow(0 0 2px var(--color-primary)); transform: scale(1); }
    to { filter: drop-shadow(0 0 10px var(--color-primary)); transform: scale(1.05); }
}

.rec-indicator {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(0, 0, 0, 0.65); color: #fff;
    font-size: 0.74rem; font-weight: 800; letter-spacing: 0.8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10;
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-danger); animation: pulseDot 1s infinite; }

.video-timer-chip {
    position: absolute; bottom: 12px; right: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 6px;
    background: rgba(0, 0, 0, 0.65); color: #fff;
    font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}
.video-timer-chip.timer-warning { background: var(--color-danger); border-color: var(--color-danger); }

.video-hint { font-size: 0.74rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.video-hint b { color: var(--text-main); }

/* --- Duyarlı --- */
@media (max-width: 720px) {
    .video-panel { width: 100%; border-left: none; border-top: 1px solid var(--border-light); padding: 16px; }
}
