/*
Theme Name: Biblioteca Digital
Theme URI: https://biblioteca.autoline-service.com
Author: Zuned Gulamo
Contacto: zunedg@gmail.com 82/86 3924100
Author URI: https://biblioteca.autoline-service.com
Description: Tema personalizado para biblioteca digital com cursos e subcursos
Version: 1.0
License: GPL v2 or later
Text Domain: biblioteca-digital
*/

/* Estilos principais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #0073aa;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header a {
    color: white;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

/* Cards de Cursos */
.biblioteca-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.curso-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.curso-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.curso-card h3 {
    margin: 15px;
    font-size: 1.2rem;
}

.curso-card h3 a {
    color: #333;
    text-decoration: none;
}

.curso-card p {
    margin: 0 15px 15px;
    color: #666;
    line-height: 1.5;
}

.curso-card .instrutor,
.curso-card .subcursos-count {
    display: inline-block;
    margin: 0 15px 15px;
    font-size: 0.9rem;
    color: #888;
}

/* Conteúdo Items */
.conteudo-item {
    display: flex;
    padding: 15px;
    margin: 10px 0;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    transition: background 0.3s;
}

.conteudo-item:hover {
    background: #f0f0f0;
}

.conteudo-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.conteudo-info {
    flex: 1;
}

.conteudo-info h5 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #333;
}

/* Player de Vídeo */
.video-player {
    margin: 10px 0;
}

.video-player iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 8px;
}

/* Player de Áudio */
audio {
    width: 100%;
    margin: 10px 0;
}

/* Botões */
.btn-pdf, .btn-download {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin: 10px 0;
    transition: background 0.3s;
}

.btn-pdf:hover, .btn-download:hover {
    background: #005a87;
    color: #fff;
}

/* Filtros */
.filtros-biblioteca {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filtro-grupo {
    display: inline-block;
    margin-right: 20px;
}

.filtro-grupo label {
    margin-right: 10px;
    font-weight: bold;
}

.filtro-select, #busca-conteudo {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsividade */
@media (max-width: 768px) {
    .biblioteca-cursos {
        grid-template-columns: 1fr;
    }
    
    .filtro-grupo {
        display: block;
        margin-bottom: 10px;
    }
    
    .video-player iframe {
        height: 200px;
    }
}