:root {
  --brand-dark: #0e1337;
  --brand-text: #05081d;
  --brand-text-light: #5b5f7b;
  --brand-border: #e2e4f0;
  --brand-accent-blue: var(--lume-dark);
  --lume-font: "Inter", sans-serif;
  --lume-white: #ffffff;
  --lume-dark: #0e1337;
}

/* Blog post sayfası için tek düz background */
body:has(.single-post-main-wrapper) {
  background-color: #ffffff !important;
}

html.dark-theme body:has(.single-post-main-wrapper) {
  background-color: #0a0a0a !important;
}

.single-post-page {
  padding-top: 50px;
  padding-bottom: 60px;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  gap: 30px;
}

.post-sidebar-left {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 15px;
  font-size: 14px;
  padding-top: 40px;
}

.post-sidebar-left::-webkit-scrollbar {
  width: 5px;
}

.post-sidebar-left::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.post-sidebar-left::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.sidebar-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 35px;
  position: relative;
  /* İşaretçinin konumlanması için eklendi */
}

/* YENİ: Hareketli işaretçi stili */
.toc-glider {
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  width: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: top 0.25s ease-in-out, height 0.25s ease-in-out;
  opacity: 0;
}

.table-of-contents ul li {
  margin-bottom: 10px;
}

.table-of-contents ul li a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  border-left: 3px solid transparent;
  /* Bu satır aynı kalabilir veya kaldırılabilir */
  padding-left: 12px;
  line-height: 1.5;
  font-weight: 500;
  transition: color 0.2s ease;
}

.table-of-contents ul li a:hover {
  color: var(--primary-color);
}

.table-of-contents ul li.active > a {
  color: var(--primary-color);
  font-weight: 700;
  border-left-color: transparent;
  /* GÜNCELLENDİ: Artık işaretçi bu görevi yapıyor */
}

.table-of-contents ul ul {
  padding-left: 18px;
  margin-top: 10px;
}

.table-of-contents ul li.toc-h3 a {
  padding-left: 25px !important;
  font-size: 0.95em !important;
  font-weight: 400 !important;
}

.table-of-contents ul li.toc-h3.active > a {
  font-weight: 600 !important;
}

.sidebar-share-buttons a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 18px;
  margin-right: 18px;
  margin-bottom: 8px;
}

.sidebar-share-buttons a:hover {
  color: var(--primary-color);
}

/* Ana İçerik Alanı */
.post-main-content-area {
  min-width: 0;
  padding-top: 30px;
  margin-bottom: 40px;
}

.post-header-detailed {
  margin-bottom: 35px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.post-header-decorative-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.post-header-text-content {
  flex-grow: 1;
}

.post-title-detailed {
  font-size: 38px;
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.25;
  margin-bottom: 20px;
}

.post-meta-detailed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.post-meta-detailed .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta-detailed .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta-detailed .meta-separator {
  color: #ccc;
}

.post-meta-detailed i {
  margin-right: 4px;
  font-size: 0.95em;
}

.post-featured-image-main {
  margin-bottom: 35px;
  text-align: center;
  display: block;
}

.post-featured-image-main img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.post-featured-image-main figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.post-body-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text-color);
}

.post-body-content p {
  margin-bottom: 1.7em;
}

.post-body-content p.lead {
  font-size: 1.2em;
  color: #4a5568;
  margin-bottom: 2.2em;
  font-weight: 400;
}

.post-body-content h2,
.post-body-content h3,
.post-body-content h4 {
  margin-top: 2.4em;
  margin-bottom: 1em;
  font-weight: 700;
  color: var(--dark-color);
}

.post-body-content h2 {
  font-size: 27px;
}

.post-body-content h3 {
  font-size: 23px;
}

.post-body-content h4 {
  font-size: 19px;
}

.post-body-content ul,
.post-body-content ol {
  margin-bottom: 1.7em;
  padding-left: 2em;
}

.post-body-content ul li,
.post-body-content ol li {
  margin-bottom: 0.7em;
}

.post-body-content ul {
  list-style-type: disc;
}

.post-body-content ol {
  list-style-type: decimal;
}

.post-body-content blockquote {
  margin: 2.2em 0;
  padding: 20px 30px;
  border-left: 4px solid var(--primary-color);
  background-color: var(--background-ultra-light);
  font-style: italic;
  font-size: 1.1em;
  color: #4a5568;
}

.post-body-content blockquote p {
  margin-bottom: 0.5em;
}

.post-body-content blockquote footer {
  font-size: 0.9em;
  color: var(--text-muted);
  text-align: right;
  font-style: normal;
}

.post-body-content figure.image-in-content {
  margin: 2.5em 0;
  text-align: center;
}

