/* ============================================
   BLOG — DESIGN PROFISSIONAL
   Tema: Editorial escuro, tipografia sofisticada
   ============================================ */

:root {
    /* Paleta refinada */
    --bg:           #08080a;
    --bg2:          #0f0f12;
    --bg3:          #16161a;
    --bg4:          #1c1c22;
    --surface:      rgba(255,255,255,0.03);
    --surface2:     rgba(255,255,255,0.06);

    --border:       rgba(255,255,255,0.07);
    --border2:      rgba(255,255,255,0.12);

    --text:         #e2e2e8;
    --text-muted:   rgba(226,226,232,0.4);
    --text-dim:     rgba(226,226,232,0.6);
    --white:        #ffffff;

    /* Accent: ambar quente — elegante, distinto */
    --accent:       #e8b84b;
    --accent-dim:   rgba(232,184,75,0.15);
    --accent-glow:  rgba(232,184,75,0.08);
    --accent-light: #f0cd7e;

    /* Cores utilitárias */
    --red:          #e05252;
    --green:        #52c97c;

    /* Tipografia */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'DM Mono', 'Courier New', monospace;

    /* Layout */
    --radius:       6px;
    --radius-lg:    12px;
    --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── TIPOGRAFIA ─── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

code {
    font-family: var(--font-mono);
    font-size: 0.83em;
    background: var(--bg3);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

pre {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.88rem;
}

/* ─── LAYOUT ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,8,10,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
}
.logo:hover { color: var(--white); }
.logo-bracket { color: var(--accent); font-style: italic; font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 2px; }

.main-nav a {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.main-nav a:hover { color: var(--white); background: var(--surface); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 7px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ─── HERO ─── */
.hero {
    padding: 96px 0 72px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease both;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px; left: 0; right: 0;
    height: 500px;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(232,184,75,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(232,184,75,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.hero-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    animation: fadeUp 0.6s 0.15s ease both;
}

.hero h1 span, .hero h1 em { color: var(--accent); }
.hero h1 em { font-style: italic; font-weight: 400; }

.hero-sub {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 520px;
    line-height: 1.7;
    animation: fadeUp 0.6s 0.2s ease both;
}

/* ─── SECTION ─── */
.section { padding: 40px 0 80px; }

.section-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #08080a; font-weight: 500; }

/* ─── GRID ARTIGOS ─── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.articles-grid.featured { grid-template-columns: 1.8fr 1fr 1fr; gap: 24px; }
.articles-grid.featured .card:first-child { grid-row: span 2; }

/* ─── CARD ─── */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232,184,75,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(232,184,75,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,184,75,0.1);
}

.card:hover::before { opacity: 1; }

.card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg3);
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9) saturate(0.85);
}

.card:hover .card-img img { transform: scale(1.06); filter: brightness(1) saturate(1); }

.card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
    color: var(--border2);
}

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 10px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.card-title:hover { color: var(--accent); }

.card-excerpt {
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.73rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}

.card-meta span { display: flex; align-items: center; gap: 5px; }

/* ─── PAGINAÇÃO ─── */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 48px 0; }

.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: all var(--transition);
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.pagination .active { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 500; }

/* ─── ARTIGO ÚNICO ─── */
.article-header {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0; left: -24px; right: -24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.article-cat {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-cat::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.article-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex; gap: 24px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    flex-wrap: wrap;
}

.article-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: 36px 0;
    border: 1px solid var(--border);
    filter: brightness(0.95);
}

.article-content {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.9;
}

.article-content p { margin-bottom: 1.5rem; }

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--white);
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 2rem 0 0.8rem;
    color: var(--accent-light);
    font-style: italic;
}

.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.8rem;
    background: var(--bg2);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
    color: var(--text-dim);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.article-content img { max-width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }

.article-tags {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-top: 48px; padding-top: 28px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.tag {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.73rem;
    font-family: var(--font-mono);
    padding: 5px 12px;
    border-radius: 100px;
    transition: all var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.back-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--text-muted);
    font-size: 0.83rem;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    transition: color var(--transition);
    letter-spacing: 0.04em;
}
.back-link:hover { color: var(--accent); }

/* ─── SIDEBAR LAYOUT ─── */
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0 96px;
    align-items: start;
}

.sidebar-widget {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.4;
}

.widget-title {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 18px;
}

.recent-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-item:last-child { border-bottom: none; }

