/*
Theme Name: EscapadinhasGo
Theme URI: https://escapadinhasgo.pt
Author: PBwriter Studio
Author URI: https://pbwriter.pt
Description: Tema desenvolvido à medida, focado em performance extrema, SEO apurado e compatibilidade nativa com o editor de blocos Gutenberg.
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: escapadinhasgo-theme
*/

/* =========================================================================
   1. RESET E ESTILOS GLOBAIS BASE
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2579e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e83030;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   2. ESTRUTURA E CONTAINER
   ========================================================================= */
.eg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grelha de Posts (Página Inicial / Arquivos) */
.eg-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Cartão de Post Individual */
.eg-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.eg-post-thumb-link {
    display: block;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #eaeaea;
    overflow: hidden;
}

.eg-post-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.eg-post-card:hover .eg-post-thumb {
    transform: scale(1.05);
}

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

.eg-post-card-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
}

.eg-post-card-title {
    font-size: 18px !important;
    margin: 0 0 10px 0 !important;
}

.eg-post-card-title a {
    color: #111;
}

.eg-post-card-title a:hover {
    color: #2579e8;
}

.eg-post-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.eg-post-card-more {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2579e8;
}
