/* ==========================================================================
   Haber detay sayfası (news-detail.php) — 23 Eylül 2026 yeniden tasarım.
   home.css (koyu tema değişkenleri) + news-list.css (kategori renkleri,
   kart stili) üzerine kurulu. content.css'teki .rich-content kuralları
   burada koyu temaya göre ezilir (yalnızca .nd-page içinde).
   ========================================================================== */

.nd-container { max-width: 1200px !important; margin-left: auto; margin-right: auto; }

/* Okuma ilerleme çubuğu */
.nd-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: 3px; background: transparent; pointer-events: none; }
.nd-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2f8bf5, #2ed19b); transition: width .1s linear; }

/* ---- Üst bölüm ---- */
.nd-hero { position: relative; padding: 34px 0; border-bottom: 1px solid var(--hb-border); background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--nc, #4fa6ff) 12%, transparent), transparent 55%), linear-gradient(115deg, #03101f 0%, #071c30 55%, #0a2740 100%); }
.nd-hero:before { content: ''; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(77, 155, 206, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 155, 206, .07) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.nd-hero .nd-container { position: relative; z-index: 1; }
.nd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--hb-muted); font-size: .8rem; font-weight: 600; }
.nd-crumb a { color: var(--hb-muted); }
.nd-crumb a:hover { color: #fff; }
.nd-crumb i { font-size: .62rem; opacity: .6; }
.nd-cat { font-size: .68rem; padding: 4px 10px; }
.nd-cat:hover { color: #fff; }
.nd-hero h1 { max-width: 920px; margin: 14px 0 16px; font-weight: 800; font-size: clamp(1.65rem, 3.4vw, 2.55rem); line-height: 1.22; color: #f7fbff; }
.nd-lede { max-width: 820px; margin: 0 0 20px; color: #c3d3e3; font-size: 1.08rem; line-height: 1.7; }
.nd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--hb-muted); font-size: .84rem; font-weight: 600; }
.nd-meta i { margin-right: 6px; color: var(--hb-muted-soft); }
.nd-meta .rel { color: var(--hb-green); }
.nd-share { display: flex; gap: 8px; margin-left: auto; }
.nd-share a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--hb-border-soft); border-radius: 8px; color: #dbe9f6; }
.nd-share a i { margin: 0; color: inherit; }
.nd-share a:hover, .nd-share a.copied { border-color: var(--hb-blue-light); color: #fff; background: rgba(79, 166, 255, .12); }
/* Görsel asla kırpılmaz: dikey infografikler de tam görünür, yatay kapaklar sütunu doldurur */
.nd-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 760px; margin: 24px auto 0; object-fit: contain; border: 1px solid var(--hb-border); border-radius: 12px; }

/* ---- Yerleşim ---- */
.nd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 34px; }

