/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0.5rem;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ===== Reading Progress Bar ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 60;
    transition: width 0.1s linear;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2937;
    background: #f9fafb;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: #3b82f6; text-decoration: none; transition: color 0.2s; }
a:hover { color: #2563eb; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Container ===== */
.container-custom {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
@media (max-width: 639px) { .container-custom { overflow: hidden; } }
@media (min-width: 640px) { .container-custom { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-custom { padding: 0 2rem; } }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
.header-logo img { height: 32px; width: auto; }
.header-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
@media (min-width: 768px) { .header-nav { display: flex; } }

.nav-link {
    padding: 0.5rem 0.75rem;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: #f3f4f6; color: #1f2937; }
.nav-link.nav-active { color: #3b82f6; }

.nav-btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: 0.5rem;
}
.nav-btn-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,0.3); color: #fff; }

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    color: #4b5563;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid #f3f4f6;
}
.mobile-menu.open { display: flex; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: #4b5563;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-cta { color: #16a34a; font-weight: 600; }

/* ===== Blog Main ===== */
.blog-main {
    min-height: calc(100vh - 8rem);
    padding: 2rem 0 4rem;
}

/* ===== Blog Hero ===== */
.blog-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}
.blog-hero-title {
    font-size: clamp(1.1rem, 4.5vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.blog-hero-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 480px) {
    .blog-hero { padding: 1.5rem 0 2rem; }
    .blog-hero-subtitle { font-size: 0.85rem; max-width: 100%; }
    .cat-pill { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
    .blog-filters { flex-direction: column; }
}

/* ===== Filters ===== */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: #fff;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    transition: all 0.2s;
}
.cat-pill:hover { border-color: #3b82f6; color: #3b82f6; }
.cat-pill.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-color: transparent;
}
.cat-count { font-size: 0.75rem; margin-left: 0.25rem; opacity: 0.7; }

.search-form {
    display: flex;
    max-width: 300px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}
.search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
}
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
}
.search-btn:hover { color: #3b82f6; }

/* ===== Posts Grid ===== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
}

.post-card-img-link { display: block; overflow: hidden; }
.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.post-card:hover .post-card-img { transform: scale(1.05); }

.post-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-body { padding: 1.25rem; }
.post-card-cat {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.post-card-cat:hover { background: #dbeafe; }

.post-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-title a { color: #1f2937; }
.post-card-title a:hover { color: #3b82f6; }

.post-card-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9ca3af;
}
.post-card-meta-text {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.post-card-author { font-weight: 600; color: #6b7280; }
.post-card-meta-sep { color: #d1d5db; }
.post-card-reading-time { color: #9ca3af; }
.post-card-read {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}
.post-card-read:hover { color: #2563eb; }

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}
.no-results p { margin-bottom: 1rem; font-size: 1.1rem; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.pagination-btn, .pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.pagination-btn:hover, .pagination-num:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.pagination-num.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-color: transparent;
}
.pagination-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
    color: #9ca3af;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #3b82f6; }
.breadcrumb-sep { color: #d1d5db; margin: 0 0.125rem; }
.breadcrumb-current { color: #4b5563; }

/* ===== Article ===== */
.article { max-width: 800px; margin: 0 auto; }

.article-hero {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}
.article-hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.article-header { margin-bottom: 2rem; }
.article-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1rem;
}
@media (min-width: 640px) { .article-title { font-size: 2.5rem; } }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}
.article-meta-sep { color: #d1d5db; }
.article-author { font-weight: 600; color: #4b5563; }
.article-reading-time { font-weight: 500; }
.article-updated { font-style: italic; }

/* ===== Table of Contents ===== */
.article-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}
.toc-list {
    list-style: none;
    counter-reset: toc;
}
.toc-item {
    counter-increment: toc;
    margin-bottom: 0.375rem;
}
.toc-item a {
    color: #4b5563;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.125rem 0;
    transition: color 0.2s;
}
.toc-item a:hover { color: #3b82f6; }
.toc-item.toc-h3 { padding-left: 1.25rem; }
.toc-item.toc-h3 a { font-size: 0.85rem; color: #6b7280; }

/* ===== Focus Visible (Accessibility) ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== Article Content ===== */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 1rem;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #eff6ff;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #1f2937;
    font-style: italic;
}
.article-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}
.article-content a { color: #3b82f6; text-decoration: underline; }
.article-content a:hover { color: #2563eb; }
.article-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ===== Tags ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    border-radius: 9999px;
}

/* ===== Share ===== */
.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 3rem;
}
.share-label { font-weight: 600; color: #4b5563; font-size: 0.875rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: #fff;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-li { background: #0a66c2; }
.share-wa { background: #25d366; }

/* ===== Related ===== */
.related-section { margin-bottom: 2rem; }
.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
}
.btn-primary:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }

/* ===== Footer ===== */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr; } }

