/* ================================
   BLOG PAGE — blog.css
   Se include DUPĂ styles.css
================================ */

/* ================================
   BLOG MASTHEAD
================================ */
.blog-masthead {
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.blog-masthead::before {
    content: 'BLOG';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(100px, 18vw, 220px);
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
    letter-spacing: -8px;
    line-height: 1;
    white-space: nowrap;
}

.blog-masthead-inner {
    padding: 56px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 900px) {
    .blog-masthead-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 60px;
        padding: 64px 0 40px;
    }
}

.masthead-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.masthead-text h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 16px;
}

.masthead-text h1 em {
    font-style: italic;
    color: var(--accent);
}

.masthead-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 400px;
    line-height: 1.7;
}

/* Category pills on masthead */
.masthead-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-self: flex-end;
}

@media (min-width: 900px) {
    .masthead-cats {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
}

.mcat {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.mcat:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.mcat.active {
    background: var(--accent-strong);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

/* ================================
   FEATURED ARTICLE
================================ */
.blog-featured {
    padding: 48px 0 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

@media (min-width: 769px) {
    .featured-card {
        grid-template-columns: 1fr 1fr;
        min-height: 440px;
    }
}

.featured-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

@media (min-width: 769px) {
    .featured-img-wrap { aspect-ratio: auto; min-height: 100%; }
}

.featured-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.featured-card:hover .featured-img-wrap img { transform: scale(1.04); }

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,98,47,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.featured-body {
    padding: 36px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    position: relative;
}

.featured-body::before {
    content: 'Articol recomandat';
    position: absolute;
    top: 24px; right: 24px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.feat-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feat-tag {
    background: var(--accent-strong);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.feat-read {
    font-size: 12.5px;
    color: var(--muted);
}

.featured-body h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--dark);
}
.featured-body h2 em {
    font-style: italic;
    color: var(--accent);
}
.featured-body h2 a { color: inherit; transition: color 0.2s; }
.featured-body h2 a:hover { color: var(--accent); }

.featured-body p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
}

.feat-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--charcoal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.feat-author div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.feat-author strong { font-size: 14px; color: var(--dark); }
.feat-author span { font-size: 12px; color: var(--muted); }

/* ================================
   BLOG BODY LAYOUT
================================ */
.blog-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 52px;
    padding-bottom: 72px;
    align-items: start;
}

@media (min-width: 1024px) {
    .blog-body {
        grid-template-columns: 1fr 320px;
        gap: 60px;
    }
}

/* ================================
   SECTION LABEL
================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.section-label span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.label-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ================================
   ARTICLES GRID (editorial layout)
================================ */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
}

@media (min-width: 600px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog card */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.22s;
    /* Animation start state */
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease,
                box-shadow 0.25s, border-color 0.25s;
}

.blog-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Wide card spans 2 columns */
.blog-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
}

.blog-card--wide .bcard-img {
    width: 45%;
    flex-shrink: 0;
    aspect-ratio: auto;
    min-height: 220px;
}

@media (max-width: 599px) {
    .blog-card--wide { flex-direction: column; }
    .blog-card--wide .bcard-img { width: 100%; min-height: auto; }
}

/* Image wrapper */
.bcard-img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    flex-shrink: 0;
}

.bcard-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.blog-card:hover .bcard-img img { transform: scale(1.05); }