.recent-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    display: block;
    transition: color var(--transition);
}
.recent-item-title:hover { color: var(--accent); }

.recent-item-date { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 4px; }

.cat-list { list-style: none; }
.cat-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; border-bottom: 1px solid var(--border);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { font-size: 0.875rem; font-weight: 400; color: var(--text-dim); transition: color var(--transition); }
.cat-list a:hover { color: var(--accent); }
.cat-count {
    font-family: var(--font-mono); font-size: 0.67rem; color: var(--text-muted);
    background: var(--bg3); border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 100px;
}

/* ─── FOOTER ─── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 40px 0 24px; }

.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.footer-nav {
    display: flex;
    align-items: center;
    gap: 6px 20px;
    flex-wrap: wrap;
}

.footer-nav-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-right: 4px;
}

.footer-nav a {
    font-size: 0.83rem;
    color: var(--text-dim);
    font-weight: 400;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-text { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

/* ─── BUSCA ─── */
.search-form { display: flex; gap: 10px; }

.search-input {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: none; border-color: var(--accent); background: var(--bg4); }

/* ─── BOTÕES ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 7px; padding: 10px 20px; border-radius: var(--radius);
    font-weight: 500; font-size: 0.85rem; cursor: pointer; border: none;
    transition: all var(--transition); font-family: var(--font-body); letter-spacing: 0.02em;
}

.btn-accent { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn-accent:hover {
    background: var(--accent-light);
    color: var(--bg);
    box-shadow: 0 0 24px rgba(232,184,75,0.25);
    transform: translateY(-1px);
}

.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text-dim); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 96px 0; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 20px; opacity: 0.5; display: block; }
.empty-state h3 { font-family: var(--font-display); color: var(--text-dim); margin-bottom: 8px; }

/* ─── ALERTAS ─── */
.alert {
    padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px;
    font-size: 0.875rem; font-weight: 400;
}
.alert-success { background: rgba(82,201,124,0.08); border: 1px solid rgba(82,201,124,0.2); color: var(--green); }
.alert-error { background: rgba(224,82,82,0.08); border: 1px solid rgba(224,82,82,0.2); color: var(--red); }

/* ─── ANIMAÇÕES ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVO ─── */
@media (max-width: 900px) {
    .articles-grid.featured { grid-template-columns: 1fr 1fr; }
    .articles-grid.featured .card:first-child { grid-column: span 2; grid-row: span 1; }
    .content-wrap { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 64px; }
}

@media (max-width: 768px) {
    .articles-grid.featured { grid-template-columns: 1fr; }
    .articles-grid.featured .card:first-child { grid-column: span 1; }
    .main-nav {
        display: none;
        position: absolute; top: 68px; left: 0; right: 0;
        background: rgba(8,8,10,0.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 12px 16px; gap: 4px;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-bottom { text-align: left; }
    .hero { padding: 64px 0 48px; }
}

@media (max-width: 480px) {
    .articles-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}

/* ─── HERO SEARCH ─── */

/* ═══════════════════════════════════════════
   HERO SEARCH
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   HERO SEARCH
═══════════════════════════════════════════ */
.hero-search-wrap {
    padding: 40px 0 0;
}

.hero-search-form { width: 100%; }

.hero-search-inner {
    display: flex;
    align-items: center;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 7px 7px 7px 20px;
    gap: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-search-inner:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232,184,75,0.07);
}

.hero-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: color 0.2s ease;
}

.hero-search-inner:focus-within .hero-search-icon {
    color: var(--accent);
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 10px 0;
    line-height: 1;
}

.hero-search-input::placeholder { color: var(--text-muted); }

.hero-search-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 9px;
    padding: 11px 24px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-search-btn:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 16px rgba(232,184,75,0.22);
}

/* ═══════════════════════════════════════════
   SECTION TITLE
═══════════════════════════════════════════ */
.section-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ═══════════════════════════════════════════
   TOP POSTS — MAIS ACESSADOS
═══════════════════════════════════════════ */
.top-posts-section {
    padding: 36px 0 16px;
}

.top-posts-grid {
    display: grid;
    grid-template-columns: 1.72fr 1fr;
    gap: 10px;
}

.top-cards-secondary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 380px;
}

/* ── Card base ── */
.top-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

/* ── Imagem ── */
.top-card-img-link {
    display: block;
    position: absolute;
    inset: 0;
}