.post-body-content figure.image-in-content img {
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.post-body-content figure.image-in-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* === BLOG YAZISI SAYFASI ÖNE ÇIKAN GÖRSEL STİLİ (blog.css'e eklenecek) === */

.post-header-detailed .post-featured-image-detailed {
  width: 250px;
  height: 250px;
  object-fit: cover;
  /* Görselin 250x250 alanına bozulmadan sığmasını sağlar, gerekirse kırpar */
  border-radius: 8px;
  /* Kenar yuvarlaklığı */
  margin-bottom: 20px;
  /* Alt boşluk */
  flex-shrink: 0;
  /* Eğer flex container içindeyse küçülmesini engeller */
  /* İsteğe bağlı: Gölge ekleyebilirsiniz */
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

.post-body-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-color-light-transparent);
  padding-bottom: 1px;
}

.post-body-content a:hover {
  color: var(--primary-color-dark);
  border-bottom-color: var(--primary-color-dark);
}

/* AI Özetle Widget */
.ai-summary-widget {
  position: relative;
  margin: 8px 0 24px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-icon {
  color: var(--lume-dark);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ai-summary-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--lume-dark);
  line-height: 1.3;
}

.ai-summary-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid rgba(14, 19, 55, 0.12);
  border-radius: 8px;
  color: var(--lume-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(14, 19, 55, 0.04);
}

.ai-btn svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.ai-btn img {
  opacity: 0.9;
  transition: all 0.2s ease;
  filter: brightness(0) saturate(100%);
}

.ai-btn:hover {
  background: var(--lume-dark);
  color: #ffffff;
  border-color: var(--lume-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(14, 19, 55, 0.15);
}

.ai-btn:hover svg {
  opacity: 1;
}

.ai-btn:hover img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
  .ai-summary-widget {
    margin: 6px 0 20px;
  }

  .ai-summary-title {
    font-size: 13px;
  }

  .ai-summary-buttons {
    gap: 6px;
  }

  .ai-btn {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
    padding: 9px 12px;
    font-size: 12px;
  }
}

.cta-block-in-post {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 30px 35px;
  border-radius: 10px;
  margin: 40px 0;
  text-align: center;
}

.cta-block-in-post h3 {
  font-size: 22px;
  color: var(--light-color);
  margin-bottom: 15px;
}

.cta-block-in-post .cta-button-promo {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-block-in-post .cta-button-promo:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.post-content-footer {
  max-width: 720px;
  margin: 60px auto 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.author-box-detailed {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 8px;
}

.author-avatar-detailed {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info-detailed {
  flex-grow: 1;
  min-width: 0;
}

.author-info-detailed h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--dark-color);
}

.author-info-detailed p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.65;
}

.author-social-detailed a {
  color: var(--text-muted);
  margin-right: 15px;
  font-size: 18px;
}

.author-social-detailed a:hover {
  color: var(--primary-color);
}

/* Sağ Sidebar (Reklam Alanı) */
.post-sidebar-right {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
}

.promo-ad-sidebar {
  width: 240px;
  max-height: 450px;
  background: var(--lume-white);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-ad-sidebar .cta-signal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 12px;
  height: 12px;
  background-color: var(--brand-accent-blue);
  border-radius: 50%;
  animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 19, 55, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(14, 19, 55, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 19, 55, 0);
  }
}

.promo-ad-sidebar .cta-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
  margin-top: 10px;
  margin-bottom: 15px;
}

.promo-ad-sidebar .cta-description {
  font-size: 16px;
  color: var(--brand-text-light);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.promo-ad-sidebar .lume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  background-color: var(--brand-dark);
  color: var(--lume-white);
}

.promo-ad-sidebar .lume-button:hover {
  background-color: #2a3054;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14, 19, 55, 0.2);
}

/* Eski blog card stilleri kaldırıldı - yeni tasarım için aşağı bakın */
.post-body-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 1.7em;
  margin-bottom: 1.7em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  /* margin-left: auto;   */
  /* margin-right: auto; */
}

@media (max-width: 1100px) {
  .single-post-layout {
    grid-template-columns: 200px 1fr 220px;
    gap: 25px;
  }

  .post-title-detailed {
    font-size: 34px;
  }
}

