/* SELF'S QR — blog listesi ve yazı sayfası (home.css üzerine) */

/* ============ Breadcrumb ============ */
.crumbs { margin-bottom: 1.4rem; font-size: 0.82rem; color: var(--dim); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; }
.crumbs li + li::before { content: "/"; color: rgba(148, 197, 255, 0.3); }
.crumbs a { color: var(--mute); transition: color 0.15s; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] {
  color: var(--ink);
  max-width: min(32rem, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* ============ Liste hero ============ */
.bhero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.bhero .hero-floor { height: 22rem; bottom: -7rem; opacity: 0.7; }
.bhero-in { position: relative; z-index: 2; }
.bhero h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); max-width: 46rem; }
.bhero .lead { max-width: 40rem; margin-bottom: 1.8rem; }

.bfilter { display: grid; gap: 1rem; }
.bsearch {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 30rem;
}
.bsearch svg { position: absolute; left: 1rem; color: var(--dim); pointer-events: none; }
.bsearch input {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem 0 2.9rem;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(10, 19, 34, 0.75);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bsearch input::placeholder { color: var(--dim); }
.bsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(56, 182, 255, 0.15); }

.bchips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bchips::-webkit-scrollbar { display: none; }
.bchips button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mute);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bchips button:hover { color: var(--ink); border-color: var(--line-2); }
.bchips button em {
  font-style: normal;
  font-size: 0.7rem;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(148, 197, 255, 0.1);
  text-align: center;
}
.bchips button.on { background: var(--grad); border-color: transparent; color: #04121f; }
.bchips button.on em { background: rgba(4, 18, 31, 0.18); }

/* ============ Liste ============ */
.blist { padding-top: clamp(2rem, 5vw, 3rem); }
.bfeat {
  margin-bottom: 1.1rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(56, 182, 255, 0.35);
  background:
    radial-gradient(560px 240px at 100% 0%, rgba(56, 182, 255, 0.12), transparent 60%),
    var(--card);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.35s;
}
.bfeat:hover { transform: translateY(-3px); box-shadow: 0 28px 64px -26px rgba(56, 182, 255, 0.4); }
.bfeat:hover .cover-orb { transform: scale(1.1); opacity: 0.72; }
.bfeat:hover .cover-tile { transform: translate(-50%, -50%) scale(1.06) rotate(-4deg); }
.bfeat-link { display: grid; }
.bfeat-cover { border-bottom: 1px solid var(--line); }
.bfeat-cover .cover-tile { width: 5.4rem; height: 5.4rem; border-radius: 1.4rem; }
.bfeat-cover .cover-tile svg { width: 36px; height: 36px; }
.bfeat-body { display: flex; flex-direction: column; padding: clamp(1.4rem, 4vw, 2.2rem); }
.bfeat-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  line-height: 1.15;
}
.bfeat-excerpt { color: var(--mute); margin-bottom: 1.4rem; max-width: 36rem; }
.bfeat .bcard-foot { border-top: 0; padding-top: 0; }
.bfeat .bcard-foot .btn { min-height: 44px; padding: 0.6rem 1.2rem; }

.bempty {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--mute);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.bempty[hidden] { display: none; }
.bempty svg { color: var(--dim); }
.bempty p { margin: 0 0 0.4rem; }
[data-cat].is-hidden { display: none; }

/* ============ Okuma çubuğu ============ */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, #67e8f9, #38b6ff, #818cf8);
  box-shadow: 0 0 12px rgba(56, 182, 255, 0.6);
}

/* ============ Yazı hero ============ */
.post-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.6rem) 0 0;
}
.post-hero-in { position: relative; z-index: 2; max-width: 52rem; }
.post-cat { margin: 0 0 1rem; }
.post-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.post-hero .lead { max-width: 44rem; margin-bottom: 1.6rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  padding-bottom: clamp(1.6rem, 4vw, 2.4rem);
}
.post-author { display: inline-flex; align-items: center; gap: 0.7rem; }
.post-author img { width: 2.4rem; height: 2.4rem; border-radius: 10px; box-shadow: 0 0 16px rgba(56, 182, 255, 0.35); }
.post-author span { display: grid; line-height: 1.25; }
.post-author b { font-size: 0.92rem; font-weight: 650; }
.post-author em { font-style: normal; font-size: 0.78rem; color: var(--dim); }
.post-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.84rem; color: var(--mute); }
.post-facts > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-facts svg { color: var(--brand); }
.post-cover {
  position: relative;
  z-index: 2;
  aspect-ratio: 21 / 8;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(2, 8, 20, 0.95), 0 0 70px -30px rgba(56, 182, 255, 0.45);
}
.post-cover .cover-tile { width: 6rem; height: 6rem; border-radius: 1.6rem; }
.post-cover .cover-tile svg { width: 40px; height: 40px; }
.post-cover .cover-word { font-size: clamp(2.6rem, 9vw, 6rem); left: 1.4rem; bottom: 0.5rem; }