/* Kısaca */
.nd-keyp { margin: 0 0 26px; padding: 18px 20px; border: 1px solid rgba(46, 209, 155, .3); border-left: 3px solid var(--hb-green); border-radius: 10px; background: rgba(46, 209, 155, .06); }
.nd-keyp b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--hb-green); font-size: .78rem; letter-spacing: .08em; }
.nd-keyp ul { margin: 0; padding-left: 20px; color: #dbe7f3; }
.nd-keyp li { margin: 4px 0; }

/* Metin — content.css'in açık tema renkleri koyu temaya çevrilir */
.nd-page .rich-content { max-width: 760px; color: #d9e5f1; font-size: 1.06rem; line-height: 1.85; }
.nd-page .rich-content > p:first-of-type { color: #eaf3ff; }
.nd-page .rich-content h2, .nd-page .rich-content h3 { color: #f7fbff; }
.nd-page .rich-content h2 { font-size: 1.32rem; font-weight: 800; }
.nd-page .rich-content strong { color: #fff; }
.nd-page .rich-content a { color: var(--hb-blue-light); }
.nd-page .rich-content a.term-link { color: var(--hb-blue-light); text-decoration: none; border-bottom: 1px dashed rgba(79, 166, 255, .55); }
.nd-page .rich-content a.term-link:hover { color: #fff; border-bottom-color: #fff; }
.nd-page .rich-content hr { margin: 30px 0; border: 0; border-top: 1px solid var(--hb-border); opacity: 1; }
.nd-page .rich-content blockquote { margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--hb-blue-light); border-radius: 0 8px 8px 0; background: rgba(47, 139, 245, .08); color: #eaf3ff; }
.nd-page .rich-content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: .92rem; }
.nd-page .rich-content th, .nd-page .rich-content td { padding: 8px 10px; border: 1px solid var(--hb-border); }
.nd-page .rich-content img { max-width: 100%; height: auto; border-radius: 10px; }

/* SSS — SEO için cevaplar görünür kalır (details içinde gizlenmez), kart görünümünde */
.nd-faq .content-faq { margin-top: 34px; padding-top: 0; border-top: 0; }
.nd-faq .content-faq > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.2rem; }
.nd-faq .content-faq > h2:before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hb-amber); color: #1b1200; font-size: .85rem; font-weight: 800; }
.nd-faq .content-faq-item { padding: 14px 18px; border: 1px solid var(--hb-border); border-radius: 10px; background: var(--hb-card-soft); }
.nd-faq .content-faq-item + .content-faq-item { margin-top: 10px; }
.nd-faq .content-faq-q { margin: 0 0 6px; color: #f7fbff; font-size: 1rem; font-weight: 800; }
.nd-faq .content-faq-a { color: #c3d3e3; font-size: .96rem; line-height: 1.7; }
.nd-faq .content-faq-a p:last-child { margin-bottom: 0; }

/* Etiketler */
.nd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hb-border); }
.nd-tags a { padding: 5px 11px; border: 1px solid var(--hb-border-soft); border-radius: 999px; color: #cfe2f2; font-size: .78rem; font-weight: 600; }
.nd-tags a:before { content: '#'; margin-right: 2px; color: var(--hb-muted-soft); }
.nd-tags a:hover { color: #fff; border-color: var(--hb-blue-light); }

/* Önceki / sonraki */
.nd-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.nd-pn a { padding: 14px 16px; border: 1px solid var(--hb-border); border-radius: 10px; background: var(--hb-card-soft); color: var(--hb-text); }
.nd-pn a:hover { border-color: var(--hb-border-soft); color: #fff; }
.nd-pn small { display: block; margin-bottom: 4px; color: var(--hb-muted-soft); font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.nd-pn b { font-size: .9rem; line-height: 1.4; }
.nd-pn .next { text-align: right; grid-column: 2; }

/* ---- Kenar çubuğu ---- */
.nd-aside { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.nd-box { overflow: hidden; border: 1px solid var(--hb-border); border-radius: 12px; background: var(--hb-card-soft); }
.nd-box-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hb-border); color: #cfe2f2; font-size: .72rem; font-weight: 800; letter-spacing: .07em; }
.nd-box-b { padding: 14px 16px; }
.nd-sharebtns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nd-sharebtns a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--hb-border-soft); border-radius: 8px; color: #cfe2f2; font-size: .68rem; font-weight: 700; }
.nd-sharebtns a i { font-size: 1.1rem; }
.nd-sharebtns a:hover, .nd-sharebtns a.copied { color: #fff; border-color: var(--hb-blue-light); }
.nd-si { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hb-border); color: var(--hb-text); }
.nd-si:last-child { border-bottom: 0; }
.nd-si time { padding-top: 1px; color: var(--hb-blue-light); font-size: .78rem; font-weight: 800; }
.nd-si h3 { margin: 0; font-size: .84rem; font-weight: 700; line-height: 1.4; color: var(--hb-text); }
.nd-si:hover h3 { color: var(--hb-blue-light); }
.nd-catbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 8px; background: color-mix(in srgb, var(--nc, #4fa6ff) 14%, transparent); color: var(--nc, #4fa6ff); font-size: .86rem; font-weight: 800; }
.nd-catbtn:hover { color: #fff; }
.nd-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-tools a { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--hb-border); border-radius: 8px; color: #dbe9f6; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.nd-tools a i { color: var(--hb-blue-light); }
.nd-tools a:hover { color: #fff; border-color: var(--hb-blue-light); }

/* ---- İlgili haberler ---- */
.nd-related { padding: 44px 0 30px; }
.nd-related .news-day-h h2 { font-size: 1.15rem !important; }
.nd-all { color: var(--hb-blue-light); font-size: .85rem; font-weight: 700; }
.nd-related .news-card2 h3 { flex: 1; margin-bottom: 12px; }

/* ---- Duyarlı ---- */
@media (max-width: 991px) {
    .nd-layout { grid-template-columns: minmax(0, 1fr); }
    .nd-aside { position: static; }
    .nd-page .rich-content { max-width: none; }
}
@media (max-width: 575px) {
    .nd-hero { padding: 24px 0 26px; }
    .nd-lede { font-size: 1rem; }
    .nd-share { width: 100%; margin-left: 0; }
    .nd-page .rich-content { font-size: 1rem; line-height: 1.8; }
    .nd-pn { grid-template-columns: 1fr; }
    .nd-pn .next { grid-column: auto; text-align: left; }
    .nd-keyp { padding: 14px 16px; }
}
