/* ============================================================
   MAKALE DETAY SAYFASI — makale-detay.css
   ============================================================ */

/* ── HEADER / GERİ LİNKİ ───────────────────────────────── */
.md-header {
  padding: 100px 0 0;
}

.md-header__inner {
  display: flex;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6e6e6;
}

.md-header__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #ffed00;
  padding: 20px 25px 5px 25px;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.md-header__back:hover {
  background: #e8d600;
  color: #1a1a1a;
}

/* ── ANA BÖLÜM ─────────────────────────────────────────── */
.md-section {
  padding: 48px 0 80px;
}

/* ── İKİ SÜTUN ─────────────────────────────────────────── */
.md-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   SOL SIDEBAR — YAZAR KARTI
   ============================================================ */
.md-sidebar {
  position: sticky;
  top: 120px;
}

/* Kart: beyaz arka plan + shadow */
.md-author-card {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

/* ── Üst bölüm: foto + isim/unvan/email ─────────────────── */
.md-author-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 20px;
}

.md-author-photo {
  flex-shrink: 0;
  width: 62px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e0e0e0;
}

.md-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.md-author-initials {
  flex-shrink: 0;
  width: 62px;
  aspect-ratio: 3 / 4;
  background: #1a1a1a;
  color: #ffed00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 26px;
  font-weight: 900;
}

.md-author-info {
  display: flex;
  flex-direction: column;
}

