/*
Theme Name: VielmondBlog
Theme URI: https://sistemasvielmond.net
Description: Tema focado em conteúdo, exibindo posts separados por categorias na Home.
Version: 1.0
Author: Sistemas Vielmond
Text Domain: vielmond-blog
*/

/* --- RESET & BASE --- */
* { box-sizing: border-box; }

:root {
    --primary: #2563EB;      /* Azul Tech */
    --dark: #1e293b;         /* Cinza Escuro */
    --light: #f1f5f9;        /* Fundo claro */
    --white: #ffffff;
    --text: #475569;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    margin-bottom: 40px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}
.logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 20px; }
.main-nav a { font-weight: 600; color: var(--dark); font-size: 0.95rem; }
.main-nav a:hover { color: var(--primary); }

/* --- SEÇÕES DE CATEGORIA --- */
.category-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.cat-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    position: relative;
}
/* Linha colorida embaixo do título */
.cat-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- GRID DE POSTS --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.post-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }

.post-date { font-size: 0.8rem; color: #94a3b8; margin-bottom: 8px; }

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.post-excerpt { font-size: 0.9rem; color: var(--text); flex-grow: 1; margin-bottom: 15px; }

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SINGLE POST (Página interna) --- */
.single-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto 60px auto;
}
.single-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--dark); }

/* --- FOOTER --- */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}



/* --- ESTILO DAS PÁGINAS (page.php) --- */

.page-content-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    margin: 0 auto 60px auto;
    max-width: 1000px; /* Limita a largura para leitura confortável */
}

.page-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

/* Estilo para títulos dentro do texto da página */
.entry-content h2, 
.entry-content h3 {
    color: var(--dark);
    margin-top: 30px;
}

/* Responsivo para telemóveis */
@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 25px;
    }
    .page-title {
        font-size: 2rem;
    }
}