/**
 * Estilos do player de audiolivros - Design claro e moderno
 * 
 * Características:
 * - Fundo claro e limpo
 * - Cards para capítulos com hover effects
 * - Player fixo na parte inferior
 * - Design hierárquico e organizado
 */

/* Container principal */
.reuniao-audiolivro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px; /* Padding inferior para o player fixo */
    background: #ffffff;
    min-height: 100vh;
}

/* Cabeçalho do Livro */
.reuniao-livro-header {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
}

.reuniao-livro-capa {
    flex-shrink: 0;
}

.reuniao-livro-capa img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reuniao-livro-info {
    flex: 1;
}

.reuniao-livro-titulo {
    font-size: 36px;
    font-weight: 700;
    color: #23282d;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.reuniao-livro-descricao {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Lista de Capítulos */
.reuniao-capitulos-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Card de Capítulo */
.reuniao-capitulo-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.reuniao-capitulo-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.reuniao-capitulo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reuniao-capitulo-titulo {
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reuniao-capitulo-numero {
    font-size: 18px;
    color: #0073aa;
    font-weight: 500;
}

.reuniao-capitulo-count {
    font-size: 14px;
    color: #999999;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Lista de Tópicos */
.reuniao-topicos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Item de Tópico */
.reuniao-topico-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.reuniao-topico-item:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.reuniao-topico-item.playing {
    background: #e8f4f8;
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
}

.reuniao-topico-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.reuniao-topico-number {
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
    min-width: 24px;
    text-align: center;
}

.reuniao-topico-title {
    font-size: 16px;
    color: #23282d;
    flex: 1;
}

.reuniao-topico-duration {
    font-size: 14px;
    color: #999999;
    font-family: monospace;
}

.reuniao-topico-play-btn {
    background: #0073aa;
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.reuniao-topico-play-btn:hover {
    background: #005a87;
    transform: scale(1.1);
}

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

.reuniao-topico-play-btn svg {
    margin-left: 2px; /* Ajuste visual do ícone play */
}

/* Mensagens vazias */
.reuniao-no-topicos,
.reuniao-no-capitulos,
.reuniao-error {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.reuniao-error h1 {
    color: #23282d;
    margin-bottom: 15px;
}

/* Player Fixo na parte inferior */
.reuniao-audiolivro-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #e5e5e5;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
}

.reuniao-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reuniao-player-info {
    text-align: center;
}

.reuniao-player-track {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reuniao-player-capitulo {
    font-size: 14px;
    color: #0073aa;
    font-weight: 600;
}

.reuniao-player-topico {
    font-size: 16px;
    color: #23282d;
    font-weight: 500;
}

/* Controles do Player */
.reuniao-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.reuniao-audiolivro-btn {
    background: transparent;
    border: 2px solid #e5e5e5;
    color: #666666;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.reuniao-audiolivro-btn:hover {
    border-color: #0073aa;
    color: #0073aa;
    background: #f0f8ff;
}

.reuniao-audiolivro-btn-primary {
    width: 56px;
    height: 56px;
    background: #0073aa;
    border-color: #0073aa;
    color: #ffffff;
}

.reuniao-audiolivro-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #ffffff;
}

/* Barra de Progresso */
.reuniao-player-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reuniao-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.reuniao-progress-filled {
    height: 100%;
    background: #0073aa;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

.reuniao-progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999999;
    font-family: monospace;
}

/* Lista de Audiolivros (shortcode) */
.reuniao-lista-audiolivros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.reuniao-livro-card-lista {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reuniao-livro-card-lista:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.reuniao-livro-capa-lista {
    text-align: center;
}

.reuniao-livro-capa-lista img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reuniao-livro-info-lista h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.reuniao-livro-info-lista h2 a {
    color: #23282d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reuniao-livro-info-lista h2 a:hover {
    color: #0073aa;
}

.reuniao-livro-descricao-lista {
    color: #666666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.reuniao-livro-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999999;
    margin-bottom: 15px;
}

.reuniao-livro-stats span {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Responsividade */
@media (max-width: 768px) {
    .reuniao-lista-audiolivros {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    .reuniao-audiolivro-container {
        padding: 20px 15px 140px;
    }
    
    .reuniao-livro-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .reuniao-livro-capa {
        align-self: center;
    }
    
    .reuniao-livro-capa img {
        width: 150px;
    }
    
    .reuniao-livro-titulo {
        font-size: 28px;
    }
    
    .reuniao-capitulo-card {
        padding: 20px;
    }
    
    .reuniao-capitulo-titulo {
        font-size: 20px;
    }
    
    .reuniao-topico-item {
        padding: 12px;
    }
    
    .reuniao-topico-info {
        gap: 10px;
    }
    
    .reuniao-topico-title {
        font-size: 14px;
    }
    
    .reuniao-audiolivro-player {
        padding: 15px;
    }
    
    .reuniao-player-controls {
        gap: 15px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reuniao-capitulo-card {
    animation: fadeIn 0.4s ease;
}

.reuniao-topico-item {
    animation: fadeIn 0.3s ease;
}

/* Estados de loading */
.reuniao-audiolivro-btn.loading {
    opacity: 0.6;
    cursor: wait;
}
