/* 
 * N10 News Portal Modern - Main CSS
 * Mobile-First Design
 */

:root {
    --primary-color: #1e73be;
    --secondary-color: #0088cc;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --gray-light: #f4f4f4;
    --gray-border: #eee;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --header-height: 60px;
}

/* Base Styles */
* { box-sizing: border-box; }
body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--gray-light);
}
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container {
    width: 92%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout */
.site-main { padding: 20px 0; }
.site-content { background: #fff; }

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.site-branding .site-title { font-size: 1.5rem; margin: 0; font-weight: 800; }

/* Navigation */
.main-navigation { display: none; } /* Mobile-first: hide desktop nav */
@media (min-width: 992px) {
    .main-navigation { display: block; }
    .main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; }
    .main-navigation li { margin-left: 20px; }
    .main-navigation a { font-weight: 600; color: var(--text-color); font-size: 0.95rem; }
}

/* Mobile Toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: relative;
}
.hamburger::before, .hamburger::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Single Post */
.article-header { margin-bottom: 25px; }
.article-title { font-size: 1.8rem; line-height: 1.2; font-weight: 800; margin: 10px 0; }
.author-meta { display: flex; align-items: center; margin-bottom: 20px; }
.author-avatar img { border-radius: 50%; margin-right: 12px; }
.author-info { font-size: 0.85rem; color: var(--light-text); }
.author-name a { color: var(--text-color); font-weight: 700; }

.featured-image { margin-bottom: 30px; border-radius: 8px; overflow: hidden; }
.featured-img { width: 100%; object-fit: cover; }

.article-body { font-size: 1.1rem; line-height: 1.7; color: #222; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 1.5rem; margin: 30px 0 15px; font-weight: 700; }

/* News Summary (Compatibilidade) */
.n10-news-summary-box {
    background: #f9f9f9;
    border: 1px solid var(--gray-border);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}
.n10-summary-title { font-weight: 800; margin-bottom: 15px; color: var(--primary-color); }
.n10-summary-list { padding-left: 20px; margin: 0; }
.n10-summary-list li { margin-bottom: 10px; }

/* Responsive Grid */
@media (min-width: 768px) {
    .article-title { font-size: 2.5rem; }
    .posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1200px) {
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
    .single-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
}

/* Footer */
.site-footer { background: #222; color: #fff; padding: 40px 0 20px; margin-top: 50px; }
.footer-bottom { border-top: 1px solid #444; margin-top: 30px; padding-top: 20px; display: flex; flex-direction: column; align-items: center; }
.site-info p { font-size: 0.85rem; color: #aaa; margin: 0; }
.footer-navigation ul { list-style: none; padding: 0; margin: 15px 0 0; display: flex; gap: 15px; }
.footer-navigation a { color: #fff; font-size: 0.8rem; }

/* Critical CSS (Placeholder for now, will be inlined) */
/* .site-header, .site-title, .container { ... } */
