
/* Estilos gerais */
body.with-fixed-header {
    padding-top: 150px;
    background-color: #F8F9FA;
    font-family: 'Arial', sans-serif;
    color: #2B2D42;
    margin: 0;
}

@media (max-width: 600px) {
    body.with-fixed-header {
        padding-top: 130px;
    }
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Banner */
.banner {
    background-color: #005F73;
    color: #F8F9FA;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #F8F9FA;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

/* Seções de áudio */
.audio-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0FC2C0;
}

.section-header h2 {
    color: #005F73;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: #0FC2C0;
}

/* Grid de áudios */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Cards de áudio */
.audio-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.audio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.audio-cover {
    position: relative;
    aspect-ratio: 1/1;
}

.audio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(15, 194, 192, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-cover:hover .play-btn {
    opacity: 1;
}

.audio-info {
    padding: 15px;
}

.audio-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #2B2D42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Área de ações */
.audio-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.audio-actions button, 
.audio-actions a {
    background: none;
    border: none;
    color: #8D99AE;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.play-action {
    background-color: rgba(15, 194, 192, 0.1) !important;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.play-action:hover {
    background-color: rgba(15, 194, 192, 0.2) !important;
    color: #0FC2C0 !important;
}

.audio-actions button:hover, 
.audio-actions a:hover {
    color: #005F73;
    transform: scale(1.1);
}

/* Lista de áudios (Mais Ouvidas) */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-list-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.audio-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.audio-list-cover {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.audio-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.audio-list-info {
    flex-grow: 1;
    min-width: 0;
}

.audio-list-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #2B2D42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-list-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.audio-list-actions button,
.audio-list-actions a {
    background: none;
    border: none;
    color: #8D99AE;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.audio-list-actions button:hover,
.audio-list-actions a:hover {
    color: #005F73;
    transform: scale(1.1);
}

/* Modal Player */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #F8F9FA;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #EF476F;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #0FC2C0;
}

#waveform-modal {
    width: 100%;
    margin: 20px 0;
}

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

.play-pause {
    background-color: #005F73;
    color: #F8F9FA;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-pause:hover {
    background-color: #0FC2C0;
}

.time {
    color: #2B2D42;
    font-size: 14px;
    flex-grow: 1;
    text-align: right;
}

/* Responsividade */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .audio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .audio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .audio-info h3 {
        font-size: 1rem;
    }
    
    .audio-actions {
        gap: 5px;
    }
    
    .audio-actions button,
    .audio-actions a {
        font-size: 1rem;
        padding: 3px;
    }
    
    .play-action {
        width: 25px;
        height: 25px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .play-pause {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Responsividade para lista de áudios */
    .audio-list-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .audio-list-cover {
        width: 35px;
        height: 35px;
    }
    
    .audio-list-actions {
        gap: 5px;
    }
    
    .audio-list-actions button,
    .audio-list-actions a {
        font-size: 0.9rem;
        padding: 3px;
    }
}