.md-author-name {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.md-author-unvan {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.md-author-eposta {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* ── Üst bölüm altı çizgisi ──────────────────────────────── */
.md-author-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 0 22px;
}

/* ── Meta satırları (açık gri arka plan) ─────────────────── */
.md-author-meta {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.md-author-meta__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  color: #000;
  line-height: 1.5;
}

.md-author-meta__icon {
  flex-shrink: 0;
  color: #888;
  margin-top: 2px;
}

.md-author-meta__row strong {
  font-weight: 600;
}

/* ── Butonlar ────────────────────────────────────────────── */
.md-author-btns {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* "Yazarın Özgeçmişi" — gri dolgu */
.md-btn-bio {
  display: block;
  width: 100%;
  text-align: center;
  background: #ebebeb;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s;
  box-sizing: border-box;
  letter-spacing: 0.01em;
}

.md-btn-bio:hover {
  background: #ddd;
  color: #1a1a1a;
}

.md-btn-bio.is-disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

/* "Yazarın Tüm Makaleleri" — sarı */
.md-btn-makaleler {
  display: block;
  text-align: center;
  background: #ffed00;
  color: #1a1a1a;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.md-btn-makaleler:hover {
  background: #e8d600;
  color: #1a1a1a;
}

/* ── Biyografi Modalı ────────────────────────────────────── */
.md-bio-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.md-bio-modal-overlay.is-open {
  display: flex;
}

.md-bio-modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: mdModalIn 0.22s ease;
}

@keyframes mdModalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.md-bio-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eee;
}

.md-bio-modal__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.md-bio-modal__photo {
  width: 50px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0e0e0;
}

.md-bio-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.md-bio-modal__initials {
  width: 50px;
  aspect-ratio: 3 / 4;
  background: #1a1a1a;
  color: #ffed00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.md-bio-modal__name {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
}

.md-bio-modal__unvan {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.md-bio-modal__close {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
  padding: 0;
}

.md-bio-modal__close:hover { color: #1a1a1a; }

.md-bio-modal__body {
  padding: 22px 24px 28px;
  font-size: 15px;
  color: #333;
  line-height: 1.75;
}

/* İletişim / kurum bilgi listesi */
.md-bio-info {
  list-style: none;
  margin: 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.md-bio-info__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.md-bio-info__icon {
  flex-shrink: 0;
  color: #888;
  margin-top: 1px;
}

.md-bio-info__row a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.15s;
}

.md-bio-info__row a:hover {
  color: #555;
}

/* Biyografi ile info arasındaki ayraç */
.md-bio-divider {
  height: 1px;
  background: #eee;
  margin: 18px 0;
}

/* Biyografi metni */
.md-bio-text {
  font-size: 16px;
  color: #000;
  line-height: 1.75;
}

/* ============================================================
   SAĞ: MAKALE İÇERİK
   ============================================================ */
.md-main {
  min-width: 0;
}

/* ── Başlık + Sayı aynı satır ───────────────────────────── */
.md-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.md-title-row .md-title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

/* ── Sayı / cilt badge ──────────────────────────────────── */
.md-issue-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 4px;
}

.md-issue-badge__item {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.md-issue-badge__item strong {
  font-weight: 600;
  color: #000;
}

/* ── Özet + ilk görsel ──────────────────────────────────── */
.md-ozet-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.md-ozet-img {
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

.md-ozet-img img {
  display: block;
  transition: transform 0.3s;
}

/* Masaüstü + tablet: ilk görsel dikey (3:4) oran, cover */
@media (min-width: 768px) {
  .md-ozet-img {
    width: 220px;
    max-width: 220px;
    aspect-ratio: 3 / 4;
  }

  .md-ozet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Mobil: orijinal en-boy oranı, tam sütun */
@media (max-width: 767px) {
  .md-ozet-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
  }

  .md-ozet-img img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: unset;
  }
}

.md-ozet-img:hover img {
  transform: scale(1.03);
}

/* ── Kategori etiketi ───────────────────────────────────── */
.md-category-tag {
  display: inline-block;
  background: #1a1a1a;
  color: #ffed00;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  margin-bottom: 16px;
}

/* ── Başlık ─────────────────────────────────────────────── */
.md-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
}

/* ── Özet ───────────────────────────────────────────────── */
.md-ozet {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #555;
  font-style: italic;
  border-left: 3px solid #ffed00;
  padding: 4px 0 4px 16px;
  line-height: 1.7;
}

/* ── İçerik ─────────────────────────────────────────────── */
.md-content {
  font-size: 18px;
  line-height: 1.85;
  color: #1a1a1a;
}

.md-content p   { margin-bottom: 1.2em; }
.md-content img { max-width: 100%; height: auto; display: block; margin: 24px 0; }
.md-content h2,
.md-content h3  { font-family: 'Barlow', sans-serif; font-weight: 800; margin-top: 1.5em; }

/* ── Görseller galerisi ─────────────────────────────────── */
.md-gallery {
  margin-top: 36px;
}

.md-gallery__label {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 10px;
}

.md-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.md-gallery__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}

.md-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.md-gallery__item:hover img {
  transform: scale(1.05);
}

/* ── Geri butonu ────────────────────────────────────────── */
.md-back {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e6e6e6;
}

.md-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  text-decoration: none !important;
  transition: color 0.15s;
}

.md-back__btn:hover { color: #555; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .md-layout              { grid-template-columns: 340px 1fr; gap: 36px; }
}

@media (max-width: 1023px) {
  .md-layout              { grid-template-columns: 260px 1fr; gap: 28px; }
  .md-title               { font-size: 1.3rem; }
}

@media (max-width: 767px) {
  .md-header              { padding-top: 48px; }
  .md-header__back        { font-size: 1.35rem; padding: 12px 16px 4px; }
  .md-section             { padding: 28px 0 48px; }
  .md-layout              { grid-template-columns: 1fr; gap: 0; }
  .md-sidebar             { position: static; margin-top: 40px; margin-bottom: 0; order: 2; }
  .md-main                { order: 1; }
  .md-issue-badge         { flex-direction: row; align-items: center; gap: 12px; }
  .md-title-row           { flex-direction: column; gap: 8px; }
  .md-ozet-wrap           { flex-direction: column; align-items: stretch; }
  .md-title               { font-size: 1.15rem; }
  .md-gallery__grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .md-author-photo,
  .md-author-initials     { width: 54px; aspect-ratio: 3 / 4; font-size: 22px; }
  .md-gallery__grid       { grid-template-columns: 1fr; }
}
