/* Estilos gerais */
body {
    background-color: #F8F9FA;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Espaçamento para o header fixo */
body.with-fixed-header {
    padding-top: 150px; /* Espaço suficiente para o header */
}

/* Conteúdo principal */
main {
    flex: 1;
    max-width: 844px;
    width: 100%;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-title {
    color: #2B2D42;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    padding-top: 20px;
}

/* Grid de temas */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Cards de tema */
.theme-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.theme-cover {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.theme-title {
    color: #2B2D42;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 10px;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsividade */
@media (max-width: 600px) {
    body.with-fixed-header {
        padding-top: 100px; /* Menos espaço em mobile */
    }
    
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .themes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 901px) {
    .themes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}