/* ============================================
   BLOG (Medium-style)
   ============================================ */
.blog-page-head { padding: 80px 0 4px; }
.blog-page-head-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.blog-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin: 0;
  color: var(--text);
}

/* Toolbar (arama + yazar filtresi + etiket dropdown) — kompakt tek satır */
.blog-toolbar-section { padding: 12px 0 8px; }
.blog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.blog-search {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}
.blog-search .material-symbols-rounded {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 18px;
  pointer-events: none;
}
.blog-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.16);
}
.blog-toolbar select {
  height: 40px;
  min-width: 150px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.blog-toolbar select:hover { border-color: var(--accent); }
.blog-toolbar select { color-scheme: dark; }
.blog-toolbar select option {
  background: var(--bg-1, #0a0e1a);
  color: var(--text, #fff);
}
:root[data-theme="light"] .blog-toolbar select { color-scheme: light; }
:root[data-theme="light"] .blog-toolbar select option {
  background: #ffffff;
  color: #0a1024;
}

/* Etiket aktif rozet (seçilen etiket varsa toolbar yanında küçük chip) */
.blog-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px 0 12px;
  border-radius: 100px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #02121b;
  font-size: 12px;
  font-weight: 700;
}
.blog-active-tag button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #02121b;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  justify-content: center;
}
.blog-active-tag button:hover { background: rgba(0,0,0,0.15); }
.blog-active-tag .material-symbols-rounded { font-size: 16px; }

/* Featured (öne çıkan) yazı — büyük kart */
.blog-featured-section { padding: 30px 0 10px; }
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(139,92,246,0.06));
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.blog-featured:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-3px);
}
.blog-featured-cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(139,92,246,0.18));
}
.blog-featured-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-featured-cover.no-img {
  display: flex; align-items: center; justify-content: center;
}
.blog-featured-cover.no-img .material-symbols-rounded {
  font-size: 64px; color: var(--accent); opacity: 0.5;
}
.blog-featured-body { display: flex; flex-direction: column; gap: 14px; }
.blog-featured-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-featured-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--text);
  margin: 0;
}
.blog-featured-excerpt {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Yazı listesi — 2 kolon grid */
.blog-list-section { padding: 20px 0 80px; }
.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.blog-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-row:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(0,212,255,0.4);
}
.blog-row:hover .blog-row-title { color: var(--accent); }

.blog-row-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.blog-row-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.blog-row-author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02121b;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}
.blog-row-author-avatar.has-img { background: var(--surface); }
.blog-row-author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-row-author-name { font-weight: 600; color: var(--text); }
.blog-row-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-row-excerpt {
  font-family: 'Lora', Georgia, serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-row-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.blog-row-footer .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.6;
}
.blog-row-author-pic {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-row-author-pic--letter {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02121b;
  font-weight: 700;
  font-size: 9px;
}
.blog-row-author-inline {
  font-weight: 600;
  color: var(--text-muted);
}
.blog-row-footer .blog-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.blog-row-cover {
  width: 140px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(139,92,246,0.12));
  flex-shrink: 0;
}
.blog-row-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-row-cover.no-img {
  display: flex; align-items: center; justify-content: center;
}
.blog-row-cover.no-img .material-symbols-rounded {
  font-size: 30px; color: var(--accent); opacity: 0.5;
}

.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.blog-empty .material-symbols-rounded {
  font-size: 56px;
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}

/* Light tema uyumu */
:root[data-theme="light"] .blog-row-title { color: var(--text); }
:root[data-theme="light"] .blog-featured {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}

@media (max-width: 900px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; max-width: 720px; }
}
@media (max-width: 640px) {
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-row { grid-template-columns: 1fr; gap: 12px; }
  .blog-row-cover { width: 100%; aspect-ratio: 16 / 9; order: -1; }
  .blog-page-title { font-size: 24px; }
}
