/* Archivo: css/style.css */

:root {
    --bg-color: #1a1a1a;
    --panel-color: #2b2b2b;
    --accent-color: #e74c3c; /* Color Rojo ON AIR */
    --text-color: #ecf0f1;
    --highlight: #3498db;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header con Info del Podcaster */
header {
    width: 100%;
    background-color: var(--panel-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #555;
    border: 2px solid var(--highlight);
    object-fit: cover;
}

.user-info h2 { margin: 0; font-size: 1.1rem; }
.user-info span { font-size: 0.8rem; color: #aaa; }

/* Contenedor Principal */
.main-deck {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Paneles */
.panel {
    background-color: var(--panel-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* VU Meter Canvas */
.vu-meter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 300px;
}
canvas#vuMeter {
    background-color: #000;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
    height: 100px;
}

/* Ecualizador 10 Bandas */
.eq-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    padding-top: 10px;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.eq-band input[type=range] {
    writing-mode: bt-lr; /* IE/Edge */
    -webkit-appearance: slider-vertical; /* Webkit */
    width: 8px;
    height: 150px;
    background: #444;
    outline: none;
    cursor: pointer;
}

.eq-band label { font-size: 0.7rem; margin-top: 5px; color: #888; }

/* Controles Principales */
.controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    font-size: 1rem;
    min-width: 180px;
}

.btn-onair {
    background-color: #444;
    color: #888;
    box-shadow: inset 0 0 5px #000;
}

.btn-onair.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-color);
    animation: pulse 2s infinite;
}

.btn-rec {
    background-color: #444;
    color: #fff;
}

.btn-rec.recording {
    background-color: #e67e22;
}

/* Input de Ganancia Principal */
.master-vol {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}
.master-vol input {
    width: 80%;
    cursor: pointer;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}