/* =========================================================
   RV Affiliate — Blog System Styles
   Theme: Obsidian Black + Soft Pearl + Crimson Depth
   ========================================================= */

/* ─── Blog Hero (Theme Adaptive) ────────────────────────── */
.blog-hero {
    position: relative;
    background: var(--hero-bg);
    padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 70px);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.blog-hero-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: var(--hero-glow);
    pointer-events: none;
    filter: blur(40px);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.15;
}

.blog-hero-subtitle {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ─── Featured Guide Section ────────────────────────────── */
.featured-guide-section {
    background-color: var(--page-bg);
    padding: clamp(50px, 6vw, 80px) 0 clamp(30px, 4vw, 50px);
}

.featured-guide-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--br-card);
    padding: clamp(32px, 4vw, 56px);
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.featured-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(113, 0, 20, 0.35);
}

.blog-category-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand, var(--clr-crimson));
    background-color: rgba(113, 0, 20, 0.10);
    padding: 6px 14px;
    border-radius: var(--br-pill);
    margin-bottom: 16px;
    border: 1px solid rgba(113, 0, 20, 0.25);
}

.featured-guide-card h2 {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.25;
}

.featured-guide-card h2 a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.featured-guide-card h2 a:hover {
    color: var(--brand, var(--clr-crimson));
}

.featured-guide-excerpt {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 840px;
}

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

.article-meta-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-divider {
    color: var(--border-strong, rgba(26, 24, 24, 0.25));
}

/* ─── Topic Chips & Category Filter ─────────────────────── */
.blog-filter-section {
    background-color: var(--page-bg);
    padding-bottom: 30px;
}

.category-chips-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}

.category-chip {
    padding: 9px 18px;
    border-radius: var(--br-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-chip:hover {
    color: var(--brand, var(--clr-crimson));
    border-color: rgba(113, 0, 20, 0.35);
}

.category-chip.active {
    background-color: var(--brand, var(--clr-crimson));
    color: #FFFFFF;
    border-color: var(--brand, var(--clr-crimson));
    box-shadow: 0 4px 14px rgba(113, 0, 20, 0.25);
}

/* ─── Article Grid ───────────────────────────────────────── */
.latest-guides-section {
    background-color: var(--page-bg);
    padding: 20px 0 clamp(60px, 8vw, 100px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.article-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--br-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(113, 0, 20, 0.35);
}

.article-card-header {
    margin-bottom: 12px;
}

.article-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-card-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.article-card-title a:hover {
    color: var(--brand, var(--clr-crimson));
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.article-card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand, var(--clr-crimson));
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.article-card-link:hover {
    gap: 8px;
}

/* ─── Single Article Page Template (Theme Adaptive Header) ── */
.article-header-section {
    background: var(--hero-bg);
    padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 60px);
    border-bottom: 1px solid var(--border);
}

.blog-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.blog-breadcrumb a:hover {
    color: var(--text-primary);
}

.blog-breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

.article-header-content {
    max-width: 800px;
}

.article-header-content h1 {
    font-size: clamp(28px, 3.8vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.18;
    margin-bottom: 20px;
}

.article-header-excerpt {
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.article-body-wrapper {
    background-color: var(--page-bg);
    padding: clamp(50px, 7vw, 90px) 0;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-content-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--br-card);
    padding: clamp(32px, 5vw, 64px);
    box-shadow: var(--shadow);
}

/* ─── Article Body Typography ──────────────────────────── */
.article-body h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-body li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text-primary);
}

/* ─── Key Takeaways Box ────────────────────────────────── */
.key-takeaways-box {
    background-color: var(--surface-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand, var(--clr-crimson));
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
}

.key-takeaways-box h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand, var(--clr-crimson));
    margin-top: 0;
    margin-bottom: 14px;
}

.key-takeaways-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.key-takeaways-box li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.key-takeaways-box li:last-child {
    margin-bottom: 0;
}

/* ─── Related Products Section ─────────────────────────── */
.related-products-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.related-products-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.related-product-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    background-color: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    align-items: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.related-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(113, 0, 20, 0.35);
}

.related-product-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    background-color: var(--surface);
}

.related-product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand, var(--clr-crimson));
    margin-bottom: 6px;
}

.related-product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.related-product-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.related-product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ─── FAQ Section ───────────────────────────────────────── */
.article-faq-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.article-faq-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.faq-item {
    background-color: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ─── Related Articles & Back Link ─────────────────────── */
.related-articles-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.article-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ─── Responsive Adjustments ───────────────────────────── */
@media (max-width: 768px) {
    .related-product-card {
        grid-template-columns: 1fr;
    }
    
    .related-product-img {
        height: 160px;
    }
    
    .article-content-card {
        padding: 24px 20px;
    }
}
