/* css/categorias-page.css - Clean & Simple */

:root {
    --primary: #007bff; /* Azul padrão agradável */
    --bg-page: #f9f9f9;
    --text-main: #333;
    --text-light: #777;
    --border: #e1e1e1;
    --radius: 8px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- HEADER --- */
.page-header {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #222;
}

.page-header p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.simple-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.simple-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 1rem;
}

.simple-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
}

.simple-search button:hover {
    background: #0056b3;
}

/* --- FERRAMENTAS (Filtro + A-Z) --- */
.tools-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group label {
    font-weight: 600;
    margin-right: 8px;
    color: #555;
}

.filter-group select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.az-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.az-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
}

.az-nav a:hover {
    background: var(--primary);
    color: white;
}

/* --- GRID DE CATEGORIAS --- */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 50px;
}

.letter-separator {
    grid-column: 1 / -1; /* Ocupa a linha toda */
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

/* --- CARD SIMPLES --- */
.simple-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.simple-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.card-header-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 15px;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: #f0f7ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.title-box h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.title-box .count {
    font-size: 0.85rem;
    color: var(--text-light);
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Links das Subcategorias */
.card-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.sub-item {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.sub-item:hover {
    color: var(--primary);
}

.sub-item small {
    color: #999;
}

.see-more {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .tools-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .categories-container {
        grid-template-columns: 1fr;
    }
}