/**
 * PROPAGUE AUDIO PLAYER - ESTILOS
 * Estilos modernos e responsivos para os players de áudio
 */

.audio-player {
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.propague-audio-interface {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 7px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 400px;
}

.propague-audio-interface:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #d1d9e0;
}

.audio-player.playing .propague-audio-interface {
    border-color: #007cba;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.2);
}

/* Informações do áudio */
.audio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.audio-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    flex: 1;
    margin-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-time {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
    white-space: nowrap;
}

.audio-time .separator {
    margin: 0 4px;
}

/* Controles */
.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.play-pause-btn {
    background: #007cba;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.play-pause-btn:hover {
    background: #005a87;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

.play-pause-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Barra de progresso */
.audio-progress {
    position: relative;
}

.progress-bar {
    background: #ecf0f1;
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar:hover {
    height: 8px;
    margin-top: -1px;
}

.progress-fill {
    background: linear-gradient(90deg, #007cba, #0099d4);
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: #007cba;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.progress-bar:hover .progress-handle,
.audio-player.playing .progress-handle {
    opacity: 1;
}

/* Estados especiais */
.audio-player.playing .audio-title {
    color: #007cba;
}

.audio-player.playing .audio-time {
    color: #007cba;
}

/* Erro */
.audio-error {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .propague-audio-interface {
        padding: 12px;
        max-width: 100%;
    }
    
    .audio-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .audio-title {
        margin-right: 0;
        font-size: 13px;
    }
    
    .audio-time {
        font-size: 11px;
    }
    
    .play-pause-btn {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .propague-audio-interface {
        padding: 10px;
        border-radius: 8px;
    }
    
    .play-pause-btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .audio-title {
        font-size: 12px;
    }
    
    .audio-time {
        font-size: 10px;
    }
}

/* Animações */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.audio-player.playing .play-pause-btn {
    animation: pulse 2s infinite;
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .propague-audio-interface,
    .play-pause-btn,
    .progress-fill,
    .progress-handle {
        transition: none;
    }
    
    .audio-player.playing .play-pause-btn {
        animation: none;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    .propague-audio-interface {
        background: #2c2c2c;
        border-color: hsl(38.53deg 86.36% 56.86%);
        color: #ecf0f1;
    }
    
    .audio-title {
        color: #ecf0f1;
    }
    
    .audio-time {
        color: #bdc3c7;
    }
    
    .audio-player.playing .audio-title,
    .audio-player.playing .audio-time {
        color: #3498db;
    }
    
    .play-pause-btn {
        background: #3498db;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    }
    
    .play-pause-btn:hover {
        background: #2980b9;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    }
    
    .progress-bar {
        background: #34495e;
    }
    
    .progress-fill {
        background: linear-gradient(90deg, #3498db, #5dade2);
    }
    
    .progress-handle {
        background: #3498db;
        border-color: #2c3e50;
    }
    
    .propague-audio-interface:hover {
        border-color: #4a6741;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .audio-player.playing .propague-audio-interface {
        border-color: #3498db;
        box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
    }
}