/* =========================================
   BLOG PAGE (blog.html) — article list + single article view
   Not to be confused with css/blog.css, which only styles the small
   teaser grid on the home page. page-header/breadcrumbs/page-title are
   intentionally redefined here rather than shared, matching the existing
   per-page convention (see css/account.css, css/product.css).
   ========================================= */
/* blog.html's <main> uses the shared "container section-padding" combo
   (see css/base.css), whose default 100px top padding is meant for
   sections lower on a page — not a page that opens straight into a
   breadcrumb/title block. catalog.html hits the same situation and
   overrides it the same way (see css/catalog.css); doing it here too so
   the gap under the header matches the rest of the site. */
/* Element+class selector (main.section-padding, not just .section-padding)
   is intentional: it out-specifies css/responsive.css's mobile
   ".section-padding { padding-top: 50px }" rule regardless of stylesheet
   load order, so this stays tight on mobile too — see the identical fix
   and rationale in css/catalog.css (.section-padding is also used for
   plain div section-spacers on index.html, which should keep the 50px
   mobile value, hence scoping to the <main> element specifically here
   rather than overriding the class everywhere). */
main.section-padding { padding-top: 10px; padding-bottom: 60px; }

.page-header { padding: 10px 0 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 30px; }
.breadcrumbs {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888;
    margin-bottom: 15px; flex-wrap: wrap;
}
.breadcrumbs a { color: #888; transition: 0.3s; }
.breadcrumbs a:hover { color: var(--accent-gold); }
.breadcrumbs i { font-size: 9px; color: #555; }
.breadcrumbs span { color: #ccc; }
.page-title { font-size: clamp(22px, 0.83vw + 19px, 29px); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.page-subtitle { color: #999; font-size: 15px; margin-top: 15px; line-height: 1.6; max-width: 600px; }

/* ---- Article list ---- */
.blog-wrapper { display: flex; flex-direction: column; gap: 20px; width: 100%; }

.blog-list-card {
    display: flex; flex-direction: row; background: transparent; border: 1px solid var(--border-light);
    border-radius: 12px; overflow: hidden; cursor: pointer; transition: 0.4s ease; height: 200px; width: 100%;
}
.blog-list-card:hover { border-color: var(--accent-gold); background: #0a0a0a; transform: translateX(8px); }

.blog-card-img { width: 260px; height: 100%; overflow: hidden; background: #000; position: relative; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; opacity: 0.8; }
.blog-list-card:hover .blog-card-img img { transform: scale(1.05); opacity: 1; }

.blog-card-info { padding: 25px 30px; display: flex; flex-direction: column; justify-content: center; flex: 1; }

.blog-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px; color: #666;
}
.blog-meta span { color: var(--accent-gold); }

.blog-list-title { font-size: 19px; font-weight: 500; color: #fff; margin-bottom: 12px; line-height: 1.4; transition: 0.3s; }
.blog-list-card:hover .blog-list-title { color: var(--accent-gold); }

.blog-excerpt {
    color: #999; font-size: 13px; line-height: 1.6; margin-bottom: 15px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.read-more-btn {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #fff;
    display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; margin-top: auto;
}
.blog-list-card:hover .read-more-btn { color: var(--accent-gold); gap: 12px; }

/* ---- Single article ---- */
.article-wrapper { display: none; width: 100%; max-width: 1000px; margin: 0 auto; animation: blogFadeIn 0.5s ease; }
@keyframes blogFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.btn-back-blog {
    display: flex; width: max-content; align-items: center; gap: 10px; color: #888; cursor: pointer;
    margin-top: 40px; font-size: 13px; text-transform: uppercase; font-weight: 500; transition: 0.3s;
}
.btn-back-blog:hover { color: var(--accent-gold); }

.article-header { text-align: left; margin-bottom: 30px; }
.article-header .blog-meta { font-size: 13px; margin-bottom: 15px; }
.article-title { font-size: clamp(24px, 1.4vw + 18.9px, 36px); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 0; }

.article-hero { width: 100%; height: 450px; border-radius: 12px; overflow: hidden; margin-bottom: 40px; background: #000; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { color: #ccc; font-size: 16px; line-height: 1.8; width: 100%; }
.article-body p { margin-bottom: 25px; }
.article-body h3 { color: #fff; font-size: 22px; margin: 40px 0 20px; font-weight: 600; }
.article-body ul { margin-bottom: 25px; padding-left: 20px; list-style: none; }
.article-body li { position: relative; margin-bottom: 10px; padding-left: 15px; }
.article-body li::before { content: '•'; position: absolute; left: 0; color: var(--accent-gold); font-weight: bold; }
.article-body blockquote {
    border-left: 3px solid var(--accent-gold); padding: 20px 30px; margin: 40px 0; background: #0a0a0a;
    font-style: italic; color: #fff; font-size: 18px; border-radius: 0 12px 12px 0;
}

@media (max-width: 600px) {
    .article-hero { height: 250px; }

    .blog-list-card { flex-direction: column; height: auto; gap: 0; transform: none !important; background: #0a0a0a; }
    .blog-card-img { width: 100%; height: 180px; }
    .blog-card-info { padding: 20px; }
    .blog-meta { font-size: 10px; margin-bottom: 8px; }
    .blog-list-title { font-size: 18px; margin-bottom: 10px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .blog-excerpt { display: none; }
    .read-more-btn { font-size: 11px; margin-top: 10px; }
}
