/* =====================================================
   DUYURU DETAY – SaaS Post Design
   ===================================================== */

/* Reading Progress Bar */
#dd-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  z-index: 9999; transition: width .1s linear;
  pointer-events: none;
}

/* ── Hero ── */
.dd-hero {
  background: #fff;
  padding: 72px 0 56px;
  border-bottom: 1px solid #eef0f4;
}
.dd-hero-inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
}
.dd-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .73rem; color: #94a3b8; margin-bottom: 28px;
}
.dd-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.dd-breadcrumb a:hover { color: var(--primary); }
.dd-breadcrumb span { color: #cbd5e1; }

.dd-meta-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.dd-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .69rem; font-weight: 700; padding: 4px 12px; border-radius: 40px;
}
.dd-badge--guncelleme { background: #fffbeb; color: #b45309; }
.dd-badge--duyuru     { background: #eff6ff; color: #2563eb; }
.dd-badge--kampanya   { background: #f0fdf4; color: #15803d; }
.dd-badge--bakim      { background: #fef2f2; color: #dc2626; }
.dd-badge--ozellik    { background: #f5f3ff; color: #7c3aed; }
.dd-meta-sep  { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.dd-meta-text { font-size: .78rem; color: #94a3b8; display: inline-flex; align-items: center; gap: 5px; }

.dd-hero-title {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 900; color: #0d1117;
  line-height: 1.12; letter-spacing: -.035em;
  margin: 0 0 20px;
}
.dd-hero-title em { font-style: normal; color: var(--primary); }
.dd-hero-lead {
  font-size: 1.08rem; color: #4b5563; line-height: 1.8;
  margin: 0 0 32px; font-weight: 400;
}

/* divider accent */
.dd-hero-divider {
  display: flex; align-items: center; gap: 14px; padding-top: 8px;
}
.dd-hero-divider-line { flex: 1; height: 1px; background: #e5e7eb; }
.dd-hero-divider-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ── Layout ── */
.dd-layout {
  background: #f8fafd; padding: 56px 0 80px;
}
.dd-body-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0 32px;
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
}
/* TOC yoksa hero ile aynı genişlikte ortala — sağ/sol kaymayı önler */
.dd-body-wrap--no-toc,
.dd-body-wrap:not(:has(.dd-toc)) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

/* Share End Block */
.dd-share-end {
  background: #fff;
  border-top: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
  padding: 56px 0;
  text-align: center;
}
.dd-share-end-inner {
  max-width: 520px; margin: 0 auto; padding: 0 24px;
}
.dd-share-end-label {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: #94a3b8; display: block; margin-bottom: 12px;
}
.dd-share-end-title {
  font-size: 1.5rem; font-weight: 900; color: #0d1117;
  letter-spacing: -.03em; margin: 0 0 8px;
}
.dd-share-end-sub {
  font-size: .88rem; color: #64748b; margin: 0 0 28px; line-height: 1.65;
}
.dd-share-end-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.dd-share-end-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: .88rem; font-weight: 700;
  border: 1.5px solid; cursor: pointer; font-family: inherit;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.dd-share-end-btn--x { background:#000; border-color:#000; color:#fff; }
.dd-share-end-btn--x:hover { background:#222; }
.dd-share-end-btn--linkedin { background:#0a66c2; border-color:#0a66c2; color:#fff; }
.dd-share-end-btn--linkedin:hover { background:#0958a8; }
.dd-share-end-btn--copy { background:#fff; border-color:#e2e8f0; color:#374151; }
.dd-share-end-btn--copy:hover { border-color:var(--primary); color:var(--primary); background:#eff6ff; }
.dd-share-end-back {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: #94a3b8; text-decoration: none;
  transition: color .18s;
}
.dd-share-end-back:hover { color: var(--primary); }

/* Article */
.dd-prose {
  font-size: 1.02rem; color: #1e293b; line-height: 1.85;
  font-weight: 400;
}
.dd-prose h2 {
  font-size: 1.32rem; font-weight: 800; color: #0d1117;
  margin: 48px 0 16px; letter-spacing: -.018em; line-height: 1.3;
  padding-bottom: 10px; border-bottom: 1.5px solid #f1f5f9;
}
.dd-prose h2:first-child { margin-top: 0; }
.dd-prose h3 {
  font-size: 1.05rem; font-weight: 700; color: #0d1117;
  margin: 32px 0 10px; letter-spacing: -.01em;
}
.dd-prose p {
  margin: 0 0 22px; color: #374151;
}
.dd-prose p:last-child { margin-bottom: 0; }
.dd-prose ul, .dd-prose ol {
  padding-left: 24px; margin: 0 0 22px;
}
.dd-prose li {
  margin-bottom: 8px; color: #374151; line-height: 1.75;
}
.dd-prose strong { font-weight: 700; color: #1e293b; }
.dd-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.dd-prose a:hover { opacity: .8; }
.dd-prose hr {
  border: none; border-top: 1px solid #e5e7eb; margin: 40px 0;
}

/* Callout boxes */
.dd-callout {
  border-radius: 12px; padding: 16px 20px 16px 18px;
  margin: 28px 0; display: flex; gap: 14px; align-items: flex-start;
}
.dd-callout-icon {
  width: 22px; height: 22px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; font-size: .75rem;
  flex-shrink: 0; margin-top: 1px;
}
.dd-callout-body { flex: 1; }
.dd-callout-title { font-size: .78rem; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.dd-callout-text  { font-size: .9rem; line-height: 1.7; color: inherit; margin: 0; }
.dd-callout--amber {
  background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e;
}
.dd-callout--amber .dd-callout-icon { background: #fde68a; color: #b45309; }
.dd-callout--blue {
  background: #eff6ff; border: 1px solid #bfdbfe;
  color: #1e40af;
}
.dd-callout--blue .dd-callout-icon { background: #bfdbfe; color: #2563eb; }
.dd-callout--green {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #14532d;
}
.dd-callout--green .dd-callout-icon { background: #bbf7d0; color: #16a34a; }
.dd-callout--red {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #7f1d1d;
}
.dd-callout--red .dd-callout-icon { background: #fecaca; color: #dc2626; }

.dd-callout-text a { color: inherit; }

/* Table style */
.dd-table-outer { overflow-x: auto; margin: 24px 0; border-radius: 10px; border: 1px solid #e2e8f0; }
.dd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dd-table th { background: #f8fafc; font-weight: 700; color: #374151; padding: 11px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.dd-table td { padding: 10px 16px; color: #374151; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.dd-table tr:last-child td { border-bottom: none; }
.dd-table-badge { font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 40px; white-space: nowrap; }

/* Footer row of article */
.dd-article-foot {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.dd-contact-note { font-size: .82rem; color: #64748b; }
.dd-contact-note a { color: var(--primary); text-decoration: none; }

/* TOC (right) */
.dd-toc {
  position: sticky; top: 90px; align-self: flex-start;
  height: fit-content; padding-top: 4px;
}
.dd-toc-title {
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: #94a3b8; margin-bottom: 10px; display: block;
}
.dd-toc-list { list-style: none; padding: 0; margin: 0; }
.dd-toc-list li { margin-bottom: 2px; }
.dd-toc-link {
  display: block; font-size: .78rem; color: #94a3b8; text-decoration: none;
  padding: 4px 8px; border-radius: 6px; border-left: 2px solid transparent;
  transition: all .15s; line-height: 1.4;
}
.dd-toc-link:hover { color: var(--dark); background: #f1f5f9; }
.dd-toc-link.active { color: var(--primary); border-left-color: var(--primary); background: #eff6ff; font-weight: 600; }
.dd-toc-list li.sub .dd-toc-link { padding-left: 16px; font-size: .74rem; }

/* ── Related ── */
.dd-related {
  background: #fff; border-top: 1px solid #eef0f4;
  padding: 64px 0 80px;
}
.dd-related-hdr {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 10px;
}
.dd-related-title { font-size: 1.2rem; font-weight: 800; color: #0d1117; letter-spacing: -.02em; }
.dd-related-all { font-size: .8rem; font-weight: 700; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: gap .18s; }
.dd-related-all:hover { gap: 9px; }
.dd-related-card {
  background: #fff; border: 1.5px solid #e8edf5;
  border-radius: 14px; padding: 22px 24px; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .2s; text-decoration: none;
}
.dd-related-card:hover {
  box-shadow: 0 8px 32px rgba(15,23,42,.08); transform: translateY(-3px);
  border-color: #bfdbfe;
}
.dd-related-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dd-related-card-date { font-size: .72rem; color: #94a3b8; margin-left: auto; }
.dd-related-card-title { font-size: .95rem; font-weight: 700; color: #0d1117; line-height: 1.4; }
.dd-related-card-excerpt { font-size: .84rem; color: #64748b; line-height: 1.7; flex: 1; }
.dd-related-card-cta { font-size: .78rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; }

/* ── Responsive ── */
@media (max-width: 1059px) {
  /* TOC gizlenince hero ile aynı 720px kolon */
  .dd-body-wrap { grid-template-columns: 1fr; max-width: 720px; }
  .dd-toc { display: none; }
}
@media (max-width: 767px) {
  .dd-hero  { padding: 48px 0 40px; }
  .dd-layout { padding: 32px 0 56px; }
  .dd-body-wrap { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .dd-share-end { padding: 40px 0; }
  .dd-share-end-title { font-size: 1.2rem; }
  .dd-prose { font-size: .96rem; }
  .dd-prose h2 { font-size: 1.18rem; }
  .dd-prose h3 { font-size: .98rem; }
  .dd-related { padding: 40px 0 56px; }
}
@media (max-width: 575px) {
  .dd-hero-inner { padding: 0 16px; }
  .dd-hero-title { font-size: 1.75rem; }
  .dd-hero-lead  { font-size: .96rem; }
  .dd-callout { flex-direction: column; gap: 8px; padding: 14px 16px; }
  .dd-callout-icon { display: none; }
  .dd-article-foot { flex-direction: column; align-items: flex-start; }
}
