/* ==========================================================================
   Önce Öğrenci — Blog detay
   blog.css'in üstüne yüklenir; kenar sütunundaki popüler ve bülten kartları
   ile alttaki ilham şeridi oradan gelir.
   ========================================================================== */

/* ==========================================================================
   1. Hero
   ========================================================================== */
.bd-hero {
  position: relative;
  padding: calc(var(--nav-h) + 44px) 0 58px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(46% 64% at 80% 36%, rgba(240, 91, 69, 0.2), transparent 68%),
    radial-gradient(42% 62% at 6% 4%, rgba(58, 92, 160, 0.16), transparent 70%),
    linear-gradient(162deg, #050a14 0%, #070d18 52%, #17070c 100%);
}

.bd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.bd-hero .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.84rem;
  font-weight: 600;
}

.bd-hero .crumbs li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.bd-hero .crumbs a {
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s ease;
}

.bd-hero .crumbs a:hover {
  color: #fff;
}

.bd-hero .crumbs li:not(:last-child)::after {
  flex: none;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.25);
  content: "/";
}

.bd-hero .crumbs li:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.bd-hero .bl-etiket {
  margin-bottom: 16px;
}

.bd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  font-weight: 600;
}

.bd-meta__sure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bd-meta__sure svg {
  width: 14px;
  height: 14px;
}

.bd-hero h1 {
  max-width: 17ch;
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.02em;
}

.bd-hero__ozet {
  max-width: 48ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.68;
}

/* ------------------------------------------------------------------ yazar */
.bd-yazar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.bd-yazar__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffb3a5;
  background: rgba(217, 58, 40, 0.18);
}

.bd-yazar__avatar svg {
  width: 20px;
  height: 20px;
}

.bd-yazar__yazi {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bd-yazar__yazi strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.bd-yazar__yazi span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ----------------------------------------------------------------- görsel */
.bd-hero__gorsel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
}

.bd-hero__gorsel img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ==========================================================================
   2. Sahne ve düzen
   ========================================================================== */
.bd-stage {
  padding: 46px 0 72px;
  background: var(--bl-page);
}

.bd-duzen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

/* ==========================================================================
   3. Yazı
   ========================================================================== */
.bd-yazi {
  min-width: 0;
  padding: 34px 36px 38px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(12, 18, 44, 0.08);
}

.bd-giris {
  color: var(--bl-ink);
  font-size: 1rem;
  line-height: 1.78;
}