/* ============ Yazı düzeni ============ */
.post-layout {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.8rem, 5vw, 3.2rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.post-main { min-width: 0; max-width: 46rem; }

.toc {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0 1.1rem;
}
.toc summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 54px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { color: var(--brand); }
.toc summary i {
  margin-left: auto;
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--brand);
  transition: transform 0.25s var(--ease);
}
.toc[open] summary i { transform: rotate(45deg); }
.toc ol {
  counter-reset: toc;
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--mute);
  transition: background 0.15s, color 0.15s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dim);
  padding-top: 0.1rem;
}
.toc a:hover { color: var(--ink); background: var(--card-2); }
.toc a.on { color: var(--ink); background: rgba(56, 182, 255, 0.1); }
.toc a.on::before { color: var(--brand); }

.aside-cta { display: none; }

/* ============ Yazı tipografisi ============ */
.prose { font-size: 1.06rem; line-height: 1.8; color: #c9d6e8; }
.prose > * + * { margin-top: 1.15rem; }
.prose p { margin: 0; }
.prose h2,
.prose h3,
.post-faq h2 { scroll-margin-top: 6rem; }
.prose h2 {
  position: relative;
  margin: 2.8rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  line-height: 1.2;
  color: var(--ink);
}
.prose h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
}
.prose h3 {
  margin: 2rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.prose h2 + *,
.prose h3 + * { margin-top: 0.7rem; }
.prose strong,
.prose b { color: var(--ink); font-weight: 650; }
.prose a:not(.btn) {
  color: var(--brand);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgba(56, 182, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
.prose a:not(.btn):hover { color: #7dd3fc; text-decoration-color: currentColor; }
.prose ul:not([class]),
.prose ol:not([class]) { padding-left: 1.3rem; list-style: revert; }
.prose ul:not([class]) li + li,
.prose ol:not([class]) li + li { margin-top: 0.4rem; }

.prose .tldr {
  position: relative;
  padding: 1.3rem 1.4rem 1.2rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(56, 182, 255, 0.35);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(56, 182, 255, 0.14), transparent 60%),
    rgba(10, 19, 34, 0.8);
}
.prose .tldr > strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.prose .tldr > strong::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: var(--glow);
}
.prose .tldr ul { display: grid; gap: 0.5rem; }
.prose .tldr li { position: relative; padding-left: 1.3rem; font-size: 0.98rem; line-height: 1.6; }
.prose .tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.prose .checks { display: grid; gap: 0.6rem; }
.prose .checks li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.65;
}
.prose .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2338b6ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5'/%3E%3C/svg%3E") center / 0.85rem no-repeat,
    rgba(56, 182, 255, 0.12);
  border: 1px solid rgba(56, 182, 255, 0.3);
}

.prose .steps { counter-reset: step; display: grid; gap: 0.7rem; }
.prose .steps li {
  counter-increment: step;
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 3.6rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  line-height: 1.6;
}
.prose .steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: #04121f;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--glow);
}

.prose .callout {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--brand);
  background: rgba(56, 182, 255, 0.06);
}
.prose .callout > strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--display);
  font-size: 0.98rem;
}
.prose .callout p { font-size: 0.97rem; line-height: 1.7; }
.prose .callout.tip { border-left-color: var(--ok); background: rgba(52, 211, 153, 0.06); }
.prose .callout.warn { border-left-color: var(--warn); background: rgba(251, 191, 36, 0.06); }

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--brand);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

