/* ──────────────────────────────────────────────────────────────
   Blog listesi (blog.html). Yapı aynı (hero + arama, kategori filtresi, grid, sayfalama);
   renkler sitenin siyah-beyaz-gri temasına çekildi. Kartlar görselli: en yeni yazı geniş
   öne çıkan kart, diğerleri 3 sütun. Kart işaretlemesi scripts/blog-static.js'tedir.
   ────────────────────────────────────────────────────────────── */
.vg-blog { font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #000; }

/* Hero */
.vg-blog-hero { padding: 48px 0 32px; }
.vg-blog-hero__title { margin: 0 0 24px; font-family: inherit; font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; line-height: 1.15; color: #000; }
.vg-blog-hero__lead { max-width: 640px; margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: #5e5e5e; }
.vg-blog-search { position: relative; max-width: 560px; }
.vg-blog-search svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: #5e5e5e; pointer-events: none; }
.vg-blog-search input {
  width: 100%; height: 56px; padding: 0 20px 0 54px; border: 2px solid transparent; border-radius: 999px;
  background: #f3f3f3; font: 400 16px/1 Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #000;
}
.vg-blog-search input:focus { outline: none; border-color: #000; background: #fff; }

/* Kategori filtresi */
.vg-blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.vg-blog-filters button {
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #f3f3f3; color: #000;
  font: 500 15px/1 Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.vg-blog-filters button:hover { background: #e6e6e6; }
.vg-blog-filters button.active { background: #000; color: #fff; }
.vg-blog-filters button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Grid */
.vg-blog-section { padding: 32px 0 112px; }
.vg-blog-grid { display: grid; gap: 48px 24px; }
@media (min-width: 768px) { .vg-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .vg-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }

/* Kart: görsel üstte, kenarlıksız; tüm kart tek bağlantı */
.vg-blog-card { display: flex; flex-direction: column; color: #000; text-decoration: none; }
.vg-blog-card:hover { color: #000; }
.vg-blog-card:focus-visible { outline: 2px solid #000; outline-offset: 6px; border-radius: 16px; }
.vg-blog-card__media { overflow: hidden; margin-bottom: 20px; border-radius: 16px; background: #f3f3f3; aspect-ratio: 3 / 2; }
.vg-blog-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vg-blog-card:hover .vg-blog-card__media img { transform: scale(1.03); }
.vg-blog-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; font-size: 14px; color: #5e5e5e; }
.vg-blog-card__cat { font-weight: 600; color: #cd2c5e; }
.vg-blog-card__title { margin: 0 0 10px; font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.35; color: #000; }
.vg-blog-card:hover .vg-blog-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.vg-blog-card__excerpt { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: #5e5e5e; }
.vg-blog-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 15px; font-weight: 600; color: #000; }
.vg-blog-card__more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.vg-blog-card:hover .vg-blog-card__more svg { transform: translateX(3px); }

/* Öne çıkan (en yeni) yazı: geniş ekranda görsel solda, metin sağda */
@media (min-width: 768px) {
  .vg-blog-card--featured { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .vg-blog-card--featured { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .vg-blog-card--featured .vg-blog-card__media { margin-bottom: 0; }
  .vg-blog-card--featured .vg-blog-card__title { font-size: 30px; line-height: 1.25; }
  .vg-blog-card--featured .vg-blog-card__excerpt { font-size: 17px; }
}

/* Yükleniyor, sonuç yok, sayfalama */
.vg-blog-loading { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.vg-blog-spinner { width: 40px; height: 40px; border: 3px solid #e6e6e6; border-top-color: #000; border-radius: 50%; animation: vg-blog-spin .8s linear infinite; }
@keyframes vg-blog-spin { to { transform: rotate(360deg); } }
.vg-blog-empty { padding: 48px 0; }
.vg-blog-empty h2 { margin: 0 0 8px; font-family: inherit; font-size: 24px; font-weight: 600; color: #000; }
.vg-blog-empty p { margin: 0; font-size: 16px; color: #5e5e5e; }
.vg-blog-pagination { margin-top: 64px; }
.vg-blog-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vg-blog-pagination a, .vg-blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  background: #f3f3f3; color: #000; font-size: 15px; font-weight: 500; text-decoration: none;
}
.vg-blog-pagination a:hover { background: #e6e6e6; }
.vg-blog-pagination .active a { background: #000; color: #fff; }
.vg-blog-pagination .disabled a, .vg-blog-pagination .disabled span { opacity: .4; pointer-events: none; }
.vg-blog-pagination svg { width: 18px; height: 18px; }

@media (max-width: 767.98px) {
  .vg-blog-hero { padding: 32px 0 24px; }
  .vg-blog-hero__lead { font-size: 17px; }
  .vg-blog-section { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-blog-card__media img, .vg-blog-card__more svg { transition: none; }
  .vg-blog-spinner { animation-duration: 2s; }
}

/* ── Yazı sayfası (blog/<id>/, blog_generator.py ile üretilir) ── */
.vg-post { padding: 40px 0 72px; }
.vg-post__wrap { max-width: 760px; }
.vg-post__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 15px; font-weight: 600; color: #000; text-decoration: none; }
.vg-post__back:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.vg-post__back svg { width: 18px; height: 18px; }
.vg-post__meta { margin-bottom: 14px; }
.vg-post__title { margin: 0 0 16px; font-family: inherit; font-size: clamp(32px, 4vw, 44px); font-weight: 600; line-height: 1.18; color: #000; }
.vg-post__lead { margin: 0 0 32px; font-size: 19px; line-height: 1.6; color: #5e5e5e; }
.vg-post__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 40px; border-radius: 16px; background: #f3f3f3; }

/* Yazı gövdesi tipografisi */
.vg-post-content { font-size: 17px; line-height: 1.75; color: #333; }
.vg-post-content > :first-child { margin-top: 0; }
.vg-post-content p { margin: 0 0 20px; }
.vg-post-content h2 { margin: 44px 0 14px; font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1.3; color: #000; }
.vg-post-content h3 { margin: 32px 0 12px; font-family: inherit; font-size: 21px; font-weight: 600; line-height: 1.35; color: #000; }
.vg-post-content h4 { margin: 24px 0 10px; font-family: inherit; font-size: 18px; font-weight: 600; color: #000; }
.vg-post-content ul, .vg-post-content ol { margin: 0 0 20px; padding-left: 22px; }
.vg-post-content li { margin-bottom: 8px; }
.vg-post-content strong { color: #000; font-weight: 600; }
.vg-post-content a { color: #000; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.vg-post-content a:hover { color: #c8414b; }
.vg-post-content blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid #000; font-size: 19px; color: #000; }
.vg-post-content table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 15px; }
.vg-post-content th, .vg-post-content td { padding: 12px 14px; border-bottom: 1px solid #e6e6e6; text-align: left; vertical-align: top; }
.vg-post-content th { background: #f3f3f3; font-weight: 600; color: #000; }
.vg-post-tip { margin: 28px 0; padding: 18px 22px; border-radius: 12px; background: #f3f3f3; font-size: 16px; color: #333; }

/* Etiketler ve paylaşım */
.vg-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid #e6e6e6; }
.vg-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vg-post__tags li { padding: 6px 14px; border-radius: 999px; background: #f3f3f3; font-size: 14px; color: #333; }
.vg-post__share { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #000; }
.vg-post__share span { margin-right: 4px; }
.vg-post__share a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #f3f3f3; color: #000; transition: background-color .15s ease; }
.vg-post__share a:hover { background: #e6e6e6; color: #000; }
.vg-post__share svg { width: 18px; height: 18px; }

/* Diğer yazılar */
.vg-post-related { padding: 72px 0 112px; background: #f7f7f7; }
.vg-post-related__title { margin: 0 0 32px; font-family: inherit; font-size: clamp(26px, 3vw, 32px); font-weight: 600; color: #000; }
.vg-post-related .vg-blog-card__media { background: #e6e6e6; }

@media (max-width: 767.98px) {
  .vg-post { padding: 24px 0 56px; }
  .vg-post__lead { font-size: 17px; }
  .vg-post-content { font-size: 16px; }
  .vg-post-content h2 { font-size: 23px; }
  .vg-post-related { padding: 56px 0 80px; }
  .vg-post-content table { display: block; overflow-x: auto; }
}
