/* ============================================================
   BLOG POST (single) — premium dark + neon
   Sayfa: /blog/{slug}/  (blog/render.php)
   ============================================================ */

/* ---------- HERO ---------- */
.bp-hero {
  position: relative;
  padding: 120px 0 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.bp-hero .breadcrumb {
  margin-bottom: 22px;
}
/* Magazine-style category label - thin neon rule + uppercase text */
.bp-cat-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 22px;
}
.bp-cat-rule {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon));
  flex-shrink: 0;
}
.bp-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.2s, transform 0.2s;
}
.bp-cat-link svg {
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.bp-cat-link:hover {
  color: #fff;
}
.bp-cat-link:hover svg {
  opacity: 1;
  transform: rotate(-8deg);
}
.bp-title {
  font-family: 'Manrope', 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 1180px;
  margin: 0 0 18px;
}
.bp-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 1180px;
  margin: 0 0 24px;
}
.bp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.bp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bp-meta-item svg { color: var(--neon); }

.bp-cover {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-width: 1180px;
}
.bp-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2, 6, 23, 0.4));
  pointer-events: none;
}
.bp-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- CONTENT GRID + TOC (accordion, yazı üstünde) ---------- */
.bp-content-section { padding: 60px 0 40px; }
.bp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin: 0 auto;
}

.bp-toc {
  margin: 0 0 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.bp-toc[open] {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.03);
}
.bp-toc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.bp-toc-summary::-webkit-details-marker { display: none; }
.bp-toc-summary:hover { background: rgba(255, 255, 255, 0.02); }
.bp-toc-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}
.bp-toc-label svg { color: var(--neon); }
.bp-toc-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin-left: 4px;
}
.bp-toc-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s;
}
.bp-toc[open] .bp-toc-chevron {
  transform: rotate(180deg);
  color: var(--neon);
}
.bp-article .bp-toc-list,
.bp-toc-list {
  list-style: none;
  counter-reset: tocnum;
  padding: 4px 20px 14px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.bp-article .bp-toc-list li,
.bp-toc-list li {
  counter-increment: tocnum;
  position: relative;
  padding: 8px 0 8px 32px;
  margin: 0;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.bp-toc-list li:first-child { border-top: none; }
.bp-article .bp-toc-list li::marker,
.bp-toc-list li::marker { content: none; }
.bp-toc-list li::before {
  content: counter(tocnum, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.05em;
}
.bp-toc-list a {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.bp-toc-list a:hover { color: var(--text); }

/* ---------- ARTICLE BODY ---------- */
.bp-article {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto;
}
.bp-article > p:first-of-type.lead,
.bp-article .lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
}
.bp-article h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 48px 0 16px;
  scroll-margin-top: 100px;
}
.bp-article h2:first-child { margin-top: 0; }
.bp-article h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 32px 0 12px;
}
.bp-article p { margin: 0 0 18px; color: var(--text); }
.bp-article a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
  transition: border-color 0.2s, color 0.2s;
}
.bp-article a:hover {
  color: #fff;
  border-bottom-color: var(--neon);
}
.bp-article strong { color: #fff; font-weight: 700; }
.bp-article ul,
.bp-article ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.bp-article li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.bp-article ul li::marker { color: var(--neon); }
.bp-article ol li::marker { color: var(--neon); font-weight: 700; }

.bp-article blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(34, 211, 238, 0.05);
  border-left: 3px solid var(--neon);
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
}
.bp-article img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin: 24px 0;
}
.bp-article pre,
.bp-article code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
}
.bp-article code {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.bp-article pre {
  padding: 18px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
}

/* ---------- SHARE ---------- */
.bp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.bp-share-label {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 8px;
}
.bp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.bp-share-btn:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--neon);
  transform: translateY(-2px);
}

/* ---------- RELATED ---------- */
.bp-related {
  padding: 80px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 880px) { .bp-related-grid { grid-template-columns: 1fr; } }

.bp-related-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.88), rgba(10, 16, 32, 0.88));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, border-color 0.25s, box-shadow 0.25s;
}
.bp-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45);
}
.bp-related-img {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.bp-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.bp-related-card:hover .bp-related-img img { transform: scale(1.04); }
.bp-related-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bp-related-cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 10px;
}
.bp-related-body h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0 0 10px;
}
.bp-related-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 14px;
  flex: 1;
}
.bp-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- MOBILE ADJUSTMENTS ---------- */
@media (max-width: 640px) {
  .bp-hero { padding: 96px 0 28px; }
  .bp-cat-rule { width: 22px; }
  .bp-cat-link { font-size: 11px; letter-spacing: 0.2em; }
  .bp-title { font-size: 28px; }
  .bp-lead { font-size: 15.5px; }
  .bp-content-section { padding: 36px 0 24px; }
  .bp-article { font-size: 15.5px; line-height: 1.72; }
  .bp-article h2 { font-size: 22px; margin: 36px 0 12px; }
  .bp-article h3 { font-size: 17.5px; }
  .bp-share { gap: 8px; }
  .bp-related { padding: 56px 0; }
}
