:root {
    --brand-red: #cc0000;
    --text: #222;
    --muted: #777;
    --border: #eee;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: #fff;
}
.header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-bottom: 2rem;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.header a.logo { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.header a.logo span { color: var(--brand-red); }
.header a.back-to-site { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.header a.back-to-site:hover { color: var(--brand-red); }

.container { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}
.post-card { text-decoration: none; color: inherit; }
.post-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 0.75rem; }
.post-card h2 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--text); }
.post-card .date { font-size: 0.78rem; color: var(--muted); }
.post-card p { font-size: 0.88rem; color: #555; }

article.post h1 { font-size: 1.8rem; margin-bottom: 0.4rem; }
article.post .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
article.post img.cover { width: 100%; border-radius: 10px; margin-bottom: 1.5rem; }
article.post .body h2 { font-size: 1.3rem; margin-top: 2rem; }
article.post .body h3 { font-size: 1.1rem; margin-top: 1.5rem; }
article.post .body a { color: var(--brand-red); }
article.post .body p { margin-bottom: 1.1rem; }

footer.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* Header cu logo */
.header .logo img { display: block; }

/* Footer complet, identic structural cu site-ul principal */
footer.site-footer {
    text-align: left;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}
footer.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}
footer.site-footer .footer-links a {
    color: var(--muted);
    text-decoration: none;
    margin-right: 0.75rem;
    font-size: 0.85rem;
}
footer.site-footer .footer-links a:hover { color: var(--brand-red); }
footer.site-footer .footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.75rem;
}
footer.site-footer .footer-badges img { height: 40px; margin-left: 10px; }

/* Cookie consent — copiat identic din site-ul principal */
#cookie-consent-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    max-width: 340px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    padding: 16px;
    z-index: 9999;
    font-size: 0.85rem;
}
#cookie-consent-popup .cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}
#cookie-consent-popup .cookie-cat { display: flex; align-items: baseline; gap: 6px; font-weight: 600; }
#cookie-consent-popup .cookie-cat span { font-weight: 400; color: #777; font-size: 0.75rem; }
#cookie-consent-popup .cookie-consent-link a { font-size: 0.8rem; }
#cookie-consent-popup .cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#cookie-consent-popup .btn-primary {
    background: var(--brand-red); color: #fff; border: none; border-radius: 4px;
    padding: 6px 12px; font-size: 0.8rem; cursor: pointer;
}
#cookie-consent-popup .btn-outline {
    background: transparent; border: 1px solid #ccc; color: #333; border-radius: 4px;
    padding: 6px 12px; font-size: 0.8rem; cursor: pointer;
}
#cookie-consent-sticky-btn {
    position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--brand-red); color: #fff; border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; z-index: 9998;
    font-size: 1.4rem; line-height: 1; display: flex;
    align-items: center; justify-content: center;
}
#cookie-consent-sticky-btn:hover { background: #a30000; }

/* Paginare */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 2rem 0; }
.pagination a, .pagination span {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px;
    text-decoration: none; color: var(--text); font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination .current { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
