/* ================================================================
   home-news-detail.css  ·  Aura Design System — News Detail Page
   ================================================================ */

/* ── Breadcrumb ──────────────────────────────────────────────── */
.nwd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    padding: 0; margin: 0;
    font-size: .8rem;
}
.nwd-breadcrumb a {
    color: var(--aura-muted);
    text-decoration: none;
    transition: color .18s;
}
.nwd-breadcrumb a:hover { color: #a5b4fc; }
.nwd-breadcrumb .active { color: var(--aura-text); font-weight: 500; }
.nwd-bc-sep { font-size: .65rem; color: rgba(148,163,184,.4); }

/* ── Article Surface ─────────────────────────────────────────── */
.nwd-article-surface {
    background: var(--aura-surface);
    border: 1px solid var(--aura-border);
    border-radius: var(--aura-radius);
    padding: 2.5rem;
}

/* ── Category / Featured badges ─────────────────────────────── */
.nwd-cat-badge {
    display: inline-block;
    padding: .2rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
    background-color: var(--category-color, #6366f1);
}
.home-news-detail-category-badge { background-color: var(--category-color, #6366f1); }

.nwd-featured-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.3);
    color: #fbbf24;
}
.nwd-pin-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.25);
    color: #a5b4fc;
}

/* ── Article title + meta ────────────────────────────────────── */
.nwd-article-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--aura-text);
    margin-bottom: 1rem;
}
.nwd-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .8rem;
    color: var(--aura-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--aura-border);
}

/* ── Featured image ──────────────────────────────────────────── */
.nwd-featured-img-wrap {
    border-radius: var(--aura-radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.nwd-featured-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* ── Summary callout ─────────────────────────────────────────── */
.nwd-summary-callout {
    background: rgba(99,102,241,.07);
    border-left: 3px solid rgba(99,102,241,.5);
    border-radius: 0 var(--aura-radius-sm) var(--aura-radius-sm) 0;
    padding: 1rem 1.25rem;
    font-size: .975rem;
    line-height: 1.75;
    color: #c7d2fe;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ── Article content ─────────────────────────────────────────── */
.nwd-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #cbd5e1;
}
.nwd-content p { margin-bottom: 1.1rem; }

.nwd-content h2,
.nwd-content h3,
.nwd-content h4 {
    margin-top: 2rem;
    margin-bottom: .9rem;
    color: var(--aura-text);
    font-weight: 700;
    line-height: 1.3;
}
.nwd-content h2 { font-size: 1.4rem; }
.nwd-content h3 { font-size: 1.2rem; }
.nwd-content h4 { font-size: 1.05rem; }

.nwd-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--aura-radius-sm);
    margin: 1.25rem 0;
    border: 1px solid var(--aura-border);
}

.nwd-content ul,
.nwd-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #cbd5e1;
}
.nwd-content li { margin-bottom: .4rem; }

.nwd-content blockquote {
    border-left: 3px solid rgba(99,102,241,.5);
    background: rgba(99,102,241,.06);
    border-radius: 0 var(--aura-radius-sm) var(--aura-radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #c7d2fe;
    font-style: italic;
}
.nwd-content blockquote p:last-child { margin-bottom: 0; }

.nwd-content pre {
    background: rgba(15,23,42,.8);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--aura-radius-sm);
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}
.nwd-content code {
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.2);
    color: #a5b4fc;
    padding: .15rem .4rem;
    border-radius: 5px;
    font-size: .88em;
}
.nwd-content pre code {
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 0;
    font-size: .875rem;
}

.nwd-content a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nwd-content a:hover { color: #a5b4fc; }

.nwd-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: .875rem;
}
.nwd-content th {
    background: rgba(99,102,241,.1);
    color: #a5b4fc;
    font-weight: 700;
    padding: .65rem .9rem;
    border: 1px solid var(--aura-border);
    text-align: left;
}
.nwd-content td {
    padding: .6rem .9rem;
    border: 1px solid var(--aura-border);
    color: #cbd5e1;
}
.nwd-content tr:hover td { background: rgba(255,255,255,.02); }

/* ── Tags ────────────────────────────────────────────────────── */
.nwd-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: 1.25rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--aura-border);
}
.nwd-tags-icon { color: var(--aura-muted); font-size: .9rem; }
.nwd-tag {
    display: inline-block;
    padding: .2rem .75rem;
    border-radius: 999px;
    background: var(--aura-surface);
    border: 1px solid var(--aura-border);
    font-size: .75rem;
    font-weight: 600;
    color: var(--aura-muted);
    transition: border-color .18s, color .18s;
}
.nwd-tag:hover {
    border-color: rgba(99,102,241,.35);
    color: #a5b4fc;
}

/* ── Share row ───────────────────────────────────────────────── */
.nwd-share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--aura-border);
}
.nwd-share-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--aura-muted);
}
.nwd-share-btn {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: var(--aura-surface);
    border: 1px solid var(--aura-border);
    color: var(--aura-muted);
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
    min-height: 36px;
}
.nwd-share-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    color: #fff;
}
.nwd-share-fb:hover { border-color: rgba(59,130,246,.4); color: #93c5fd; }
.nwd-share-li:hover { border-color: rgba(99,102,241,.4); color: #a5b4fc; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.nwd-sidebar-card {
    background: var(--aura-surface);
    border: 1px solid var(--aura-border);
    border-radius: var(--aura-radius);
    overflow: hidden;
}
.nwd-sidebar-header {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--aura-border);
    background: rgba(255,255,255,.02);
}
.nwd-sidebar-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--aura-text);
}

/* Related articles */
.nwd-related-list { display: flex; flex-direction: column; }
.nwd-related-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--aura-border);
    transition: background .18s;
}
.nwd-related-item:last-child { border-bottom: none; }
.nwd-related-item:hover { background: rgba(255,255,255,.03); }
.nwd-related-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(99,102,241,.6);
    margin-top: .35rem;
    flex-shrink: 0;
}
.nwd-related-title {
    font-size: .83rem;
    font-weight: 600;
    color: var(--aura-text);
    line-height: 1.45;
    margin-bottom: .25rem;
}
.nwd-related-date {
    font-size: .72rem;
    color: var(--aura-muted);
}

/* Quick links */
.nwd-link-list { display: flex; flex-direction: column; }
.nwd-link-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--aura-border);
    font-size: .875rem;
    color: var(--aura-muted);
    transition: background .18s, color .18s;
}
.nwd-link-item:last-child { border-bottom: none; }
.nwd-link-item:hover {
    background: rgba(255,255,255,.03);
    color: var(--aura-text);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .nwd-article-surface { padding: 1.75rem; }
}
@media (max-width: 575.98px) {
    .nwd-article-surface { padding: 1.25rem; }
    .nwd-article-title { font-size: 1.5rem; }
}
