/* =====================================================
   Haber Detay Sayfası – news-detail.css
   style.css token'larını kullanır
   ===================================================== */

/* ═══════════════════════════════════════════
   PAGE HERO — Breadcrumb + Başlık
═══════════════════════════════════════════ */
.nd-hero {
  background: var(--navy);
  padding: 28px 0 36px;
}

/* Breadcrumb */
.nd-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.nd-breadcrumb__item { display: flex; align-items: center; }
.nd-breadcrumb__link {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--t);
}
.nd-breadcrumb__link:hover,
.nd-breadcrumb__link:focus-visible { color: rgba(255,255,255,.95); text-decoration: underline; }
.nd-breadcrumb__sep { font-size: .65rem; color: rgba(255,255,255,.35); margin: 0 2px; }
.nd-breadcrumb__item--active span { font-size: .8rem; color: rgba(255,255,255,.45); }

/* Kategori badge */
.nd-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* H1 */
.nd-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  max-width: 860px;
}

/* ═══════════════════════════════════════════
   LAYOUT — 2 sütun
═══════════════════════════════════════════ */
.nd-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 60px;
}

/* ═══════════════════════════════════════════
   MAKALE ALANI
═══════════════════════════════════════════ */

/* Meta bar */
.nd-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.nd-meta__info { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.nd-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--text-muted);
  font-style: normal;
}
.nd-meta__item .bi { font-size: .8rem; color: #9ca3af; }

/* Tool buttons */
.nd-meta__tools { display: flex; align-items: center; gap: 6px; }
.nd-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 8px;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text-muted);
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.nd-tool-btn:hover,
.nd-tool-btn:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); }
.nd-tool-btn--active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* İçerik tipografisi */
.nd-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}
.nd-content p { margin-bottom: 1.25rem; }
.nd-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}
.nd-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 .75rem;
}
.nd-content a { color: var(--navy-mid); text-decoration: underline; }
.nd-content a:hover { color: var(--gold-dark); }
.nd-content ul, .nd-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.nd-content li { margin-bottom: .4rem; }

/* Öne çıkan alıntı */
.nd-quote {
  border-left: 4px solid var(--gold);
  background: #fafafa;
  margin: 0 0 1.5rem;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.65;
  font-style: normal;
}

/* Görsel */
.nd-figure { margin: 2rem 0; }
.nd-figure__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}
.nd-figure__caption {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   SOSYAL MEDYA PAYLAŞIM
═══════════════════════════════════════════ */
.nd-share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  flex-wrap: wrap;
}
.nd-share__label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.nd-share__btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t);
  color: #fff;
}
.nd-share__btn:hover,
.nd-share__btn:focus-visible { opacity: .85; transform: translateY(-2px); }
.nd-share__btn--twitter  { background: #000; }
.nd-share__btn--facebook { background: #1877f2; }
.nd-share__btn--linkedin { background: #0a66c2; }
.nd-share__btn--whatsapp { background: #25d366; }
.nd-share__btn--copy     { background: #6b7280; }

/* ═══════════════════════════════════════════
   ÖNCEKİ / SONRAKİ HABER
═══════════════════════════════════════════ */
.nd-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.nd-pager__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background var(--t), border-color var(--t);
}
.nd-pager__item:hover,
.nd-pager__item:focus-visible {
  background: #f5f7ff;
  border-color: var(--navy);
}
.nd-pager__item--next { text-align: right; }
.nd-pager__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nd-pager__item--next .nd-pager__label { justify-content: flex-end; }
.nd-pager__title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   İLGİNİZİ ÇEKEBİLİR
═══════════════════════════════════════════ */
.nd-related__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 10px;
}
.nd-related__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.nd-related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nd-related__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.nd-related__card:hover,
.nd-related__card:focus-visible {
  box-shadow: 0 4px 16px rgba(26,39,68,.1);
  transform: translateY(-2px);
}
.nd-related__img-wrap { overflow: hidden; }
.nd-related__img {
  width: 100%; height: 160px; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.nd-related__card:hover .nd-related__img { transform: scale(1.04); }
.nd-related__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.nd-related__date {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; color: var(--text-muted); font-style: normal;
}
.nd-related__date .bi { font-size: .75rem; color: #9ca3af; }
.nd-related__card-title {
  font-size: .9rem; font-weight: 700; color: var(--navy);
  line-height: 1.4; margin: 0;
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.nd-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.nd-sidebar__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.nd-sidebar__title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--gold);
}
.nd-sidebar__list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.nd-sidebar__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: background var(--t);
}
.nd-sidebar__item:last-child { border-bottom: none; }
.nd-sidebar__item:hover,
.nd-sidebar__item:focus-visible { background: #fafafa; }
.nd-sidebar__thumb {
  width: 72px; height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.nd-sidebar__info { display: flex; flex-direction: column; gap: 4px; }
.nd-sidebar__item-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
  transition: color var(--t);
}
.nd-sidebar__item:hover .nd-sidebar__item-title { color: var(--gold-dark); }
.nd-sidebar__date {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; color: var(--text-muted); font-style: normal;
}
.nd-sidebar__date .bi { font-size: .7rem; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1023px) {
  .nd-layout { grid-template-columns: 1fr 260px; gap: 32px; }
}
@media (max-width: 767px) {
  .nd-layout { grid-template-columns: 1fr; }
  .nd-sidebar { position: static; }
  .nd-pager { grid-template-columns: 1fr; }
  .nd-pager__item--next { text-align: left; }
  .nd-pager__item--next .nd-pager__label { justify-content: flex-start; }
  .nd-related__grid { grid-template-columns: 1fr; }
  .nd-title { font-size: 1.5rem; }
}
@media (max-width: 575px) {
  .nd-hero { padding: 20px 0 28px; }
  .nd-meta { flex-direction: column; align-items: flex-start; }
  .nd-share { gap: 6px; }
}

/* ═══════════════════════════════════════════
   PRINT
═══════════════════════════════════════════ */
@media print {
  .nd-hero { background: #fff !important; }
  .nd-title, .nd-cat { color: #000 !important; }
  .nd-sidebar, .nd-share, .nd-pager, .nd-related,
  .nd-meta__tools { display: none !important; }
  .nd-layout { grid-template-columns: 1fr; }
  .nd-content { font-size: 11pt; line-height: 1.6; }
}

/* ═══════════════════════════════════════════
   FONT SIZE — JS kontrolü için
═══════════════════════════════════════════ */
.nd-content[data-size="sm"] { font-size: .9rem; }
.nd-content[data-size="lg"] { font-size: 1.1rem; }