/*
Theme Name: Maps4Study
Theme URI: https://seusite.com
Author: Seu Nome
Author URI: https://seusite.com
Description: Tema WordPress inspirado no StudyMaps - Mapas mentais para ENEM e concursos públicos. Design limpo e moderno focado em conteúdo educacional.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maps4study
Tags: education, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

/* ===== Variáveis CSS ===== */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #0ea5e9;
    --color-accent: #f59e0b;
    --color-bg: #f8fafc;
    --color-bg-white: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

/* ===== Reset e Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Layout Principal ===== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* ===== Header ===== */
.site-header {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    color: var(--color-primary-dark);
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Barra de Pesquisa */
.search-form {
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.search-form .search-field {
    width: 100%;
    padding: 0.625rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-form .search-submit {
    display: none;
}

/* Navegação */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--color-text);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: var(--color-primary);
    color: white;
}

/* ===== Hero / Chamada Principal ===== */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
}

/* ===== Seção: Temas mais Buscados ===== */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.topic-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
}

.topic-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Seção: Últimos Mapas Mentais ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-card-thumbnail {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 1.25rem;
}

.post-card-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-card-link .post-card-title,
.post-card-title a {
    color: var(--color-text);
}

.post-card-link:hover .post-card-title,
.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-link {
    display: block;
    text-decoration: none;
}

.post-card-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-text);
    color: #94a3b8;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-footer a {
    color: #94a3b8;
}

.site-footer a:hover {
    color: white;
}

/* ===== Página Individual (Single) ===== */
.single-post .entry-header {
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 0.5rem;
}

.single-post .entry-content {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .main-navigation ul {
        justify-content: center;
    }
}
