/* CENTER GSM — Blog / Teknoloji Rehberi (liste + detay + admin) */

/* ============ SAYFA HERO ============ */
.page-hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(228, 17, 17, .07) 0%, rgba(228, 17, 17, 0) 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0 2.5rem;
}
.page-hero .ph-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .6rem;
}
.page-hero .ph-title {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.02;
}
.page-hero .ph-sub {
  margin-top: .75rem; max-width: 40rem; font-size: 15px; line-height: 1.6; color: var(--muted);
}

/* ============ LİSTE ============ */
.blog-wrap { padding: 1.75rem 0 3rem; }

.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.bf-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 9999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg);
  transition: all .2s var(--ease);
}
.bf-chip:hover { border-color: var(--fg); }
.bf-chip.active { background: var(--fg); color: #fff; border-color: var(--fg); }
.bf-chip .bf-n {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem;
  border-radius: 9999px; background: var(--surface-subtle); color: var(--muted);
  font-size: 11px; font-weight: 800;
}
.bf-chip.active .bf-n { background: rgba(255, 255, 255, .2); color: #fff; }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-premium);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.bc-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-subtle); }
.bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-card:hover .bc-media img { transform: scale(1.05); }
.bc-cat {
  position: absolute; left: .85rem; top: .85rem;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: .3rem .7rem; border-radius: 9999px; box-shadow: var(--shadow-md);
}

.bc-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.15rem 1.25rem; flex: 1; }
.bc-title { font-size: 1.05rem; font-weight: 800; line-height: 1.28; letter-spacing: -.02em; }
.bc-title a { transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-title a:hover { color: var(--primary); }
.bc-excerpt {
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin-top: auto; padding-top: .6rem; font-size: 12px; color: var(--muted);
}
.bc-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.bc-meta .icon { color: var(--muted-light); }
.bc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-light); }
.bc-views { margin-left: auto; }
.bc-more {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem;
  font-size: 13px; font-weight: 700; color: var(--primary);
}
.bc-more .icon { transition: transform .2s var(--ease); }
.blog-card:hover .bc-more .icon { transform: translateX(3px); }

.blog-empty { margin-top: 1rem; }

/* ============ DETAY ============ */
.blog-article { padding-bottom: 3.5rem; }

.ba-head { max-width: 46rem; padding-top: .5rem; }
.ba-cat {
  display: inline-flex; align-items: center;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 700; padding: .35rem .8rem; border-radius: 9999px;
  transition: background .2s;
}
.ba-cat:hover { background: var(--primary); color: #fff; }
.ba-title { margin-top: .9rem; font-size: clamp(1.7rem, 4.2vw, 2.75rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; }
.ba-excerpt { margin-top: .9rem; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.ba-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.1rem; font-size: 13px; color: var(--muted);
}
.ba-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.ba-meta .icon { color: var(--muted-light); }
.ba-meta .ba-author { font-weight: 700; color: var(--fg); }
.ba-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-light); }

.ba-cover-wrap { margin-top: 1.75rem; }
.ba-cover {
  margin: 0; border-radius: var(--radius-premium); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--surface-subtle);
}
.ba-cover img { width: 100%; max-height: 30rem; object-fit: cover; }

.ba-layout { max-width: 46rem; margin-top: 2rem; }

/* Gövde tipografisi (HTML içerik) */
.ba-body { padding: 1.75rem 1.5rem; font-size: 16.5px; line-height: 1.75; color: var(--fg); }
@media (min-width: 768px) { .ba-body { padding: 2.5rem 2.5rem; } }
.ba-body > :first-child { margin-top: 0; }
.ba-body > :last-child { margin-bottom: 0; }
.ba-body p { margin: 0 0 1.15rem; }
.ba-body h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 2rem 0 .85rem; }
.ba-body h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin: 1.6rem 0 .7rem; }
.ba-body h4 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
.ba-body ul, .ba-body ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.ba-body li { margin-bottom: .45rem; }
.ba-body a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ba-body a:hover { color: var(--primary-dark); }
.ba-body img { border-radius: 12px; margin: 1.4rem 0; border: 1px solid var(--border); }
.ba-body blockquote {
  margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 3px solid var(--primary);
  color: var(--muted); font-style: italic;
}
.ba-body strong, .ba-body b { font-weight: 700; color: var(--fg); }
.ba-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 14px; display: block; overflow-x: auto; }
.ba-body th, .ba-body td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.ba-body thead th { background: var(--surface-subtle); font-weight: 700; }

/* Paylaşım */
.ba-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  margin-top: 1.75rem; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.ba-share-label { display: inline-flex; align-items: center; gap: .45rem; font-size: 13px; font-weight: 700; }
.ba-share-label .icon { color: var(--primary); }
.ba-share-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.ba-share-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem; border-radius: 9999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg);
  transition: all .2s var(--ease);
}
.ba-share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ba-share-btn.wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.ba-share-btn.x:hover { background: #000; border-color: #000; color: #fff; }
.ba-share-btn.copy:hover { border-color: var(--fg); }

.ba-back { margin-top: 1.5rem; }

.ba-related { max-width: 80rem; margin-top: 3rem; }

/* ============ ADMIN ============ */
.admin-blog .abl-post { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.admin-blog .abl-thumb {
  flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 10px; overflow: hidden;
  background: var(--surface-subtle); border: 1px solid var(--border);
}
.admin-blog .abl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-blog .abl-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.admin-blog .abl-title { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.admin-blog .abl-title:hover { color: var(--primary); }
.admin-blog .abl-slug { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.bl-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; }
.bl-cover-prev {
  display: block; margin-top: .6rem; width: 100%; max-width: 14rem; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-subtle);
}
.bl-cover-prev img { width: 100%; height: auto; display: block; }

/* ============ KARANLIK MOD ============ */
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .ba-share,
:root[data-theme="dark"] .ba-cover { background: var(--surface); border-color: var(--border); }
:root[data-theme="dark"] .bf-chip { background: var(--surface); border-color: var(--border-strong); }
:root[data-theme="dark"] .bf-chip.active { background: var(--fg); color: var(--bg); }
:root[data-theme="dark"] .bf-chip.active .bf-n { color: var(--bg); }
:root[data-theme="dark"] .ba-share-btn { background: var(--surface); border-color: var(--border-strong); }
