:root {
    --primary: #003366;
    --accent: #e67e22;
    --bg: #f0f2f5;
    --text: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    margin: 0;
    color: var(--text);
}

/* --- BARRA DE NAVEGAÇÃO --- */
.navbar {
    background-color: var(--primary);
    padding: 0.7rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo { 
    font-size: 1.3rem; 
    font-weight: bold; 
    display: flex;       
    align-items: center; 
    gap: 15px;           
}

/* CLASSE DA IMAGEM - FORÇA O REDONDO */
.logo-img {
    height: 60px;            
    width: 60px;             
    min-width: 60px;         /* Impede esmagamento */
    min-height: 60px;        /* Impede esmagamento */
    object-fit: cover;       
    border-radius: 50%;      
    border: 3px solid white; 
    background-color: white; 
    
    /* Removemos o display: block padrão para alinhar melhor no flex */
    display: block;
}

.logo span { color: var(--accent); }

/* Ajuste para telas menores (Celular) */
@media (max-width: 600px) {
    .logo {
        font-size: 1rem; /* Diminui a fonte no celular */
        gap: 10px;
    }
    .logo-img {
        height: 45px; /* Logo um pouco menor no celular */
        width: 45px;
        min-width: 45px;
        min-height: 45px;
    }
}

.menu-categorias a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.menu-categorias a.active { border-bottom: 2px solid var(--accent); }

/* --- ÁREA DE BUSCA --- */
.search-container {
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.search-box {
    background: white;
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 1rem;
}

/* --- GRID E CARDS --- */
.grid-louvores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 0 5%;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    border-left: 5px solid var(--primary);
    position: relative; 
    padding-right: 40px;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.card .num {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-right: 15px;
    min-width: 40px;
}

.card .title { font-weight: 500; font-size: 1rem; }

.btn-acao[onclick="compartilharWhatsApp()"]:hover {
    background-color: #128c7e !important;
    transform: scale(1.05);
}

/* --- FAVORITOS (SETLIST) --- */
.star-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    font-size: 1.3rem;
    color: #ddd;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    padding: 5px;
}

.star-icon:hover {
    color: #bbb;
    transform: translateY(-50%) scale(1.2);
}

.star-icon.active {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.star-icon.active:hover {
    color: #e0a800;
}

.controles-fav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
}

.btn-fav {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-ver-fav {
    background-color: white;
    color: #555;
    border: 1px solid #ddd;
}

.btn-ver-fav:hover {
    background-color: #f8f9fa;
    border-color: #ffc107;
    color: #333;
}

.btn-ver-fav.ativo {
    background-color: #ffc107;
    color: #333;
    border-color: #e0a800;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn-limpar-fav {
    background-color: #fff;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.btn-limpar-fav:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}