@media (max-width: 992px) {
  /* Tabletler */
  .single-post-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-sidebar-left {
    order: -1;
    position: static;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 40px;
    padding-right: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
  }

  .post-sidebar-left .table-of-contents {
    max-height: 300px;
    overflow-y: auto;
  }

  .post-sidebar-right {
    order: 1;
    position: static;
    max-height: none;
    margin-top: 50px;
  }

  .promo-ad-sidebar {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    padding: 40px 36px;
  }

  .post-header-decorative-image {
    display: none;
  }

  .post-header-text-content {
    text-align: center;
  }

  .post-meta-detailed {
    justify-content: center;
  }

  .post-title-detailed {
    font-size: 30px;
  }

  .post-body-content {
    max-width: 100%;
    padding: 0 10px;
  }

  .post-content-footer {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .single-post-page {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .post-main-content-area {
    padding-top: 10px;
  }

  /* Mobilde üst boşluk azaltıldı */
  .post-sidebar-left {
    margin-bottom: 30px;
    padding-bottom: 20px;
    max-height: 350px;
    overflow-y: auto;
  }

  .post-sidebar-left .table-of-contents {
    max-height: 250px;
    overflow-y: auto;
  }

  /* Scrollbar stilleri mobil için */
  .post-sidebar-left .table-of-contents::-webkit-scrollbar {
    width: 4px;
  }

  .post-sidebar-left .table-of-contents::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  .post-sidebar-left .table-of-contents::-webkit-scrollbar-track {
    background: #f5f5f5;
  }

  .post-sidebar-right {
    margin-top: 40px;
  }

  .promo-ad-sidebar {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    max-width: 100%;
    padding: 36px 32px;
  }

  .post-title-detailed {
    font-size: 26px;
  }

  .post-body-content {
    font-size: 16px;
    padding: 0;
  }

  .post-content-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .section-title-related {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .author-box-detailed {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .author-avatar-detailed {
    margin-bottom: 15px;
  }

  /* Mobil için başlık ve görsel düzenlemesi */
  .post-header-detailed {
    flex-direction: column;
    /* Mobil için dikey sıralama */
    align-items: center;
    /* Ortalar */
    text-align: center;
    /* Metni ortalar */
    margin-bottom: 25px;
    /* Alt boşluğu ayarlar */
  }

  .post-header-detailed .post-featured-image-detailed {
    width: 150px;
    /* Mobil boyuta uygun daha küçük bir genişlik */
    height: 150px;
    /* Mobil boyuta uygun daha küçük bir yükseklik */
    margin-bottom: 15px;
    /* Resim ile başlık arasına boşluk ekler */
  }

  /* Paylaş kısmını başlık altına taşıma */
  .post-main-content-area .post-sidebar-left {
    order: -1;
    /* Normal akışta en üste çıkarır */
    position: static;
    /* Sticky özelliğini kaldırır */
    max-height: none;
    overflow-y: visible;
    margin-bottom: 30px;
    padding-right: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    /* Mobil görünümde paylaş butonlarını yatayda ortalamak veya daha iyi hizalamak için: */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* İçindekiler ve paylaş butonlarını ortalar */
    text-align: center;
  }

  .post-main-content-area .table-of-contents ul {
    width: 100%;
    /* İçindekiler listesini tam genişlik yapar */
    text-align: left;
    /* İçindekiler metnini sola yaslar */
    margin-bottom: 20px;
  }

  .post-main-content-area .sidebar-share-buttons {
    width: 100%;
    /* Paylaş butonları konteynerini tam genişlik yapar */
    display: flex;
    /* İçindeki butonları hizalamak için flex kullanırız */
    justify-content: center;
    /* Butonları yatayda ortalar */
    flex-wrap: wrap;
    /* Butonların sığmaması durumunda alt satıra geçmesini sağlar */
    gap: 10px;
    /* Butonlar arasına boşluk ekler */
  }

  .post-main-content-area .sidebar-share-buttons a {
    margin-right: 0;
    /* Mevcut sağ boşluğu sıfırlar */
  }
}

@media (max-width: 480px) {
  .post-sidebar-left {
    max-height: 300px;
  }

  .post-sidebar-left .table-of-contents {
    max-height: 200px;
  }

  .post-title-detailed {
    font-size: 22px;
  }

  .post-meta-detailed {
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
  }

  .post-meta-detailed .meta-separator {
    display: none;
  }

  .post-featured-image-main {
    margin-bottom: 25px;
  }

  .post-body-content {
    font-size: 15.5px;
  }

  .post-body-content h2 {
    font-size: 22px;
  }

  .post-body-content h3 {
    font-size: 19px;
  }

  .post-sidebar-left {
    top: 70px;
    max-height: calc(100vh - 90px);
  }

  .post-sidebar-right {
    top: 70px;
    max-height: calc(100vh - 90px);
  }

  .promo-ad-sidebar {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }
}

/* =========================================================================== */
/* ENHANCED TYPOGRAPHY & CODE BLOCKS - PAN.CSS INSPIRED */
/* =========================================================================== */

.post-body-content pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 2rem 0;
}

.post-body-content code {
  background: #f1f3f5;
  color: #e03131;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", monospace;
  font-size: 0.9em;
}

.post-body-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.post-body-content blockquote {
  border-left: 4px solid var(--primary-color, #3b82f6);
  background: #f8f9fa;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #495057;
  border-radius: 0 8px 8px 0;
}

.post-body-content blockquote p {
  margin: 0;
}

.post-body-content ul,
.post-body-content ol {
  padding-left: 1.75rem;
  margin: 1.5rem 0;
}

.post-body-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.post-body-content a {
  color: var(--primary-color, #3b82f6);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.post-body-content a:hover {
  color: #1d4ed8;
  text-decoration-thickness: 2px;
}

.post-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95em;
}

.post-body-content th,
.post-body-content td {
  border: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
  text-align: left;
}

.post-body-content th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.post-body-content hr {
  border: none;
  border-top: 2px solid #e9ecef;
  margin: 3rem 0;
}

/* Selection styling - Lume Dark */
.post-body-content ::selection {
  background: var(--lume-dark);
  color: var(--lume-white);
}

.post-body-content ::-moz-selection {
  background: var(--lume-dark);
  color: var(--lume-white);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ============================================
   BENZER YAZILAR - CAROUSEL
   ============================================ */
.related-posts-section {
  background: transparent;
  padding: 60px 0 80px;
  margin-top: 0;
}

.related-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title-related {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

html.dark-theme .section-title-related {
  color: #fff;
}

.related-posts-nav {
  display: flex;
  gap: 12px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #000;
}

.nav-btn:hover:not(:disabled) {
  border-color: #000;
  background: #f9fafb;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

html.dark-theme .nav-btn {
  background: #1f1f1f;
  border-color: #333;
  color: #fff;
}

html.dark-theme .nav-btn:hover:not(:disabled) {
  border-color: #555;
  background: #2a2a2a;
}

.related-posts-carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.related-posts-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-post-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.related-post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html.dark-theme .related-post-card {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-theme .related-post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.related-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

html.dark-theme .related-card-image {
  background: #2a2a2a;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-card-image img {
  transform: scale(1.05);
}

.related-card-content {
  padding: 20px;
}

.related-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark-theme .related-card-title {
  color: #fff;
}

.related-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

html.dark-theme .related-card-meta {
  color: #9ca3af;
}

.related-meta-date,
.related-meta-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 992px) {
  .related-post-card {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .related-posts-section {
    padding: 40px 0 60px;
  }

  .related-posts-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-title-related {
    font-size: 1.375rem;
  }

  /* Mobilde navigasyon her zaman görünür (1+ yazı varsa) */
  .related-posts-nav {
    display: flex;
    gap: 8px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }

  .related-post-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .related-card-image {
    height: 180px;
  }

  .related-card-content {
    padding: 16px;
  }

  .related-card-title {
    font-size: 1rem;
  }
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background: transparent;
  padding: 60px 0 80px;
  margin-top: 0;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 0;
  border-radius: 0;
  border: none;
  position: relative;
}

html.dark-theme .newsletter-box {
  background: transparent;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 24px 0;
  text-align: left;
}

html.dark-theme .newsletter-title {
  color: #fff;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-input-group {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 1rem;
  background: transparent;
  transition: all 0.2s ease;
}

.newsletter-input::placeholder {
  color: #9ca3af;
}

.newsletter-input:focus {
  outline: none;
  border-bottom-color: #000;
}

html.dark-theme .newsletter-input {
  background: transparent;
  border-bottom-color: #444;
  color: #fff;
}

html.dark-theme .newsletter-input::placeholder {
  color: #6b7280;
}

html.dark-theme .newsletter-input:focus {
  border-bottom-color: #fff;
}

.newsletter-btn {
  padding: 14px 36px;
  background: #0e1337;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #1a1f4d;
}

html.dark-theme .newsletter-btn {
  background: #0e1337;
}

html.dark-theme .newsletter-btn:hover {
  background: #2a3054;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.newsletter-consent input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--lume-dark);
}

.newsletter-consent label {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  cursor: pointer;
}

html.dark-theme .newsletter-consent label {
  color: #9ca3af;
}

.newsletter-message {
  margin-top: 16px;
  text-align: center;
}

.newsletter-message p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.newsletter-message .success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.newsletter-message .error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

html.dark-theme .newsletter-message .success {
  background: #064e3b;
  color: #6ee7b7;
  border-color: #047857;
}

html.dark-theme .newsletter-message .error {
  background: #7f1d1d;
  color: #fca5a5;
  border-color: #991b1b;
}

@media (max-width: 576px) {
  .newsletter-title {
    font-size: 1.5rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 16px;
  }

  .newsletter-btn {
    width: 100%;
  }
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress-bar {
  position: fixed;
  top: 0; /* JavaScript ile dinamik olarak ayarlanacak */
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #000000 0%, #374151 100%);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  will-change: width;
}

html.dark-theme .reading-progress-bar {
  background: linear-gradient(90deg, #ffffff 0%, #e5e7eb 100%);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}