/* Tag on image */
.bcard-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--dark);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.bcard-tag--eco { background: #2d6e50; }
.bcard-tag--inspo { background: #5a3e8a; }

/* Card body */
.bcard-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.bcard-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bcard-date {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.bcard-read {
    font-size: 11.5px;
    color: var(--muted);
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 50px;
}

.bcard-body h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    letter-spacing: -0.2px;
}
.bcard-body h3 a { color: inherit; transition: color 0.2s; }
.bcard-body h3 a:hover { color: var(--accent); }

.blog-card--wide .bcard-body h3 { font-size: 20px; }

.bcard-body p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.bcard-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 4px;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
}
.bcard-cta:hover { color: var(--charcoal); }

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.page-num, .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    border: 1.5px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.page-num:hover, .page-btn:hover { border-color: var(--border); color: var(--dark); }
.page-num.active { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); font-weight: 700; }
.page-btn { font-size: 18px; color: var(--muted); background: #fff; border-color: var(--border); }
.page-btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.page-ellipsis { color: var(--muted); font-size: 16px; padding: 0 4px; }

/* ================================
   SIDEBAR
================================ */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Sidebar search */
.sidebar-search {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.sidebar-search:focus-within { border-color: var(--accent); }
.sidebar-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--dark);
    outline: none;
}
.sidebar-search input::placeholder { color: var(--muted); }
.sidebar-search button {
    background: none;
    border: none;
    padding: 0 14px;
    font-size: 16px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.sidebar-search button:hover { color: var(--accent); }

/* Sidebar cats */
.sidebar-cats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-cats li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.sidebar-cats li a:hover { background: var(--cream); color: var(--accent); }
.sidebar-cats li a span {
    font-size: 12px;
    color: var(--muted);
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 50px;
}

/* Newsletter widget */
.widget-newsletter {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.widget-newsletter::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(201,98,47,0.15);
    pointer-events: none;
}

.newsletter-deco {
    font-size: 32px;
    margin-bottom: 14px;
    position: relative;
}

.widget-newsletter h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    position: relative;
}
.widget-newsletter h3 em {
    font-style: italic;
    color: var(--accent);
}

.widget-newsletter > p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin-bottom: 18px;
    position: relative;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 11px 16px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
    width: 100%;
    background: var(--accent-strong);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover { background: #b05525; }

.newsletter-note {
    font-size: 11.5px !important;
    color: rgba(255,255,255,0.35) !important;
    margin-bottom: 0 !important;
    margin-top: 6px;
    position: relative;
}

.newsletter-success {
    background: rgba(45,138,94,0.2);
    border: 1px solid rgba(45,138,94,0.4);
    color: #7edcad;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Popular list */
.popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    counter-reset: pop;
}

.popular-list li a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
    color: var(--charcoal);
}
.popular-list li:last-child a { border-bottom: none; }
.popular-list li a:hover { color: var(--accent); }

.pop-num {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.popular-list li a:hover .pop-num { color: var(--accent); }

.pop-title {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--cream);
    color: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag:hover {
    background: var(--accent-strong);
    color: #fff;
    border-color: var(--accent);
}

/* Product promo widget */
.widget-product-promo {
    padding: 20px;
}

.promo-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.promo-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-bottom: 14px;
}
.promo-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.widget-product-promo:hover .promo-img-wrap img { transform: scale(1.04); }

.widget-product-promo h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.widget-product-promo p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

.promo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

/* reuse btn-card from styles */
.btn-card {
    background: var(--dark);
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-card:hover { background: var(--accent-strong); }

/* ================================
   STAGGERED CARD ANIMATION
================================ */
@media (prefers-reduced-motion: no-preference) {
    .blog-card:nth-child(2) { transition-delay: 0.06s; }
    .blog-card:nth-child(3) { transition-delay: 0.12s; }
    .blog-card:nth-child(4) { transition-delay: 0.18s; }
    .blog-card:nth-child(5) { transition-delay: 0.1s; }
    .blog-card:nth-child(6) { transition-delay: 0.16s; }
    .blog-card:nth-child(7) { transition-delay: 0.1s; }
    .blog-card:nth-child(8) { transition-delay: 0.14s; }
    .blog-card:nth-child(9) { transition-delay: 0.18s; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card { opacity: 1; transform: none; }
}

/* ================================
   ARTICOL SINGULAR — blog-article.php
================================ */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--border); font-size: 15px; }
.bc-current { color: var(--dark); font-weight: 500; }

.article-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 70px;
}

.article-header { margin-bottom: 28px; }

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.article-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16 / 9;
    background: var(--cream);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--charcoal, var(--dark));
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin: 36px 0 16px;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 14px;
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }

.article-promo {
    max-width: 320px;
    margin: 44px auto 0;
}

.article-related {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding-top: 36px;
}
.article-related h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}