.top-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.top-card:hover .top-card-img-link img {
    transform: scale(1.04);
}

.top-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--bg3), var(--bg4));
}

/* ── Overlay gradiente ── */
.top-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.55) 36%,
        rgba(0,0,0,0.06) 68%,
        transparent 100%
    );
    pointer-events: none;
}

/* ── Conteúdo sobre a imagem ── */
.top-card-body--over {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 22px;
    z-index: 2;
}

/* ── Categoria badge ── */
.top-card-cat {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--bg);
    background: var(--accent);
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 9px;
    font-weight: 500;
    line-height: 1;
}

/* ── Título ── */
.top-card-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 9px;
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: color 0.2s ease;
}

.top-card-title:hover { color: var(--accent-light); }

.top-card-title--lg {
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    margin-bottom: 12px;
}

/* ── Resumo ── */
.top-card-excerpt {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta ── */
.top-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.69rem;
    color: rgba(255,255,255,0.48);
    font-family: var(--font-mono);
}

.top-card-author {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.7);
}

.top-card-author-avatar {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    flex-shrink: 0;
    font-style: normal;
}

.top-card-sep { opacity: 0.3; }

/* ── Tamanhos ── */
.top-card--featured {
    height: 380px;
}

.top-card--secondary {
    flex: 1;
}

/* ══ RESPONSIVO ══ */
@media (max-width: 860px) {
    .top-posts-grid { grid-template-columns: 1fr; }
    .top-card--featured { height: 340px; }
    .top-cards-secondary { height: auto; flex-direction: row; }
    .top-card--secondary { flex: 1; height: 210px; }
}

@media (max-width: 560px) {
    .top-cards-secondary { flex-direction: column; height: auto; }
    .top-card--secondary { flex: none; height: 190px; }
    .hero-search-btn { padding: 11px 16px; }
}

/* ═══════════════════════════════════════
   PÁGINAS ESTÁTICAS (Sobre, Privacidade, Termos, Contato)
═══════════════════════════════════════ */
.static-page-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 0 96px;
}

.static-header {
    margin-bottom: 52px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.static-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.static-label::before { content:''; width:24px; height:1px; background:var(--accent); }

.static-header h1 { margin-bottom: 16px; }
.static-header h1 em { color: var(--accent); font-style: italic; font-weight: 400; }

.static-lead {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
}

.static-content { font-size: 1rem; font-weight: 300; line-height: 1.9; color: var(--text); }
.static-content p { margin-bottom: 1.4rem; }
.static-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.static-content ul, .static-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.static-content li { margin-bottom: 0.5rem; }
.static-content strong { color: var(--white); font-weight: 600; }

/* Cards (Sobre nós) */
.static-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 2rem 0;
}
.static-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    transition: border-color var(--transition), transform var(--transition);
}
.static-card:hover { border-color: rgba(232,184,75,0.3); transform: translateY(-3px); }
.static-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.static-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; color: var(--white); }
.static-card p { font-size: 0.875rem; color: var(--text-dim); margin: 0; }

/* CTA box */
.static-cta {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 20px 24px;
    margin-top: 2.5rem;
    color: var(--text-dim);
}
.static-cta p { margin: 0 0 4px; }
.static-cta strong { color: var(--accent); }

/* Contato */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.form-field input, .form-field textarea {
    background: var(--bg2); border: 1px solid var(--border2);
    color: var(--text); padding: 10px 14px; border-radius: var(--radius);
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
    outline: none; transition: border-color var(--transition); resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); background: var(--bg3); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }

.contact-info { padding-top: 8px; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--accent-glow); border: 1px solid rgba(232,184,75,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1rem; flex-shrink: 0;
}
.contact-item-label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 4px; }

/* Responsivo estáticas */
@media (max-width: 700px) {
    .static-cards { grid-template-columns: 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }
    .static-page-wrap { padding: 40px 0 64px; }
}

/* ─── PÁGINAS ESTÁTICAS ─── */
.article-content-wrap { min-width: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }

.contact-field { display: flex; flex-direction: column; gap: 8px; }

.contact-field label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.contact-field input,
.contact-field textarea {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 12px 16px;
    transition: border-color var(--transition);
    outline: none;
    width: 100%;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--accent);
    background: var(--bg3);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--text-muted); }

.contact-field textarea { resize: vertical; line-height: 1.7; }
