﻿/* ════════════════════════════════════════════════
   BLOG DETAIL PAGE  –  blog-details.css
   ════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.bd-page {
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}
.bd-page .orb-1 {
    width: clamp(200px,35vw,420px);
    height: clamp(200px,35vw,420px);
    background: rgba(232,74,26,.07);
    top: -60px;
    right: -80px;
}
.bd-page .orb-2 {
    width: clamp(120px,20vw,260px);
    height: clamp(120px,20vw,260px);
    background: rgba(232,74,26,.04);
    top: 300px;
    left: -60px;
}

/* ── Two-column grid: article + sidebar ── */
.bd-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: clamp(32px, 4vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px var(--pad) clamp(40px,6vw,80px);
    align-items: start;
}
@media (max-width: 1024px) {
    .bd-grid { grid-template-columns: 1fr 280px; }
}
@media (max-width: 820px) {
    .bd-grid {
        grid-template-columns: 1fr;
    }
    .bd-sidebar { display: none; }
}

/* ════════════════════════════════════════════════
   ARTICLE
   ════════════════════════════════════════════════ */
.bd-article {
    min-width: 0;
}

/* Breadcrumb */
.bd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: .75rem;
    color: var(--text-muted);
}
.bd-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .3s;
}
.bd-breadcrumb a:hover { color: var(--orange); }
.bd-breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }
.bd-breadcrumb span { color: var(--text-secondary); }

/* Category badge + meta row */
.bd-top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}
.bd-category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(232,74,26,.1);
    border: 1px solid rgba(232,74,26,.25);
    border-radius: 2px;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange-light);
    text-decoration: none;
    transition: background .3s, border-color .3s;
    white-space: nowrap;
}
.bd-category-badge:hover {
    background: rgba(232,74,26,.18);
    border-color: rgba(232,74,26,.5);
}
.bd-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--text-muted);
}
.bd-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bd-meta-item svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Title */
.bd-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Excerpt / lead paragraph */
.bd-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
    border-left: 3px solid var(--orange);
    padding-left: 18px;
}

/* Featured image */
.bd-featured-img {
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.bd-featured-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ── Content body typography ── */
.bd-content-body {
    font-size: .94rem;
    line-height: 1.85;
    color: var(--text-secondary);
    font-weight: 300;
}
.bd-content-body h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 44px 0 16px;
    line-height: 1.28;
    padding-top: 4px;
}
.bd-content-body h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--text-primary);
    margin: 32px 0 12px;
    line-height: 1.3;
}
.bd-content-body h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: .98rem;
    color: var(--text-primary);
    margin: 24px 0 10px;
}
.bd-content-body p { margin-bottom: 20px; }
.bd-content-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.bd-content-body a:hover { color: var(--orange-light); }
.bd-content-body ul,
.bd-content-body ol { margin: 16px 0 20px 24px; }
.bd-content-body li { margin-bottom: 8px; padding-left: 4px; }
.bd-content-body blockquote {
    border-left: 3px solid var(--orange);
    padding: 16px 24px;
    margin: 28px 0;
    background: rgba(232,74,26,.04);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text-primary);
}
.bd-content-body pre {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-size: .84rem;
    line-height: 1.6;
}
.bd-content-body code {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .84rem;
}
.bd-content-body pre code { background: none; border: none; padding: 0; }
.bd-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 24px 0;
}
.bd-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .88rem;
}
.bd-content-body th {
    background: rgba(232,74,26,.08);
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.bd-content-body td {
    padding: 9px 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.bd-content-body tr:nth-child(even) td {
    background: rgba(255,255,255,.02);
}

/* ── Share + back row ── */
.bd-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
    margin-top: 44px;
    border-top: 1px solid var(--border);
}
.bd-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .3s;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
}
.bd-back-link svg { width: 16px; height: 16px; }
.bd-back-link:hover { color: var(--orange); }
.bd-share {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bd-share-label {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: .72rem;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bd-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: border-color .3s, color .3s, background .3s;
    text-decoration: none;
}
.bd-share-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(232,74,26,.06); }
.bd-share-btn svg { width: 15px; height: 15px; }

/* ── Prev / Next nav ── */
.bd-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}
@media (max-width: 520px) { .bd-nav { grid-template-columns: 1fr; } }
.bd-nav-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color .3s, transform .3s;
    display: block;
}
.bd-nav-card:hover { border-color: rgba(232,74,26,.3); transform: translateY(-2px); }
.bd-nav-label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.bd-nav-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .88rem; color: var(--text-primary); line-height: 1.35; transition: color .3s; }
.bd-nav-card:hover .bd-nav-title { color: var(--orange); }
.bd-nav-next { text-align: right; }

/* ════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════ */
.bd-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bd-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 22px 20px;
}
.bd-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.bd-widget-title svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }

/* TOC */
.bd-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bd-toc a {
    display: block;
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 3px;
    transition: background .2s, color .2s;
    line-height: 1.4;
}
.bd-toc a.toc-h3 { padding-left: 20px; font-size: .76rem; }
.bd-toc a:hover,
.bd-toc a.active { background: rgba(232,74,26,.08); color: var(--orange); }
.bd-toc a.active { font-weight: 600; }

