/* =========================================================
   Alos Dijital — Blog & Makale Tasarım Sistemi
   Siyah · Beyaz · Kırmızı (#E53125) Kurumsal Kimlik
   ========================================================= */

/* Reading Progress Bar */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.reading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ink, #111113), var(--primary, #E53125));
  transition: width .1s ease-out;
}

/* =========================================================
   1. BLOG ARŞİVİ (blog.php)
   ========================================================= */

/* Hero */
.blog-hero {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

/* Filtre & Arama Barı */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line, #e6e6ea);
}

.blog-cat-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-cat-list::-webkit-scrollbar { display: none; }

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2, #38383e);
  background: var(--bg-soft, #f6f6f7);
  border: 1px solid var(--line, #e6e6ea);
  white-space: nowrap;
  transition: all .25s ease;
  text-decoration: none;
}
.blog-cat-pill:hover {
  background: #fff;
  border-color: var(--ink, #111113);
  color: var(--ink, #111113);
  transform: translateY(-1px);
}
.blog-cat-pill.is-active {
  background: var(--ink, #111113);
  color: #fff;
  border-color: var(--ink, #111113);
  box-shadow: 0 4px 14px rgba(17, 17, 19, .15);
}

.blog-search-wrap {
  position: relative;
  min-width: 260px;
}
.blog-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted, #686872);
  pointer-events: none;
}
.blog-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid var(--line, #e6e6ea);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink, #111113);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.blog-search-input:focus {
  border-color: var(--primary, #E53125);
  box-shadow: 0 0 0 3px rgba(229, 49, 37, .12);
}

/* Öne Çıkan Makale Kartı */
.featured-article-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  background: #fff;
  border: 1px solid var(--line, #e6e6ea);
  border-radius: var(--radius, 22px);
  padding: 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(17, 17, 19, .05));
  transition: all .35s var(--ease, ease);
}
.featured-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow, 0 18px 50px -12px rgba(17, 17, 19, .14));
  border-color: rgba(229, 49, 37, .3);
}

.feat-thumb {
  position: relative;
  border-radius: var(--radius-sm, 14px);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #111113;
}
.feat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease, ease);
}
.featured-article-card:hover .feat-thumb img {
  transform: scale(1.04);
}