.prose .table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(5, 10, 19, 0.6);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}
.prose th,
.prose td { padding: 0.75rem 0.95rem; text-align: left; vertical-align: top; }
.prose thead th {
  position: sticky;
  top: 0;
  background: #0c1729;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  border-bottom: 1px solid var(--line-2);
}
.prose tbody tr + tr td { border-top: 1px solid rgba(148, 197, 255, 0.08); }
.prose tbody tr:hover td { background: rgba(56, 182, 255, 0.04); }
.prose td:first-child { color: var(--ink); font-weight: 600; }

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.4rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(56, 182, 255, 0.4);
  background:
    radial-gradient(480px 160px at 100% 0%, rgba(56, 182, 255, 0.16), transparent 55%),
    rgba(10, 19, 34, 0.85);
}
.inline-cta-copy { display: grid; gap: 0.2rem; min-width: min(100%, 18rem); }
.inline-cta-copy strong { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.inline-cta-copy span { font-size: 0.9rem; color: var(--mute); line-height: 1.5; }
.prose .inline-cta { margin-top: 2rem; margin-bottom: 0.4rem; }

/* ============ Yazı sonu ============ */
.post-faq { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.post-faq h2 { font-size: clamp(1.5rem, 3.4vw, 1.95rem); margin-bottom: 1.2rem; }
.post-faq .faq { max-width: none; }

.post-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding: 1.2rem 0;
  border-block: 1px solid var(--line);
}
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-tags li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--mute);
}
.share { position: relative; display: flex; align-items: center; gap: 0.4rem; }
.share-label { margin-right: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--dim); }
.share-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--mute);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.share-btn:hover { color: var(--brand); border-color: rgba(56, 182, 255, 0.5); transform: translateY(-2px); }
.share-toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: var(--ok);
  color: #04121f;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.share-toast.on { opacity: 1; transform: none; }

.post-cta {
  position: relative;
  overflow: hidden;
  margin-top: 2.4rem;
  padding: clamp(1.8rem, 5vw, 2.8rem);
  border-radius: var(--r-lg);
  border: 1px solid rgba(56, 182, 255, 0.35);
  background: var(--bg-2);
  text-align: center;
}
.post-cta-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 34rem;
  height: 34rem;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.post-cta > *:not(.post-cta-glow) { position: relative; }
.post-cta h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.post-cta p:not(.kicker) { max-width: 30rem; margin: 0 auto 1.5rem; color: var(--mute); }
.post-cta .cta-row { justify-content: center; margin-bottom: 0; }

.post-nav { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.post-nav-item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.2s, background 0.2s;
}
.post-nav-item:hover { border-color: rgba(56, 182, 255, 0.45); background: var(--card-2); }
.post-nav-item span { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.04em; color: var(--brand); }
.post-nav-item b { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.post-nav-item.is-next { text-align: right; }

.related { padding-top: 0; }
.related-all { margin: 1.8rem 0 0; text-align: center; }

/* ============ Ana sayfa blog bölümü ============ */
.home-blog .bfeat { margin-bottom: 0; }

/* ============ Geniş ekran ============ */
@media (min-width: 700px) {
  .bfilter { grid-template-columns: minmax(16rem, 22rem) 1fr; align-items: center; gap: 1.2rem; }
  .bchips { flex-wrap: wrap; overflow: visible; }
  .post-nav { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 920px) {
  .bfeat-link { grid-template-columns: 1.15fr 1fr; }
  .bfeat-cover { aspect-ratio: auto; min-height: 19rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .bfeat-body { justify-content: center; }
}

@media (min-width: 1080px) {
  .post-layout {
    grid-template-columns: 15.5rem minmax(0, 46rem);
    justify-content: center;
    gap: 3.5rem;
  }
  .post-aside {
    position: sticky;
    top: 5.6rem;
    align-self: start;
    display: grid;
    gap: 1rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .toc { background: transparent; border-color: transparent; padding: 0; }
  .toc summary { pointer-events: none; min-height: 40px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
  .toc summary i { display: none; }
  .toc ol { border-top: 0; padding-top: 0; }
  .aside-cta {
    display: grid;
    gap: 0.5rem;
    padding: 1.1rem;
    border-radius: var(--r);
    border: 1px solid rgba(56, 182, 255, 0.35);
    background: radial-gradient(260px 140px at 100% 0%, rgba(56, 182, 255, 0.16), transparent 60%), var(--card);
  }
  .aside-cta strong { font-family: var(--display); font-size: 0.98rem; }
  .aside-cta span { font-size: 0.82rem; line-height: 1.5; color: var(--mute); }
  .aside-cta .btn { min-height: 42px; margin-top: 0.3rem; font-size: 0.88rem; }
}

@media (max-width: 679px) {
  .post-cover { aspect-ratio: 16 / 9; }
  .prose { font-size: 1.02rem; }
  .post-end { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bfeat, .bchips button, .share-btn, .post-nav-item, .toc summary i, .share-toast { transition: none !important; }
}