/* Categories */
.bd-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bd-category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 3px;
    font-size: .82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.bd-category-list li a:hover { background: rgba(232,74,26,.07); color: var(--orange); }
.bd-cat-count {
    background: rgba(232,74,26,.12);
    color: var(--orange);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Latest articles */
.bd-latest-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bd-latest-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.bd-latest-thumb {
    width: 68px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}
.bd-latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bd-latest-item:hover .bd-latest-thumb img { transform: scale(1.06); }
.bd-latest-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232,74,26,.06), rgba(232,74,26,.02));
}
.bd-latest-placeholder svg { width: 22px; height: 22px; color: var(--text-muted); }
.bd-latest-body { flex: 1; min-width: 0; }
.bd-latest-date { font-size: .7rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.bd-latest-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
    transition: color .3s;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bd-latest-item:hover .bd-latest-title { color: var(--orange); }

/* ════════════════════════════════════════════════
   RELATED ARTICLES  (full-width, below grid)
   ════════════════════════════════════════════════ */
.bd-related { padding: clamp(40px,6vw,80px) var(--pad); }
.bd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}
@media (max-width: 900px) { .bd-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bd-related-grid { grid-template-columns: 1fr; } }

.bd-related-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .4s, border-color .4s;
    display: flex;
    flex-direction: column;
}
.bd-related-card:hover { transform: translateY(-4px); border-color: rgba(232,74,26,.28); }
.bd-related-card-img { height: 160px; overflow: hidden; background: var(--bg-secondary); }
.bd-related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bd-related-card:hover .bd-related-card-img img { transform: scale(1.05); }
.rp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232,74,26,.06), rgba(232,74,26,.02));
}
.rp-placeholder svg { width: 36px; height: 36px; color: var(--text-muted); }
.bd-related-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bd-related-card-body span { font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; }
.bd-related-card-body h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.35;
    color: var(--text-primary);
    transition: color .3s;
    margin: 0;
}
.bd-related-card:hover .bd-related-card-body h4 { color: var(--orange); }

/* ════════════════════════════════════════════════
   AUTHOR CARD
   ════════════════════════════════════════════════ */
.bd-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding: 24px 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    border-left: 3px solid var(--orange);
}
.bd-author-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), rgba(232,74,26,.6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}
.bd-author-info { min-width: 0; }
.bd-author-label {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 4px;
}
.bd-author-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.bd-author-role {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════
   SIDEBAR – AUTHOR + SHARE WIDGET
   ════════════════════════════════════════════════ */
.bd-sw-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.bd-sw-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), rgba(232,74,26,.55));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}
.bd-sw-avatar--img {
    background: none;
    object-fit: cover;
}
.bd-sw-author-info { min-width: 0; }
.bd-sw-author-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-primary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bd-sw-author-role {
    font-size: .74rem;
    color: var(--text-muted);
    margin: 0;
}

.bd-sw-share { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bd-sw-share-label {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.bd-sw-share-btns { display: flex; gap: 8px; }
.bd-sw-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color .25s, color .25s, background .25s;
    flex-shrink: 0;
}
.bd-sw-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(232,74,26,.07); }
.bd-sw-btn svg { width: 14px; height: 14px; }

/* ============================================================
   AUTHOR BIO CARD
   ============================================================ */
.bd-bio-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 2.5rem;
}
.bd-bio-accent {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--orange), #f97316, #fb923c);
}
.bd-bio-inner {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    align-items: flex-start;
}
.bd-bio-avatar {
    width: 80px; height: 80px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), #f97316);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font: 700 2rem 'Syne', sans-serif;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.bd-bio-avatar--img {
    object-fit: cover;
    font-size: 0;
}
.bd-bio-info {
    flex: 1;
    min-width: 0;
}
.bd-bio-label {
    font: 700 .65rem 'Syne', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 .25rem;
}
.bd-bio-name {
    font: 700 1.2rem 'Syne', sans-serif;
    color: var(--text-primary);
    margin: 0 0 .5rem;
}
.bd-bio-email {
    display: flex; align-items: center; gap: .4rem;
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0 0 .75rem;
}
.bd-bio-email svg { width: 14px; height: 14px; flex-shrink: 0; }
.bd-bio-desc {
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bd-bio-socials {
    display: flex; gap: .5rem; flex-wrap: wrap;
    margin-top: .5rem;
}
.bd-bio-social {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent;
    transition: opacity .2s, transform .2s;
    text-decoration: none;
    flex-shrink: 0;
}
.bd-bio-social svg { width: 16px; height: 16px; }
.bd-bio-social:hover { opacity: .85; transform: translateY(-1px); }
.bd-bio-social--linkedin  { background: #0077B5; color: #fff; }
.bd-bio-social--facebook  { background: #1877F2; color: #fff; }
.bd-bio-social--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #fff;
}
.bd-bio-social--medium    { background: #000; color: #fff; }
.bd-bio-social--default   { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border); }

@media (max-width: 540px) {
    .bd-bio-inner { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
    .bd-bio-email, .bd-bio-socials { justify-content: center; }
}