.footer-logo { height: 36px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-desc { font-size: 0.85rem; line-height: 1.6; color: #9ca3af; margin-bottom: 1rem; }

.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}
.footer-contact-item a { color: #9ca3af; }
.footer-contact-item a:hover { color: #fff; }
.footer-contact-item svg { flex-shrink: 0; stroke: #6b7280; }

.footer-heading {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-link {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.footer-link:hover { color: #fff; }

.footer-newsletter-text { font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.75rem; }
.footer-newsletter-form { display: flex; gap: 0.5rem; }
.footer-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
}
.footer-input::placeholder { color: #6b7280; }
.footer-submit-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.footer-submit-btn:hover { opacity: 0.9; }

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-social { display: flex; gap: 0.75rem; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: #1f2937;
    border-radius: 50%;
    color: #9ca3af;
    transition: all 0.2s;
}
.social-link:hover { background: #3b82f6; color: #fff; }

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: #1f2937;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
}
.trust-link:hover { color: #fff; }

.footer-copyright {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
}
@media (min-width: 768px) { .footer-copyright { text-align: center; } }

/* ===== Print Stylesheet ===== */
@media print {
    .site-header, .site-footer, .mobile-menu, .mobile-menu-btn,
    .progress-bar, .skip-link, .blog-filters, .pagination,
    .article-share, .related-section, .article-toc,
    .nav-btn-cta, .search-form, .category-pills { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; line-height: 1.6; }
    .container-custom { max-width: 100%; padding: 0; }
    .article { max-width: 100%; }
    .article-title { font-size: 24pt; -webkit-text-fill-color: #000; }
    .article-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
    .article-content img { max-width: 100%; page-break-inside: avoid; }
    .post-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* ===== Layout articol cu bară laterală ===== */
.article-layout { display: block; }
@media (min-width: 1024px) {
    .article-layout {
        display: grid;
        grid-template-columns: minmax(0, 800px) 320px;
        gap: 2.5rem;
        align-items: start;
        justify-content: center;
    }
    .article-layout .article { max-width: none; margin: 0; }
}
.article-sidebar { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) {
    .article-sidebar { margin-top: 0; position: sticky; top: 5rem; }
}
.sidebar-box {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.25rem;
}
.sidebar-title {
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: #6b7280; margin-bottom: 0.875rem;
}
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
    padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9;
}
.sidebar-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-list a { color: #1f2937; text-decoration: none; font-size: 0.9375rem; line-height: 1.45; }
.sidebar-list a:hover { color: #2563eb; }
.sidebar-count { font-size: 0.75rem; color: #9ca3af; flex-shrink: 0; }
.sidebar-list-ranked { counter-reset: mr; }
.sidebar-list-ranked li { counter-increment: mr; align-items: flex-start; }
.sidebar-list-ranked li::before {
    content: counter(mr); flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 9999px;
    background: #eff6ff; color: #2563eb; font-size: 0.75rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; margin-right: 0.625rem;
}
.sidebar-cta {
    background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
    border-radius: 0.75rem; padding: 1.5rem;
}
.sidebar-cta-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.sidebar-cta-text { font-size: 0.875rem; line-height: 1.6; color: #dbeafe; margin-bottom: 1rem; }
.sidebar-cta-btn { display: block; text-align: center; background: #fff; color: #1d4ed8; font-weight: 600; }
.sidebar-cta-btn:hover { background: #eff6ff; color: #1e40af; }
.sidebar-cta-link {
    display: block; text-align: center; margin-top: 0.75rem; color: #dbeafe;
    font-size: 0.875rem; text-decoration: none;
}
.sidebar-cta-link:hover { color: #fff; text-decoration: underline; }

/* ===== Tag-uri ===== */
.article-tags-label {
    font-size: 0.8125rem; color: #6b7280; margin-right: 0.25rem; align-self: center;
}
a.tag { text-decoration: none; transition: background 0.15s, color 0.15s; }
a.tag:hover { background: #dbeafe; color: #1d4ed8; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.3125rem 0.75rem; background: #f1f5f9; color: #334155;
    border-radius: 9999px; font-size: 0.8125rem; text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.tag-chip:hover, .tag-chip.active { background: #dbeafe; color: #1d4ed8; }
.tag-chip-count { font-size: 0.6875rem; color: #94a3b8; }
.tag-chip:hover .tag-chip-count, .tag-chip.active .tag-chip-count { color: #3b82f6; }
.tag-cloud-section {
    margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid #e5e7eb;
}
.tag-cloud-title {
    font-size: 1rem; font-weight: 700; color: #374151; margin-bottom: 1rem;
}

/* ===== Arhive (tag / autor) ===== */
.archive-kind {
    display: inline-block; padding: 0.25rem 0.75rem; margin-bottom: 0.75rem;
    background: #eff6ff; color: #2563eb; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.archive-role { margin-top: 0.5rem; font-size: 0.875rem; color: #6b7280; }

/* ===== Card autor ===== */
.author-box {
    display: flex; gap: 1rem; margin: 2.5rem 0 0; padding: 1.5rem;
    background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 0.75rem;
}
.author-box-avatar {
    flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 9999px;
    background: #2563eb; color: #fff; font-size: 1.25rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.author-box-name { font-weight: 700; color: #111827; margin-bottom: 0.125rem; }
.author-box-name a { color: inherit; text-decoration: none; }
.author-box-name a:hover { color: #2563eb; }
.author-box-role { font-size: 0.8125rem; color: #6b7280; margin-bottom: 0.5rem; }
.author-box-bio { font-size: 0.875rem; line-height: 1.6; color: #4b5563; margin-bottom: 0.5rem; }
.author-box-link { font-size: 0.875rem; color: #2563eb; text-decoration: none; font-weight: 500; }
.author-box-link:hover { text-decoration: underline; }
a.article-author { color: inherit; text-decoration: none; }
a.article-author:hover { color: #2563eb; text-decoration: underline; }

/* ===== Banner cookie-uri ===== */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
    max-width: 42rem; margin: 0 auto; background: #fff; color: #1f2937;
    border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.cookie-banner-text a { color: #2563eb; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.cookie-btn {
    flex: 1 1 10rem; padding: 0.625rem 1rem; border-radius: 0.5rem; border: 1px solid #d1d5db;
    background: #fff; color: #1f2937; font-family: inherit; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; text-align: center;
}
.cookie-btn:hover { background: #f9fafb; }
.cookie-btn-accept { background: #2563eb; border-color: #2563eb; color: #fff; }
.cookie-btn-accept:hover { background: #1d4ed8; }
.cookie-settings-link {
    background: none; border: 0; padding: 0; color: inherit; font: inherit;
    cursor: pointer; text-decoration: underline;
}

/* ===== Newsletter în footer ===== */
.footer-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-newsletter-msg { margin-top: 0.625rem; font-size: 0.8125rem; line-height: 1.5; }
.footer-newsletter-msg[hidden] { display: none; }
.footer-newsletter-msg.is-ok { color: #86efac; }
.footer-newsletter-msg.is-error { color: #fca5a5; }
.footer-submit-btn[disabled] { opacity: 0.6; cursor: progress; }