.bd-bolum {
  margin-top: 32px;
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

.bd-bolum:focus {
  outline: none;
}

.bd-bolum h2 {
  margin-bottom: 12px;
  color: var(--bl-ink);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bd-bolum p {
  color: var(--bl-muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.bd-bolum p + p {
  margin-top: 14px;
}

/* --------------------------------------------------------------- alıntı */
.bd-alinti {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 22px;
  border-left: 3px solid var(--bl-coral);
  border-radius: 14px;
  background: var(--bl-red-soft);
}

.bd-alinti svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: rgba(217, 58, 40, 0.4);
}

.bd-alinti p {
  color: var(--bl-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

/* -------------------------------------------------------- yazı içi görsel */
.bd-gorsel {
  display: block;
  height: 260px;
  margin-top: 20px;
  border-radius: 16px;
}

/* ----------------------------------------------------------- numaralı liste */
.bd-numarali {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  list-style: none;
  counter-reset: bd-sira;
}

.bd-numarali li {
  position: relative;
  padding-left: 40px;
  color: var(--bl-muted);
  font-size: 0.92rem;
  line-height: 1.66;
  counter-increment: bd-sira;
}

.bd-numarali li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--btn);
  content: counter(bd-sira);
  font-size: 0.74rem;
  font-weight: 800;
}

.bd-numarali b {
  color: var(--bl-ink);
  font-weight: 700;
}

/* ------------------------------------------------------------------- not */
.bd-not {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(217, 58, 40, 0.18);
  border-radius: 16px;
  background: var(--bl-red-soft);
}

.bd-not__ikon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--btn);
}

.bd-not__ikon svg {
  width: 19px;
  height: 19px;
}

.bd-not__yazi {
  color: var(--bl-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.bd-not__yazi strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bl-red);
  font-size: 0.96rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------- sss */
.bd-sss {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.bd-sss__oge {
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bd-sss__oge.is-acik {
  border-color: rgba(217, 58, 40, 0.28);
  box-shadow: 0 14px 32px rgba(12, 18, 44, 0.08);
}

.bd-sss__oge button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 0;
  color: var(--bl-ink);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.bd-sss__oge button svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--bl-muted);
  transition: transform 0.26s ease, color 0.2s ease;
}

.bd-sss__oge button:focus-visible {
  outline: 2px solid rgba(217, 58, 40, 0.5);
  outline-offset: -3px;
}

.bd-sss__oge.is-acik button svg {
  color: var(--bl-red);
  transform: rotate(180deg);
}

/* yükseklik ölçmeden yumuşak açılış */
.bd-sss__govde {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.bd-sss__oge.is-acik .bd-sss__govde {
  grid-template-rows: 1fr;
}

.bd-sss__govde > p {
  overflow: hidden;
  padding: 0 18px;
  color: var(--bl-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.bd-sss__oge.is-acik .bd-sss__govde > p {
  padding-bottom: 16px;
}

/* ==========================================================================
   4. Kenar sütunu
   ========================================================================== */
.bd-yan {
  display: grid;
  gap: 20px;
  align-content: start;
}

/* --------------------------------------------------------- içindekiler */
/* yapışkan değil: kaydırırken alttaki kartların üstüne biniyordu */
.bd-icindekiler {
  padding: 20px 18px;
  border: 1px solid var(--bl-line);
  border-radius: 18px;
  background: #fff;
}

.bd-icindekiler h2 {
  margin-bottom: 12px;
  color: var(--bl-ink);
  font-size: 1rem;
  font-weight: 800;
}

.bd-icindekiler ol {
  display: grid;
  gap: 2px;
  list-style: none;
}

.bd-icindekiler a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  color: var(--bl-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
}

.bd-icindekiler a:hover {
  color: var(--bl-ink);
  background: var(--bl-soft);
}

.bd-toc__no {
  display: grid;
  width: 21px;
  height: 21px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  color: var(--bl-muted);
  background: var(--bl-soft);
  font-size: 0.7rem;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

/* okunan bölüm */
.bd-icindekiler li.is-aktif a {
  color: var(--bl-red);
  background: var(--bl-red-soft);
}

.bd-icindekiler li.is-aktif .bd-toc__no {
  color: #fff;
  background: var(--btn);
}

/* ---------------------------------------------------------------- paylaş */
.bd-paylas {
  padding: 20px 18px;
  border: 1px solid var(--bl-line);
  border-radius: 18px;
  background: #fff;
}

.bd-paylas h2 {
  margin-bottom: 14px;
  color: var(--bl-ink);
  font-size: 1rem;
  font-weight: 800;
}

.bd-paylas__satir {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bd-paylas__satir a,
.bd-paylas__satir button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  color: var(--bl-ink);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bd-paylas__satir svg {
  width: 18px;
  height: 18px;
}

.bd-paylas__satir a:hover,
.bd-paylas__satir button:hover {
  border-color: rgba(217, 58, 40, 0.34);
  color: var(--bl-red);
  background: var(--bl-red-soft);
  transform: translateY(-2px);
}

.bd-paylas__satir a:focus-visible,
.bd-paylas__satir button:focus-visible {
  outline: 2px solid rgba(217, 58, 40, 0.5);
  outline-offset: 2px;
}

.bd-paylas__durum {
  min-height: 1em;
  margin-top: 10px;
  color: var(--bl-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   5. İlgili içerikler
   ========================================================================== */
.bd-ilgili {
  margin-top: 34px;
  padding: 26px 28px 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(12, 18, 44, 0.08);
}

.bd-ilgili__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.bd-ilgili__head h2 {
  color: var(--bl-ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.bd-tumu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bl-red);
  font-size: 0.85rem;
  font-weight: 700;
}

.bd-tumu svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

.bd-tumu:hover svg {
  transform: translateX(4px);
}

.bd-ilgili__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bd-mini {
  border: 1px solid var(--bl-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.bd-mini:hover {
  border-color: rgba(217, 58, 40, 0.3);
  box-shadow: 0 18px 40px rgba(12, 18, 44, 0.1);
  transform: translateY(-3px);
}

.bd-mini > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 10px;
  color: inherit;
}

.bd-mini__gorsel {
  position: relative;
  display: block;
  height: 132px;
  border-radius: 12px;
}

.bd-mini__govde {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 6px 6px;
}

.bd-mini__govde strong {
  display: block;
  color: var(--bl-ink);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.36;
}

.bd-mini__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--bl-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.bd-mini__sure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bd-mini__sure svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   6. Duyarlı
   ========================================================================== */
@media (max-width: 1180px) {
  .bd-duzen {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 22px;
  }

  .bd-yazi {
    padding: 30px 28px 32px;
  }

  .bl-populer__liste a {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .bl-populer__gorsel {
    display: none;
  }
}

@media (max-width: 1000px) {
  .bd-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .bd-hero h1 {
    max-width: 24ch;
  }

  .bd-duzen {
    grid-template-columns: minmax(0, 1fr);
  }

  /* tek sütuna inince içindekiler yazının üstünde tam genişlikte dursun */
  .bd-yan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-icindekiler {
    grid-column: 1 / -1;
  }

  .bd-icindekiler ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* tek sütunda kartlar daralmasın */
  .bd-ilgili__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .bd-hero {
    padding: calc(var(--nav-h) + 30px) 0 44px;
  }

  .bd-hero__gorsel img {
    height: 260px;
  }

  .bd-yazi {
    padding: 26px 20px 28px;
  }

  .bd-ilgili {
    padding: 22px 18px 24px;
  }

  .bd-ilgili__liste {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .bd-hero__gorsel img {
    height: 210px;
  }

  .bd-gorsel {
    height: 190px;
  }

  .bd-alinti {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bd-not {
    flex-direction: column;
  }

  .bd-yan,
  .bd-icindekiler ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-icindekiler a,
  .bd-toc__no,
  .bd-mini,
  .bd-paylas__satir a,
  .bd-paylas__satir button,
  .bd-sss__govde,
  .bd-sss__oge button svg,
  .bd-tumu svg {
    transition: none;
  }
}
