/* ============================================================
   1- GENEL TEMİZLİK & META BLOĞU
============================================================ */
.quarto-title-meta {
  display: none !important;
}

/* Üst meta satırı (Yazar - Tarih - Kaynak) */
.top-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin: 1rem 0 2rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  border-top: 1px solid;
  border-bottom: 1px solid;
}
body.quarto-dark .top-meta-row {
  border-color: rgba(255,255,255,0.15);
  color: #ccc;
}
body.quarto-light .top-meta-row {
  border-color: rgba(0,0,0,0.2);
  color: #555;
}

/* Hücre hizalama */
.top-meta-row .col-meta {
  flex: 1;
  min-width: 150px;
}
.top-meta-row .col-meta:nth-child(1) { text-align: center; }
.top-meta-row .col-meta:nth-child(2) { text-align: center; }
.top-meta-row .col-meta:nth-child(3) { text-align: center; }
.top-meta-row .col-meta:nth-child(4) { text-align: center; }
.top-meta-row .col-meta:nth-child(5) { text-align: center; }

/* Sadece rel="author" olan bağlantıları hedefle */
.top-meta-row a[rel="author"] {
  color: #6bb48d;
  font-weight: 500;      /* hafif vurgulu görünüm */
}

.top-meta-row a[rel="author"]:hover { opacity: 0.9; }

/* 🔗 Kaynak linki */
.top-meta-row a[rel="noopener"] { color: var(--link-color, #4da3ff); }

/* Mobil görünüm */
@media (max-width: 1076px) {
  .top-meta-row .col-meta { text-align: center !important; }
}

/* Küçük başlık etiketleri */
.meta-label {
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
  color: #aaa;
}

/* ============================================================
   2- DIŞ BAĞLANTILAR BLOĞU
============================================================ */
h3:has(+ ol) {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid;
}
body.quarto-dark h3:has(+ ol) { border-top-color: rgba(255,255,255,0.25); }
body.quarto-light h3:has(+ ol) { border-top-color: rgba(0,0,0,0.2); }

ol a { color: var(--bs-link-color, #4da3ff); }

/* Dış bağlantı listesi mobil uyumlu hale gelsin */
ol {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;  /* çok uzun kelimelerde bile kırar */
  white-space: normal;    /* tek satırda kalmasın */
}

/* Eğer sadece “Dış Bağlantılar” başlığı altındaki listeye uygulasın diyorsan */
h3 + ol {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

/* ============================================================
   3- BLOG KARTLARI (LISTING)
============================================================ */

.card-body.post-contents .listing-title p {
  text-align: left;
  margin: 0;
  text-indent: 0em;
}

/* Kartlara genel opacity ve geçiş efekti */
.quarto-grid-item.card {
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover efekti */
.quarto-grid-item.card:hover {
  opacity: 1.0;
  transform: translateY(-3px); /* Hafif yukarı kalkma efekti */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Dark tema için gölgeyi biraz daha yumuşat */
body.quarto-dark .quarto-grid-item.card:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Kart genel yapı */
.quarto-grid-item.card.h-100.card-left {
  border-radius: 6px;
  overflow: hidden;
}

/* Görsel */
.quarto-grid-item.card .card-img-top {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.quarto-grid-item.card .card-img-top img {
  display: block;
  width: 100%;
  height: 180px !important;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* ---------- LIGHT tema ---------- */
body.quarto-light .quarto-grid-item.card.h-100.card-left {
  background-color: #fff !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
}
body.quarto-light .quarto-grid-item.card .card-body.post-contents {
  background-color: #fff !important;
  color: #333;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Renkler (Light) */
body.quarto-light .quarto-grid-item.card .listing-title { color: #9a2f24; } /* Brick Red */
body.quarto-light .quarto-grid-item.card .listing-date { color: #6c8db8; } /* Cool Gray */
body.quarto-light .quarto-grid-item.card .listing-author { color: #2f9e68; } /* Deep Sage */

/* ---------- DARK tema ---------- */
body.quarto-dark .quarto-grid-item.card.h-100.card-left {
  background-color: #1e1e1e !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: none !important;
}
body.quarto-dark .quarto-grid-item.card.h-100.card-left:hover {
  border-color: rgba(255,255,255,0.1) !important;
}
body.quarto-dark .quarto-grid-item.card .card-body.post-contents {
  background-color: transparent !important;
  color: #eee;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* Renkler (Dark) */
body.quarto-dark .quarto-grid-item.card .listing-title { color: #b74f41; } /* Warm Red */
body.quarto-dark .quarto-grid-item.card .listing-date { color: #8ca0b3; } /* Muted Blue-Gray */
body.quarto-dark .quarto-grid-item.card .listing-author { color: #6bb48d; } /* Muted Green */

/* ============================================================
   4- AUTHOR BİO BOX
============================================================ */
.author-bio-box {
  margin-bottom: 1.5rem;
}
body.quarto-dark .author-bio-box { border-color: rgba(255,255,255,0.15); }
body.quarto-light .author-bio-box { border-color: rgba(0,0,0,0.15); }

.author-bio-name {
  margin: 0 0 .5rem 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}
.author-bio-text {
  line-height: 1.5;
  font-size: 1rem;
  margin: 0 0 .75rem 0;
}
body.quarto-dark .author-bio-text { color: #ccc; }
body.quarto-light .author-bio-text { color: #444; }

.author-bio-links a {
  margin-right: 1rem;
  font-size: .9rem;
  font-weight: 500;
  opacity: .8;
}
.author-bio-links a:hover { opacity: 1; }

/* ============================================================
   5- VURGU & FONT STİLLERİ
============================================================ */

/* İtalik vurgular (örn. “sessizlik” kelimeleri) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@1,300&display=swap');
main p em {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 1em;
  transition: color 0.3s ease;
}
body.quarto-light main p em { color: #6B4FA3; } /* Light: lavanta-mor */
body.quarto-dark main p em { color: #C6B4E3; } /* Dark: açık lavanta */

/* Açıklama (description) */
main .description {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 1rem;
  font-style: italic;
}
body.quarto-light main .description {
  color: grey;
  font-family: "Georgia", "Times New Roman", serif;
}
body.quarto-dark main .description {
  color: #aaa;
  font-family: "Merriweather", "Georgia", serif;
}

/* ============================================================
   6- FIGURE STYLES
============================================================ */

/* Ortak hizalama */
.quarto-figure-center {
  text-align: center;
}
.quarto-figure-center figure {
  display: inline-block;
}

/* Görsel (img) */
.figure-img {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Dark tema uyumu */
body.quarto-dark .figure-img {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

/* Başlık (figcaption) */
figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9em;
  text-align: center;
  color: #666;
}

/* Dark tema başlık */
body.quarto-dark figure figcaption {
  color: #aaa;
}


/* All links inside main content */
main#quarto-document-content a[href] {
  position: relative;
}

/* Base position for all links in main content */
main#quarto-document-content a.internal-link {
  color: #5CA7FF;
  position: relative;
}

main#quarto-document-content a.internal-link:hover {
  opacity: 0.8;
}

/* Only for internal links */
main#quarto-document-content a.internal-link::after {
  content: "";
  position: absolute;
  width: 0.25em;
  height: 0.25em;
  border-radius: 50%;
  background-color: #5CA7FF;
  bottom: -.18em;
  right: -.2em;
  transform: translate(50%, -50%);
  pointer-events: none;
}
