/* Blog makalesi: İçindekiler (TOC) + Kaynaklar (Sources) stilleri */

/* ===== TOC ===== */
.article-toc {
  margin: 28px 0;
  padding: 0;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  overflow: hidden;
}
.article-toc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--navy, #0b1e3f);
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
}
.article-toc-header:hover { background: rgba(11,30,63,0.04); }
.article-toc-title { display: inline-flex; gap: 8px; align-items: center; }
.article-toc-chevron { font-size: 0.85em; opacity: 0.7; }
.article-toc-list {
  margin: 0;
  padding: 8px 18px 16px 38px;
  list-style: decimal;
  color: var(--ink, #1f2937);
}
.article-toc-list li {
  margin: 6px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.article-toc-list a {
  color: var(--navy, #0b1e3f);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.15s;
}
.article-toc-list a:hover {
  border-bottom-color: var(--gold, #c9a24b);
  color: var(--gold, #c9a24b);
}

/* H2 anchor link (TOC tıklandığında smooth scroll için) */
html { scroll-behavior: smooth; }
.article-body h2[id] { scroll-margin-top: 80px; }
.article-body h3[id] { scroll-margin-top: 80px; }

/* ===== Kaynaklar ===== */
.article-sources {
  margin: 40px 0 24px;
  padding: 22px 24px;
  border: 1px solid var(--line, #e5e7eb);
  border-left: 4px solid var(--gold, #c9a24b);
  border-radius: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}
.article-sources-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #0b1e3f);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-sources-note {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted, #6b7280);
}
.article-sources-list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}
.article-sources-list li {
  margin: 8px 0;
  font-size: 0.93rem;
  line-height: 1.45;
}
.article-sources-list a {
  color: var(--navy, #0b1e3f);
  text-decoration: none;
  border-bottom: 1px solid rgba(11,30,63,0.2);
  transition: color 0.15s, border-color 0.15s;
}
.article-sources-list a:hover {
  color: var(--gold, #c9a24b);
  border-bottom-color: var(--gold, #c9a24b);
}
.article-source-host {
  color: var(--muted, #6b7280);
  font-weight: 400;
  font-size: 0.88em;
}

@media (max-width: 640px) {
  .article-toc-list { padding: 6px 14px 14px 32px; }
  .article-toc-list li { font-size: 0.92rem; }
  .article-sources { padding: 18px; }
}

/* ===== Üst mini paylaş butonu ===== */
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.as-mini {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px;
  padding: 5px 14px; border-radius: 999px;
  border: none;
  background: linear-gradient(95deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  color: #fff; font: inherit; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; line-height: 1; white-space: nowrap;
  transition: opacity .15s, transform .12s;
}
.as-mini:hover { opacity: .88; transform: translateY(-1px); }

/* ===== Okuyucu paylaşım çubuğu ===== */
.article-share {
  margin: 36px 0 24px;
  padding: 20px 22px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 70%);
}
.article-share-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.article-share-head strong { font-size: 1.02rem; color: var(--navy, #0b1e3f); }
.article-share-head .muted { font-size: 0.86rem; color: var(--muted, #6b7280); }

.article-share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.as-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line, #e5e7eb); background: #fff;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--navy, #0b1e3f);
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.as-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,30,63,.12); }
.as-btn .as-ico { font-size: 1.05em; }
.as-btn.is-ok { background: #1b7f4b; border-color: #1b7f4b; color: #fff; }

/* Instagram — markalı degrade vurgusu (öne çıkan buton) */
.as-btn.as-ig {
  color: #fff; border-color: transparent;
  background: linear-gradient(95deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
}
.as-btn.as-ig:hover { box-shadow: 0 8px 20px rgba(221,42,123,.32); }
.as-btn.as-wa { color: #075e54; }
.as-btn.as-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* ===== Paylaşım modalı (#hbs-share-modal) ===== */
.hbs-share-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.hbs-share-modal.is-open { display: flex; }
.hbs-share-backdrop { position: absolute; inset: 0; background: rgba(11,30,63,.55); backdrop-filter: blur(2px); }
.hbs-share-panel {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 24px 60px rgba(11,30,63,.32);
  animation: hbsShareIn .18s ease;
}
@keyframes hbsShareIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.hbs-share-close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 1.7rem; line-height: 1; color: var(--muted, #6b7280); cursor: pointer; border-radius: 9px;
}
.hbs-share-close:hover { background: rgba(11,30,63,.06); }
.hbs-share-panel h2 { margin: 0 4px 4px 0; font-size: 1.25rem; color: var(--navy, #0b1e3f); }
.hbs-share-sub { margin: 0 0 16px; font-size: 0.9rem; }
.hbs-share-preview { display: flex; justify-content: center; margin-bottom: 16px; }
#hbsShareCanvas {
  width: 200px; height: auto; max-width: 56%;
  border-radius: 12px; box-shadow: 0 10px 26px rgba(11,30,63,.22);
}
.hbs-share-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.hbs-sbtn {
  flex: 1 1 auto; min-width: 140px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 10px;
  border: 1px solid var(--line, #e5e7eb); background: #fff;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--navy, #0b1e3f);
  cursor: pointer; line-height: 1; transition: background .12s, color .12s, box-shadow .12s;
}
.hbs-sbtn:hover { background: rgba(11,30,63,.05); }
.hbs-sbtn.is-ok { background: #1b7f4b; border-color: #1b7f4b; color: #fff; }
.hbs-sbtn.hbs-sbtn-primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(95deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
}
.hbs-sbtn.hbs-sbtn-primary:hover { box-shadow: 0 8px 20px rgba(221,42,123,.32); }

.hbs-share-net { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 14px; border-top: 1px solid var(--line, #e5e7eb); }
.hbs-net {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line, #e5e7eb); background: #fff;
  font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--navy, #0b1e3f);
  cursor: pointer; text-decoration: none; line-height: 1; transition: background .12s, color .12s, border-color .12s;
}
.hbs-net:hover { background: var(--navy, #0b1e3f); color: #fff; border-color: var(--navy, #0b1e3f); }
.hbs-net[data-net="whatsapp"]:hover { background: #25d366; border-color: #25d366; }
.hbs-net.is-ok { background: #1b7f4b; border-color: #1b7f4b; color: #fff; }
.hbs-share-hint { margin: 14px 0 0; font-size: 0.82rem; line-height: 1.5; }

/* Kart başlık + özet düzenleme alanı */
.hbs-card-edit {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.hbs-card-input {
  width: 100%; padding: 8px 11px; box-sizing: border-box;
  border: 1px solid var(--line, #e5e7eb); border-radius: 8px;
  font: inherit; font-size: 0.86rem; color: var(--ink, #1f2937);
  background: #f8fafc; resize: vertical;
}
.hbs-card-input:focus {
  outline: none; border-color: #b58a32;
  background: #fff; box-shadow: 0 0 0 3px rgba(181,138,50,.12);
}

/* Paylaşım metni alanı */
.hbs-share-caption { margin: 0 0 16px; }
.hbs-share-caption label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy, #0b1e3f); margin-bottom: 6px; }
.hbs-share-caption label .muted { font-weight: 400; }
.hbs-share-caption textarea {
  width: 100%; min-height: 180px; padding: 10px 12px;
  border: 1px solid var(--line, #e5e7eb); border-radius: 10px;
  font: inherit; font-size: 0.86rem; line-height: 1.5; color: var(--ink, #1f2937);
  background: #f8fafc; resize: vertical;
}
.hbs-share-caption textarea:focus { outline: none; border-color: var(--navy, #0b1e3f); background: #fff; }
.hbs-share-caption-foot { display: flex; justify-content: flex-end; margin-top: 8px; }

@media (max-width: 640px) {
  .hbs-share-caption textarea { min-height: 200px; font-size: 0.92rem; }
}

@media (max-width: 640px) {
  .article-share { padding: 16px; }
  .article-share-btns .as-btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .hbs-share-panel { padding: 18px; border-radius: 14px; }
  #hbsShareCanvas { width: 150px; max-width: 44%; }
  .hbs-share-actions .hbs-sbtn { flex: 1 1 100%; }
}
