/* Blog liste + detay — tema-bağımsız, yuvarlak, sade */

.blog-page {
  background: var(--paper, #fff);
  color: var(--ink, #2b241f);
}

.blog-page__hero {
  padding: 36px 0 0;
}

.blog-page__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted, #8a8178);
}

.blog-page__crumb a {
  color: inherit;
  text-decoration: none;
}

.blog-page__crumb a:hover {
  color: var(--ink, #2b241f);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-page__title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink, #2b241f);
}

.blog-page__body {
  padding: 28px 0 72px;
}

/* Sol kategori + sağ içerik */
.blog-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
}

.blog-layout--solo {
  grid-template-columns: 1fr;
}

.blog-side {
  position: sticky;
  top: 88px;
}

.blog-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-filters__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink, #2b241f);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.blog-filters__item:hover {
  background: #efefef;
}

.blog-filters__item.is-active {
  background: #111;
  color: #fff;
}

.blog-filters__item.is-active:hover {
  background: #111;
  color: #fff;
}

.blog-filters__count {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.55;
}

.blog-filters__item.is-active .blog-filters__count {
  opacity: 0.75;
}

.blog-main {
  min-width: 0;
}

/* Kart ızgarası — panel --blog-cols */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(var(--blog-cols, 3), minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(min(2, var(--blog-cols, 3)), minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-side {
    position: static;
  }

  .blog-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-filters__item {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: repeat(var(--blog-cols-mobile, 1), minmax(0, 1fr));
    gap: 14px;
  }
}

/* Overlay kart */
.blog-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: var(--blog-media-aspect, 16 / 10);
  border-radius: 30px;
  overflow: hidden;
  background: #2a2622;
  color: #fff;
  text-decoration: none;
}

.blog-card__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__bg {
  transform: scale(1.03);
}

.blog-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(0, 0, 0, 0.62) 100%
  );
  pointer-events: none;
}

.blog-card.is-empty {
  background: #ebe6e0;
  color: #2b241f;
}

.blog-card.is-empty .blog-card__shade {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.blog-card__top {
  position: absolute;
  z-index: 1;
  top: 19px;
  left: 21px;
  right: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  color: #2b241f;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
}

.blog-card__title {
  position: absolute;
  z-index: 1;
  left: 21px;
  right: 14px;
  bottom: 19px;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-card.is-empty .blog-card__title {
  color: #2b241f;
  text-shadow: none;
}

/* Boş durum — kutu yok */
.blog-empty {
  margin: 48px 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  color: var(--muted, #8a8178);
  font-size: 15px;
  font-weight: 500;
}

/* Sayfalama */
.blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.blog-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line, #ece7e2);
  background: #fff;
  color: var(--ink, #2b241f);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.blog-pager__btn:hover {
  background: #faf7f3;
  border-color: #d9cfc4;
}

.blog-pager__btn.is-active {
  background: var(--ink, #2b241f);
  border-color: var(--ink, #2b241f);
  color: #fff;
  pointer-events: none;
}

.blog-pager__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ——— Detay ——— */
.blog-article {
  padding: 28px 0 88px;
}

.blog-article__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--muted, #8a8178);
}

.blog-article__crumb a {
  color: inherit;
  text-decoration: none;
}

.blog-article__crumb a:hover {
  color: var(--ink, #2b241f);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article__head {
  margin: 0 0 28px;
  min-width: 0;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 550;
  color: #9a8f84;
}

.blog-article__meta a {
  color: inherit;
  text-decoration: none;
}

.blog-article__meta a:hover {
  color: var(--ink, #2b241f);
}

.blog-article__dot {
  opacity: 0.55;
}

.blog-article__title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink, #2b241f);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-article__cover {
  margin: 0 0 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #ece7e2;
  aspect-ratio: 16 / 9;
}

.blog-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article__body {
  min-width: 0;
  width: 100%;
}

.blog-article__content {
  font-size: 16px;
  line-height: 1.8;
  color: #3a342f;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.blog-article__content * {
  max-width: 100%;
}

.blog-article__content pre,
.blog-article__content code {
  white-space: pre-wrap;
  overflow-x: auto;
}

.blog-article__content table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.blog-article__content > *:first-child {
  margin-top: 0;
}

.blog-article__content > *:last-child {
  margin-bottom: 0;
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4 {
  margin: 1.65em 0 0.5em;
  color: var(--ink, #2b241f);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-article__content h2 { font-size: 1.4em; }
.blog-article__content h3 { font-size: 1.2em; }

.blog-article__content p {
  margin: 0 0 1.15em;
}

.blog-article__content a {
  color: var(--ink, #2b241f);
  text-underline-offset: 2px;
}

.blog-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.35em 0;
}

.blog-article__content ul,
.blog-article__content ol {
  margin: 0 0 1.15em;
  padding-left: 1.2em;
}

.blog-article__content li {
  margin: 0 0 0.35em;
}

.blog-article__content blockquote {
  margin: 1.4em 0;
  padding: 0 0 0 16px;
  border-left: 2px solid #cfc5bb;
  background: none;
  border-radius: 0;
  color: #5c534c;
  font-style: italic;
}

.blog-article__foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #ece7e2);
}

.blog-article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink, #2b241f);
  text-decoration: none;
}

.blog-article__back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
