/* estudio.css - Console industrial de estúdio de voz */

:root {
  --bg-console: #0a0b10;
  --bg-metal: #12151e;
  --bg-monitor: #06070a;
  --border-metal: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --aluminum: linear-gradient(180deg, #3a3f4d 0%, #20242e 50%, #151820 100%);
  --fita-crepe: #f5eedc;
  --fita-sombra: rgba(0, 0, 0, 0.35);
  --text-main: #e6e8ee;
  --text-muted: #8b92a4;
  --text-dim: #545b6e;
  --cyan: #22d3ee;
  --purple: #a78bfa;
  --led-green: #10b981;
  --led-red: #ef4444;
  --led-yellow: #fbbf24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-console);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Console Header / Topbar */
.estudio-topbar {
  height: 54px;
  background: rgba(18, 21, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-metal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-jev {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.topbar-metrics {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-family: monospace;
}

.metric-item {
  color: var(--text-muted);
}
.metric-val {
  color: var(--cyan);
  font-weight: 700;
}

/* Layout Principal */
.estudio-main {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 54px);
}

/* Coluna de Alumínio (Channel Strip) */
.estudio-strip {
  width: 320px;
  background: var(--aluminum);
  border-right: 2px solid #000;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1), 4px 0 16px rgba(0, 0, 0, 0.4);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

/* Fita Crepe com o Nome */
.fita-crepe {
  background: var(--fita-crepe);
  color: #1e1e1e;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-1.5deg);
  box-shadow: 1px 2px 5px var(--fita-sombra);
  position: relative;
  text-align: center;
  font-family: monospace;
  border-left: 2px dashed rgba(0,0,0,0.15);
  border-right: 2px dashed rgba(0,0,0,0.15);
}

/* Botão MIC */
.mic-control-box {
  background: #0f1219;
  border: 1px solid var(--border-metal);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.btn-mic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1e2330;
  border: 3px solid #333a4d;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-mic:hover {
  border-color: var(--cyan);
}

.btn-mic.recording {
  background: #dc2626;
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.mic-status-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Teclas Físicas Coloridas */
.botoes-console {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tecla-console {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.1s ease;
}

.tecla-console:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.tecla-amarela { background: #fbbf24; color: #78350f; }
.tecla-verde { background: #34d399; color: #064e3b; }
.tecla-creme { background: #e2d9c8; color: #453c2e; }
.tecla-azul { background: #60a5fa; color: #1e3a8a; }

/* Transcrição da Fala ao Vivo */
.transcricao-box {
  background: #08090d;
  border: 1px solid var(--border-metal);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  max-height: 160px;
  overflow-y: auto;
  font-family: monospace;
}

/* Área dos 5 Monitores (Grid) */
.estudio-stage {
  flex: 1;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  overflow-y: auto;
}

/* Cada Monitor */
.monitor-frame {
  background: var(--bg-metal);
  border: 2px solid #222634;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 480px;
}

.monitor-header {
  height: 36px;
  background: #161922;
  border-bottom: 1px solid var(--border-metal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.monitor-channel {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.monitor-screen {
  flex: 1;
  background: var(--bg-monitor);
  overflow-y: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estado Sem Sinal */
.sem-sinal {
  text-align: center;
  color: var(--text-dim);
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.sem-sinal-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Gaveta Lateral (Drawer) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: none;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  height: 100vh;
  background: #0f121a;
  border-left: 1px solid var(--border-strong);
  z-index: 100;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-panel.open {
  right: 0;
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-metal);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
