/* auditory_mode.css - Estilos específicos para el modo auditivo de Auris
   Diseñado para ser compatible con main.css */

.auditory-mode-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.auditory-mode-header {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.auditory-mode-header h2 {
    margin: 0;
    font-size: 20px;
}

.auditory-mode-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--gray-text);
}

/* Sección de grabación */
.recording-section {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.recording-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.record-btn, .pause-btn, .stop-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.record-btn {
    background-color: #ff3333;
    color: var(--light-bg);
}

.record-btn.active {
    background-color: #dd0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.pause-btn {
    background-color: var(--primary-blue);
    color: var(--light-bg);
}

.stop-btn {
    background-color: #666666;
    color: var(--light-bg);
}

.audio-source {
    margin-top: 15px;
}

.audio-source p {
    font-weight: bold;
    margin-bottom: 8px;
}

.source-selection {
    background-color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.selected-source {
    color: #444;
}

/* Sección de transcripción */
.transcription-section {
    padding: 15px;
}

.transcription-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.transcription-content {
    background-color: var(--light-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    min-height: 100px;
    line-height: 1.5;
}

/* Visualización de audio */
.audio-visualization {
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
}

.wave-bar {
    flex: 1;
    height: 60%;
    background: linear-gradient(to top, var(--primary-blue), #88aaff);
    border-radius: 2px;
    animation: sound 0.5s infinite ease alternate;
}

.wave-bar:nth-child(1) { animation-duration: 0.7s; }
.wave-bar:nth-child(2) { animation-duration: 0.5s; }
.wave-bar:nth-child(3) { animation-duration: 0.3s; }
.wave-bar:nth-child(4) { animation-duration: 0.6s; }
.wave-bar:nth-child(5) { animation-duration: 0.4s; }
.wave-bar:nth-child(6) { animation-duration: 0.5s; }
.wave-bar:nth-child(7) { animation-duration: 0.7s; }
.wave-bar:nth-child(8) { animation-duration: 0.3s; }

@keyframes sound {
    0% {
        height: 20%;
    }
    100% {
        height: 70%;
    }
}

.save-transcription {
    text-align: right;
}

.btn-save {
    padding: 8px 20px;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 20px;
    color: var(--light-bg);
    font-weight: bold;
    cursor: pointer;
}

.btn-save:hover {
    background-color: var(--secondary-black);
}

/* Estilo específico para el botón modo auditivo en la barra lateral */
#btn-modo-auditivo.active {
    background-color: var(--primary-orange);
    color: var(--light-bg);
}

/* Media queries para mantener la coherencia con el diseño responsive */
@media (max-width: 768px) {
    .auditory-mode-card {
        max-width: 100%;
    }
    
    .recording-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .record-btn, .pause-btn, .stop-btn {
        width: 100%;
    }
    
    .wave-bar {
        width: 4px;
    }
}