.feat-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted, #686872);
  margin-bottom: 14px;
}
.feat-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(229, 49, 37, .08);
  color: var(--primary, #E53125);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.feat-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  color: var(--ink, #111113);
}
.feat-title a:hover {
  color: var(--primary, #E53125);
}
.feat-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted, #686872);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line, #e6e6ea);
}
.feat-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feat-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink, #111113);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.feat-author-info b {
  display: block;
  font-size: 13.5px;
  color: var(--ink, #111113);
}
.feat-author-info span {
  font-size: 12px;
  color: var(--muted, #686872);
}

/* Blog Kartları Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line, #e6e6ea);
  border-radius: var(--radius, 22px);
  overflow: hidden;
  transition: all .35s var(--ease, ease);
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(17, 17, 19, .04));
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow, 0 18px 50px -12px rgba(17, 17, 19, .14));
  border-color: rgba(229, 49, 37, .3);
}

.blog-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #111113;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease, ease);
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

/* Görsel yoksa şık soyut degradeli kart başlığı */
.blog-card-thumb-art {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111113 0%, #1e1e24 50%, #2a1112 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.blog-card-thumb-art::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(229, 49, 37, .35), transparent 70%);
  top: -40px;
  right: -40px;
  border-radius: 50%;
  filter: blur(20px);
}
.blog-card-thumb-art svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, .7);
  position: relative;
  z-index: 2;
  transition: transform .4s ease, color .3s;
}
.blog-card:hover .blog-card-thumb-art svg {
  transform: scale(1.12);
  color: var(--primary, #E53125);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted, #686872);
  margin-bottom: 12px;
}
.blog-card-cat {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft, #f6f6f7);
  color: var(--ink, #111113);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .02em;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  color: var(--ink, #111113);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-title a {
  transition: color .2s;
}
.blog-card:hover .blog-card-title a {
  color: var(--primary, #E53125);
}
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #686872);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e6e6ea);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-card-author {
  font-size: 12.5px;
  color: var(--muted, #686872);
}
.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #111113);
  transition: all .2s;
}
.blog-card-read svg {
  width: 14px;
  height: 14px;
  transition: transform .25s ease;
}
.blog-card:hover .blog-card-read {
  color: var(--primary, #E53125);
}
.blog-card:hover .blog-card-read svg {
  transform: translateX(4px);
}

/* Sayfalama */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line, #e6e6ea);
  background: #fff;
  color: var(--ink, #111113);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.blog-page-btn:hover {
  border-color: var(--ink, #111113);
  background: var(--bg-soft, #f6f6f7);
}
.blog-page-btn.is-active {
  background: var(--ink, #111113);
  color: #fff;
  border-color: var(--ink, #111113);
}

/* =========================================================
   2. BLOG DETAY (blog-detay.php)
   ========================================================= */

.article-hero {
  padding-top: 48px;
  padding-bottom: 36px;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft, #f6f6f7) 100%);
  border-bottom: 1px solid var(--line, #e6e6ea);
}
.article-header {
  max-width: 840px;
  margin: 0 auto;
  text-align: left;
}

/* Makale Breadcrumb (Açık tema uyumlu) */
.article-hero .b2-crumb {
  margin-bottom: 16px;
}
.article-hero .b2-crumb ol {
  justify-content: flex-start;
  gap: 4px 0;
}
.article-hero .b2-crumb li,
.article-hero .b2-crumb a {
  color: var(--muted, #686872);
  font-size: 13px;
}
.article-hero .b2-crumb a:hover {
  color: var(--primary, #E53125);
}
.article-hero .b2-crumb li + li::before {
  color: var(--line, #c8c8cf);
}
.article-hero .b2-crumb [aria-current] {
  color: var(--ink, #111113);
  font-weight: 600;
}
.article-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--muted, #686872);
}
.article-meta-top .meta-sep {
  opacity: .45;
  user-select: none;
}
.article-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(229, 49, 37, .1);
  color: var(--primary, #E53125);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.article-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--ink, #111113);
  margin-bottom: 22px;
}
.article-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2, #38383e);
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--primary, #E53125);
  font-weight: 500;
}
.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e6e6ea);
}
.article-author-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-author-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink, #111113);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.article-author-meta b {
  display: block;
  font-size: 14.5px;
  color: var(--ink, #111113);
}
.article-author-meta span {
  font-size: 12.5px;
  color: var(--muted, #686872);
}

.article-share-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line, #e6e6ea);
  background: #fff;
  color: var(--ink, #111113);
  text-decoration: none;
  transition: all .2s;
}
.article-share-btn:hover {
  background: var(--ink, #111113);
  color: #fff;
  border-color: var(--ink, #111113);
  transform: translateY(-2px);
}
.article-share-btn svg {
  width: 16px;
  height: 16px;
}

/* Makale Görseli */
.article-cover {
  max-width: 840px;
  margin: 36px auto 0;
  border-radius: var(--radius, 22px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 18px 50px -12px rgba(17, 17, 19, .14));
  border: 1px solid var(--line, #e6e6ea);
  background: #111113;
}
.article-cover img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Makale İçeriği (Typography) */
.article-body-wrap {
  padding: 56px 0 80px;
}
.article-container {
  max-width: 800px;
  margin: 0 auto;
}
.article-body {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--ink-2, #38383e);
}
.article-body p {
  margin-bottom: 24px;
}
.article-body h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  color: var(--ink, #111113);
  letter-spacing: -.03em;
  margin: 44px 0 18px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--ink, #111113);
  letter-spacing: -.02em;
  margin: 36px 0 14px;
  line-height: 1.35;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}
.article-body ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  padding-left: 4px;
}
.article-body ol li {
  list-style-type: decimal;
  margin-bottom: 10px;
  padding-left: 4px;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  background: var(--bg-soft, #f6f6f7);
  border-left: 4px solid var(--primary, #E53125);
  border-radius: 0 var(--radius-sm, 14px) var(--radius-sm, 14px) 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink, #111113);
}
.article-body strong, .article-body b {
  font-weight: 700;
  color: var(--ink, #111113);
}
.article-body a {
  color: var(--primary, #E53125);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity .2s;
}
.article-body a:hover {
  opacity: .8;
}

/* Makale İçi CTA Kutusu */
.article-inline-cta {
  background: linear-gradient(135deg, #111113 0%, #1f1b1c 100%);
  color: #fff;
  border-radius: var(--radius, 22px);
  padding: 36px 32px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow, 0 18px 50px -12px rgba(17, 17, 19, .25));
}
.article-inline-cta::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(229, 49, 37, .4), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.article-inline-cta .eyebrow {
  color: var(--primary, #E53125);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  display: inline-block;
}
.article-inline-cta h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}
.article-inline-cta p {
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}
/* Buton Yazısı & İkonunun Beyaz Kalması */
.article-body .article-inline-cta a.shiny,
.article-inline-cta a.shiny,
.article-inline-cta .shiny {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}
.article-inline-cta .shiny:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}
.article-inline-cta .shiny .sh-in,
.article-inline-cta .shiny .sh-in span {
  color: #ffffff !important;
}
.article-inline-cta .shiny .sh-in svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Makale Sonu Etiketler & Paylaş */
.article-footer-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line, #e6e6ea);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tag-item {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft, #f6f6f7);
  color: var(--ink-2, #38383e);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.article-tag-item:hover {
  background: var(--ink, #111113);
  color: #fff;
}

/* Yazar Tanıtım Kartı */
.author-card-box {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--bg-soft, #f6f6f7);
  border-radius: var(--radius, 22px);
  padding: 28px;
  margin-top: 40px;
  border: 1px solid var(--line, #e6e6ea);
}
.author-box-pic {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ink, #111113);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}
.author-box-info h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink, #111113);
  margin-bottom: 4px;
}
.author-box-info p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #686872);
  margin-bottom: 10px;
}
.author-box-info a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #E53125);
  text-decoration: none;
}

/* İlgili Makaleler */
.related-posts-section {
  padding: 64px 0 80px;
  background: var(--bg-soft, #f6f6f7);
  border-top: 1px solid var(--line, #e6e6ea);
}
.related-posts-section .related-head {
  margin-bottom: 32px;
}
.related-posts-section .single-line-h {
  white-space: nowrap;
}
.related-posts-section .single-line-h .grad-text {
  display: inline;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .article-hero {
    padding-top: 18px;
    padding-bottom: 24px;
  }
  .article-hero .b2-crumb {
    display: none; /* Mobilde header ile meta arasındaki gereksiz boşluğu önler */
  }
  .article-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: safe center;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-inline: auto;
    width: 100%;
    gap: clamp(3px, 1.3vw, 7px);
    font-size: clamp(10px, 2.7vw, 12px);
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 2px;
  }
  .article-meta-top::-webkit-scrollbar {
    display: none;
  }
  .article-meta-top .article-cat-badge {
    padding: 3px 8px;
    font-size: clamp(9.5px, 2.4vw, 11px);
    letter-spacing: .02em;
    flex-shrink: 0;
  }
  .article-meta-top time,
  .article-meta-top span {
    flex-shrink: 0;
  }
  .article-title {
    font-size: clamp(22px, 6.5vw, 30px);
    margin-bottom: 14px;
  }
  .article-lead {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 12px;
  }
  .blog-hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  /* CTA Mobilde Ortalı */
  .article-inline-cta {
    text-align: center;
    padding: 30px 20px;
    margin: 36px 0;
  }
  .article-inline-cta .eyebrow {
    display: block;
    margin-inline: auto;
  }
  .article-inline-cta h3 {
    text-align: center;
    font-size: 20px;
  }
  .article-inline-cta p {
    text-align: center;
    margin-inline: auto;
    font-size: 14.5px;
  }
  .article-body .article-inline-cta a.shiny,
  .article-inline-cta a.shiny,
  .article-inline-cta .shiny {
    display: inline-flex;
    margin-inline: auto;
    justify-content: center;
  }

  /* İlgili Makaleler Başlığı Mobilde Ortalı & Tek Satır */
  .related-posts-section .bk-head,
  .related-posts-section .related-head {
    text-align: center;
    margin-inline: auto;
    margin-bottom: 24px;
  }
  .related-posts-section .eyebrow {
    display: inline-block;
    margin-inline: auto;
    text-align: center;
  }
  .related-posts-section .single-line-h {
    text-align: center;
    white-space: nowrap;
    font-size: clamp(14px, 4.3vw, 22px);
    letter-spacing: -.03em;
  }
  .related-posts-section .single-line-h .grad-text {
    display: inline;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-wrap {
    min-width: 100%;
  }
  .author-card-box {
    flex-direction: column;
    text-align: center;
  }
  .article-author-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

