/*
Theme Name: Teknobu
Theme URI: https://example.com
Author: Teknobu
Description: Hızlı, SEO odaklı teknoloji blog teması (statik HTML şablondan dönüştürüldü).
Version: 1.3.38
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teknobu
*/

/* --- Base template CSS (as provided) --- */
:root {
  --primary: #d40000;
  --primary-dark: #b00000;
  --primary-gradient: linear-gradient(135deg, #ff416c 0%, #d40000 100%);
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --logo-max-width: 180px;
  --logo-height: 28px;
  --brand-mark-size: 38px;
  --header-ads-max: 970px;
  --header-ads-min-h: 90px;
  --header-ads-gap: 12px;
  --sidebar-ad-max: 300px;
  --sidebar-ad-min-h: 250px;
}

[data-theme="dark"] {
  --bg: #020617;
  --bg-alt: #0f172a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --card-bg: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/*
  Mobile overflow guard:
  Some post content (tables, embeds, long URLs, code blocks) can create
  horizontal overflow and cause the page to "slide" left/right on phones.
*/
html, body { max-width: 100%; overflow-x: hidden; }
.ad-banner-top {
  background: var(--bg-alt);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}


body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease;
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; cursor: pointer; transition: 0.3s; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ── Single post wrapper ────────────────────────────────────────────────── */
/* single-page-wrap → replaced by sp-page layout */

/* --- MODERN SEARCH OVERLAY --- */
#searchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#searchOverlay.active { display: flex; opacity: 1; }
.search-container { width: 90%; max-width: 800px; text-align: center; position: relative; }
.search-input-wrapper { position: relative; margin-top: 30px; }
.search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #fff;
  padding: 15px 0;
  font-size: 2.5rem;
  color: #fff;
  outline: none;
  font-weight: 700;
}
.close-search-btn {
  position: absolute;
  top: -100px;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.close-search-btn:hover { background: var(--primary); transform: rotate(90deg); }

/* --- HEADER (GRADIENT) --- */
.site-header {
  background: var(--primary-gradient);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  box-shadow: 0 4px 20px rgba(212, 0, 0, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.6rem; color: #fff; }
.brand-mark { width: var(--brand-mark-size); height: var(--brand-mark-size); background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 900; }

.brand-logo{height:var(--logo-height);max-width:var(--logo-max-width);width:auto;display:block;}

.main-nav { display: flex; gap: 25px; align-items: center; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.main-nav a:hover, .main-nav a.active { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-login-main {
  background: #fff;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
}
.btn-login-main:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.profile-btn {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-btn img { width: 100%; height: 100%; object-fit: cover; display:block; }

.mobile-toggle { display: none; color: #fff; }

/* --- AD AREA --- */
/* .ad-banner-top → moved to Auto Ads CLS Fix block */
.ad-placeholder {
  max-width: var(--header-ads-max);
  min-height: var(--header-ads-min-h);
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.teknobu-ad-widget {
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden; /* clip any fixed-width ad — prevents horizontal page scroll */
  -webkit-overflow-scrolling: touch;
}
.teknobu-header-ads{max-width:var(--header-ads-max);margin:0 auto;overflow-x:hidden;}
.teknobu-sidebar-ad{max-width:var(--sidebar-ad-max);margin:0 auto;overflow-x:hidden;}

/* ===== AdSense / Google Ads overflow fix =====
   Prevents any ad unit or iframe from pushing the page wider than the viewport
   and causing horizontal scroll / layout shift on mobile.
   ============================================= */
ins.adsbygoogle,
.adsbygoogle,
.google-auto-placed,
.adsbygoogle-noablate,
iframe[id^="google_ads"],
iframe[src*="doubleclick"],
iframe[src*="googlesyndication"],
iframe[src*="googleads"] {
  max-width: 100% !important;
  width: 100% !important;        /* force full-width so responsive units fill correctly */
  overflow: hidden !important;
  box-sizing: border-box !important;
}
ins.adsbygoogle {
  display: block !important;
}
/* iframes injected inside the ins tag */
ins.adsbygoogle > iframe,
.google-auto-placed > iframe,
.adsbygoogle-noablate > iframe {
  max-width: 100% !important;
  width: 100% !important;
}
/* Google auto-ads anchor / vignette wrappers */
#google-auto-placed,
.google_ad_container {
  max-width: 100% !important;
  overflow: hidden !important;
}

.teknobu-header-ads .teknobu-ad-widget + .teknobu-ad-widget { margin-top: var(--header-ads-gap); }

/* --- MOBILE DRAWER --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(4px);
  z-index: 3999;
  display: none;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100%;
  background: var(--bg);
  z-index: 4000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
  box-shadow: 10px 0 40px rgba(0,0,0,0.1);
}
.mobile-drawer.active { left: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.mobile-links a {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.mobile-links a:hover { background: var(--bg-alt); color: var(--primary); }

/* --- LAYOUT --- */
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin: 40px auto; max-width: 100%; box-sizing: border-box; }

/* --- BLOG CARDS --- */
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
.section-title::before { content: ''; width: 4px; height: 30px; background: var(--primary); border-radius: 4px; }

.post-list { display: flex; flex-direction: column; gap: 35px; }
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 25px;
  transition: 0.4s;
  border: 1px solid var(--border);
  /* Keep cards a consistent height even if post content is long */
  height: 240px;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--primary); }

.post-thumb { position: relative; overflow: hidden; height: 100%; min-height: 0; }
.post-thumb a{display:block;width:100%;height:100%;}
.post-thumb a img{width:100%;height:100%;object-fit:cover;}
.post-card[data-url]{cursor:pointer;}
.post-card[data-url]:focus{outline:2px solid var(--primary);outline-offset:2px;}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: 0.6s; }
.post-card:hover .post-thumb img { transform: scale(1.08); }
.cat-tag { position: absolute; top: 15px; left: 15px; background: var(--primary); color: #fff; padding: 5px 15px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; z-index: 2; }

.post-info { padding: 20px 20px 20px 0; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; min-height: 0; height: 100%; }
.post-meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-info h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn-read {
  align-self: flex-start;
  margin-top: auto;
  background: var(--primary-gradient);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-read:hover { box-shadow: 0 10px 20px rgba(212,0,0,0.25); transform: translateY(-2px); }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 60px; flex-wrap: wrap; }
.page-num { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--card-bg); font-weight: 700; color: var(--text); border: 1px solid var(--border); transition: 0.2s; }
.page-num.active, .page-num.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-num:hover:not(.active):not(.current) { background: var(--bg-alt); transform: translateY(-2px); }

/* --- MODERN SIDEBAR --- */
.sidebar-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
}
.sidebar-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; color: var(--text); position: relative; padding-bottom: 10px; }
.sidebar-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }

.trend-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: 0.3s;
  border: 1px solid transparent;
}
.trend-card:hover { transform: translateX(5px); border-color: var(--primary); background: var(--card-bg); }
.trend-rank { font-size: 1.6rem; font-weight: 900; color: var(--primary); opacity: 0.8; font-style: italic; }
.trend-card h4 { font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--text); }

.category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 20px;
  background: var(--bg-alt);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
}
.pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.05); }

/* --- FOOTER --- */
.site-footer { background: #020617; color: #94a3b8; padding: 80px 0 30px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; font-weight: 700; }
.footer-links a { display: block; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; transform: translateX(5px); }

/* Footer menu wrappers (remove bullets) */
.footer-links ul{ list-style:none; margin:0; padding:0; }
.footer-links li{ margin:0; padding:0; }
.footer-links li a{ display:block; margin-bottom:12px; font-size:0.95rem; }

/* Modern "Son Yazılar" */
.footer-posts{ display:flex; flex-direction:column; gap:12px; }
.footer-post{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.55);
  border-radius: 14px;
  transition: 0.25s;
}
.footer-post:hover{ border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }

.footer-post--text{ gap:0; align-items:flex-start; padding:12px 14px; position:relative; }
.footer-post--text::before{
  content:'';
  position:absolute;
  left:12px;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius: 3px;
  background: var(--primary);
  opacity: 0.9;
}
.footer-post--text .footer-post-meta--text{ padding-left:14px; }
.footer-post--text .footer-post-title{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.footer-post-thumb{ width:54px; height:54px; border-radius: 12px; overflow:hidden; background: rgba(148,163,184,0.16); flex: 0 0 54px; }
.footer-post-thumb-img{ width:100%; height:100%; object-fit:cover; display:block; }
.footer-post-thumb-ph{ display:block; width:100%; height:100%; }
.footer-post-meta{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.footer-post-title{ color:#fff; font-weight:800; font-size:0.95rem; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.footer-post-date{ color:#94a3b8; font-size:0.78rem; font-weight:700; letter-spacing:0.2px; }
.footer-post-empty{ color:#94a3b8; font-size:0.9rem; }

/* --- SINGLE POST (modern) --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 10px 0 22px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.6; }





/* ══════════════════════════════════════════════════════════════════
   SP — SINGLE POST  (Yeni tasarım, simetrik layout)
   ══════════════════════════════════════════════════════════════════ */

/* Sayfa wrapper — header/footer dışındaki alan */
.sp-page {
  background: var(--bg);
  padding: 32px 0 64px;
}

/* İki sütunlu grid — anasayfayla aynı max-width ve padding */
.sp-inner {
  max-width: var(--container);   /* anasayfayla aynı: 1200px */
  margin: 0 auto;
  padding: 0 20px;               /* her iki yanda eşit */
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;  /* sidebar 340px — anasayfayla aynı */
  gap: 40px;                     /* anasayfayla aynı */
  align-items: start;
}

@media (max-width: 1024px) {
  .sp-inner {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .sp-sidebar { display: none; }
}
@media (max-width: 480px) {
  .sp-inner { padding: 0 12px; }
}

/* Ana içerik sütunu — grid'de taşmayı önle */
.sp-main { min-width: 0; }

/* ── Kart ─────────────────────────────────────────────── */
.sp-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 8px 32px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

/* ── Kapak ────────────────────────────────────────────── */
.sp-cover {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--bg-alt);
}
.sp-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}

/* ── Başlık alanı ─────────────────────────────────────── */
.sp-head {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) { .sp-head { padding: 18px 18px 16px; } }

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-bottom: 14px;
}
.sp-cat {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  transition: opacity .2s;
}
.sp-cat:hover { opacity: .8; }
.sp-meta-info, .sp-meta-update {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sp-meta-update { font-style: italic; }
.sp-dot { color: var(--text-muted); opacity: .4; font-size: 0.75rem; }

.sp-title {
  font-size: clamp(1.5rem, 3.8vw, 2.15rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
  letter-spacing: -0.02em;
}

/* ── İçerik ───────────────────────────────────────────── */
.sp-content {
  padding: 32px;
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 600px) { .sp-content { padding: 18px; font-size: 1rem; } }

.sp-content p { margin: 0 0 22px; }
.sp-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Başlıklar */
.sp-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 900;
  color: var(--text);
  margin: 40px 0 14px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  line-height: 1.3;
}
.sp-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--text);
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  line-height: 1.35;
}
.sp-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 22px 0 10px;
}

/* Listeler */
.sp-content ul, .sp-content ol { margin: 0 0 22px 20px; }
.sp-content li { margin: 10px 0; line-height: 1.7; }
.sp-content ul li::marker { color: var(--primary); }

/* Alıntı */
.sp-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(212,0,0,.05) 0%, transparent 100%);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
}

/* Görseller */
.sp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 8px auto 24px;
}
.sp-content iframe, .sp-content video,
.sp-content embed, .sp-content object {
  max-width: 100%;
  border-radius: 10px;
}

/* Tablolar — kendi içinde kaydırma, sıkıştırma yok */
.sp-content figure.wp-block-table,
.sp-content .table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 24px 0;
  /* tablonun içeriği ne kadar geniş olursa olsun sadece kendi içinde kayar */
  display: block;
}
.sp-content table {
  min-width: 520px;             /* ← küçük ekranda kart sıkışmaz, tablo kayar */
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--card-bg);
}
.sp-content table thead {
  background: linear-gradient(90deg, #b80000 0%, var(--primary) 100%);
  position: sticky;
  top: 0;
}
.sp-content table thead th {
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 16px;
  text-align: left;
  border: none;
  white-space: nowrap;
}
.sp-content table tbody tr:nth-child(even) { background: var(--bg-alt); }
.sp-content table tbody tr { transition: background .15s; }
.sp-content table tbody tr:hover { background: rgba(212,0,0,.06); }
.sp-content table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
  /* hiç word-break yok — tablo kayar, hücre sıkışmaz */
  white-space: normal;
}
.sp-content table tbody tr:last-child td { border-bottom: none; }

/* Kod */
.sp-content pre {
  background: #0d1117;
  color: #c9d1d9;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 24px;
  border: 1px solid rgba(255,255,255,.08);
}
.sp-content code {
  background: var(--bg-alt);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.87em;
  word-break: break-word;
}
.sp-content pre code { background: transparent; padding: 0; word-break: normal; }

/* ── İlgili yazılar ───────────────────────────────────── */
.sp-related {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 24px 32px 28px;
}
@media (max-width: 600px) { .sp-related { padding: 18px; } }

.sp-related-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 680px) {
  .sp-related-grid { grid-template-columns: 1fr; gap: 10px; }
}

.sp-rel-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.sp-rel-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.sp-rel-img { height: 130px; overflow: hidden; background: var(--bg-alt); }
.sp-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sp-rel-card:hover .sp-rel-img img { transform: scale(1.05); }
.sp-rel-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sp-rel-cat {
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}
.sp-rel-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-rel-date { font-size: 0.72rem; color: var(--text-muted); margin-top: auto; padding-top: 4px; }

/* ── Yorumlar ─────────────────────────────────────────── */
.sp-comments {
  border-top: 1px solid var(--border);
  padding: 24px 32px 28px;
}
@media (max-width: 600px) { .sp-comments { padding: 16px 18px; } }

/* ── Sidebar ──────────────────────────────────────────── */
.sp-sidebar { position: sticky; top: 100px; }

/* --- COMMENTS --- */
.comments-wrap { margin-top: 18px; padding: 0 28px 28px; }
.comments-title { font-size: 1.25rem; font-weight: 900; margin: 0 0 14px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.comment-item {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 14px;
}
.comment-meta { display:flex; gap: 10px; align-items:center; margin-bottom: 8px; }
.comment-meta .avatar { border-radius: 50%; }
.comment-meta .fn { font-weight: 900; }
.comment-meta time { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; }
.comment-content { color: var(--text); }
.comment-reply-link {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 900;
  color: var(--primary);
}
.comment-reply-link:hover { text-decoration: underline; }

.comment-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.comment-form textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  color: var(--text);
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
}
.comment-form .form-submit input[type="submit"]{
  background: var(--primary-gradient);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}
.comment-form .form-submit input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212,0,0,0.25); }

.must-login {
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  font-weight: 700;
}
.must-login a { color: var(--primary); font-weight: 900; }
.must-login a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr; }

  .main-nav, .header-actions .btn-login-main { display: none; }
  .mobile-toggle { display: block; margin-right: 15px; }
  .post-card { grid-template-columns: 1fr; height: auto; }
  .post-info { padding: 25px; }
  .post-thumb { height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}


/* --- FOOTER BOTTOM BAR --- */
.footer-bottom-bar{
  border-top:1px solid #1e293b;
  margin-top:50px;
  padding-top:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:0.8rem;
}
.footer-bottom-left{ text-align:left; }
.footer-bottom-right{ margin-left:auto; }
.footer-legal{
  display:flex;
  justify-content:flex-end;
}
.footer-legal-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}
.footer-legal-menu li{ margin:0; padding:0; }
.footer-legal a{
  color:#94a3b8;
  font-size:0.8rem;
  font-weight:800;
  padding:6px 10px;
  border-radius: 10px;
  background: rgba(148,163,184,0.08);
}
.footer-legal a:hover{ color:#fff; transform: translateX(0); background: rgba(255,255,255,0.10); }

@media (max-width: 600px){
  .footer-bottom-bar{ flex-direction:column; align-items:flex-start; }
  .footer-bottom-right{ margin-left:0; }
  .footer-legal{ justify-content:flex-start; }
}


/* --- TABLE OF CONTENTS (İÇİNDEKİLER) --- */
.toc-box{ margin: 18px 0 22px; background: var(--bg-alt); border:1px solid var(--border); border-radius: 16px; padding: 14px; }
.toc-head{ display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.toc-title{ font-weight: 900; letter-spacing: 0.2px; }
.toc-toggle{ font-weight: 900; color: var(--primary); padding: 6px 10px; border-radius: 10px; background: rgba(212,0,0,0.08); }
.toc-toggle:hover{ background: rgba(212,0,0,0.14); transform: translateY(-1px); }
.toc-nav{ margin-top: 10px; }
.toc-list{ list-style:none; margin: 0; padding: 0; display:flex; flex-direction:column; gap: 6px; }
.toc-item a{ display:block; padding: 10px 12px; border-radius: 12px; background: var(--card-bg); border:1px solid var(--border); font-weight: 800; color: var(--text); }
.toc-item a:hover{ border-color: var(--primary); transform: translateX(3px); }
.toc-item.toc-l3 a{ font-weight: 800; opacity: 0.92; margin-left: 14px; }

/* --- FAQ (DETAILS) --- */
.faq-wrap{ margin: 26px 0 0; padding: 0 0 6px; }
.faq-title{ font-size: 1.25rem; font-weight: 900; margin: 0 0 12px; }
.faq-list{ display:flex; flex-direction:column; gap: 10px; }
.faq-item{ border:1px solid var(--border); background: var(--bg-alt); border-radius: 16px; padding: 0; overflow:hidden; }
.faq-q{ cursor:pointer; padding: 14px 14px; font-weight: 900; list-style:none; }
.faq-q::-webkit-details-marker{ display:none; }
.faq-item[open] .faq-q{ background: var(--card-bg); border-bottom:1px solid var(--border); }
.faq-a{ padding: 14px; color: var(--text); }
.faq-a p{ margin: 0 0 10px; }


/* TOC numbering */
.toc-num{display:inline-block;min-width:2.2em;color:var(--text-muted);font-weight:800;margin-right:8px;}
.toc-item.toc-l3 .toc-num{min-width:2.8em;}


/* In-article suggestions */
.inarticle-suggest{background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 18px 14px;margin:22px 0;}
.inarticle-suggest-head{font-weight:900;font-size:1rem;color:var(--text);margin-bottom:12px;display:flex;align-items:center;gap:10px;}
.inarticle-suggest-head::before{content:'';width:10px;height:10px;border-radius:999px;background:var(--primary);}
.inarticle-suggest-links{display:flex;flex-direction:column;gap:10px;}
.inarticle-suggest-links{display:flex;flex-direction:column;gap:10px;} 
.inarticle-suggest-link{background:var(--card-bg);border:1px solid var(--border);border-radius:14px;padding:12px;font-weight:800;line-height:1.35;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:all .2s ease;} 
.inarticle-suggest-link:hover{border-color:var(--primary);background:rgba(212,0,0,0.05);transform:translateY(-2px);} 
@media(max-width:640px){.inarticle-suggest-links{flex-direction:column;}}


/* FAQ block */
.teknobu-faq{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius-lg);padding:22px;margin:28px 0;}
.teknobu-faq-title{font-size:1.15rem;font-weight:900;margin-bottom:14px;display:flex;align-items:center;gap:10px;}
.teknobu-faq-title::before{content:'';width:4px;height:22px;background:var(--primary);border-radius:4px;}
.teknobu-faq-items details{background:var(--bg-alt);border:1px solid var(--border);border-radius:14px;padding:12px 14px;margin-bottom:10px;}
.teknobu-faq-items details[open]{background:var(--card-bg);border-color:var(--primary);box-shadow:0 10px 25px rgba(0,0,0,0.06);}
.teknobu-faq-items summary{cursor:pointer;font-weight:800;list-style:none;}
.teknobu-faq-items summary::-webkit-details-marker{display:none;}
.teknobu-faq-items summary:after{content:'+';float:right;color:var(--text-muted);font-weight:900;}
.teknobu-faq-items details[open] summary:after{content:'–';color:var(--primary);} 
.teknobu-faq-items p{margin-top:10px;color:var(--text-muted);} 

/* --- ACCESSIBILITY --- */
.skip-link{position:absolute;left:-9999px;top:10px;z-index:6000;padding:10px 14px;background:#fff;color:#111827;border-radius:10px;font-weight:800;}
.skip-link:focus{left:10px;outline:3px solid #fff;outline-offset:3px;}
/* --- HOMEPAGE FEATURED SLIDER + TREND PANEL --- */
.home-featured{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;margin:34px auto 12px;align-items:stretch;}
.featured-slider{position:relative;min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card-bg);box-shadow:0 10px 28px rgba(15,23,42,.06);}
.featured-track{position:relative;min-height:300px;}
.featured-slide{display:none;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:300px;}
.featured-slide.is-active{display:grid;}
.featured-image{display:block;min-height:300px;background:var(--bg-alt);overflow:hidden;}
.featured-image img{display:block;width:100%;height:100%;min-height:300px;object-fit:cover;}
.featured-content{display:flex;flex-direction:column;justify-content:center;padding:30px 32px;}
.featured-kicker{display:inline-flex;align-self:flex-start;margin-bottom:12px;color:var(--primary);font-size:.75rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.featured-content h2{margin:0 0 12px;font-size:clamp(1.35rem,2.3vw,2rem);line-height:1.18;}
.featured-content h2 a{color:var(--text);text-decoration:none;}

.featured-content p{margin:0 0 18px;color:var(--text-muted);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.featured-cta{align-self:flex-start;color:#fff;background:var(--primary);border-radius:999px;padding:10px 16px;font-weight:800;text-decoration:none;}
.featured-cta:hover{color:#fff;filter:brightness(.92);transform:translateY(-1px);}
.featured-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px;border-top:1px solid var(--border);background:var(--bg-alt);}
.featured-controls button{border:0;background:transparent;color:var(--text);cursor:pointer;font:inherit;font-weight:900;}
.featured-prev,.featured-next{width:34px;height:34px;border:1px solid var(--border)!important;border-radius:50%;background:var(--card-bg)!important;}
.featured-prev:hover,.featured-next:hover{color:#fff;background:var(--primary)!important;border-color:var(--primary)!important;}
.featured-dots{display:flex;align-items:center;justify-content:center;gap:7px;}
.featured-dot{width:8px;height:8px;padding:0;border-radius:50%;background:var(--border)!important;}
.featured-dot.is-active{width:22px;border-radius:99px;background:var(--primary)!important;}
.home-trend-panel{min-width:0;}
.home-trend-panel .sidebar-box{height:100%;margin:0;}
.home-trend-panel .sidebar-title{margin-bottom:14px;}
.home-trend-panel .trend-card{min-height:62px;}
.trend-card-title{display:block;color:var(--text);font-weight:800;line-height:1.35;}
.trend-empty{color:var(--text-muted);}
.home-featured + .main-grid{margin-top:28px;}
.section-title{line-height:1.2;}
img{max-width:100%;}
@media (max-width:1024px){
  .home-featured{grid-template-columns:1fr;}
}
@media (max-width:680px){
  .home-featured{margin-top:22px;gap:18px;}
  .featured-slide{grid-template-columns:1fr;min-height:0;}
  .featured-image,.featured-image img{min-height:190px;height:190px;}
  .featured-content{padding:22px;}
  .featured-content h2{font-size:1.35rem;}
  .featured-content p{-webkit-line-clamp:3;font-size:.92rem;}
  .home-featured + .main-grid{margin-top:22px;}
}
@media (prefers-reduced-motion:reduce){
  .featured-slide,.featured-cta,.featured-prev,.featured-next{transition:none!important;}
}
/* ── Single page: very small screens ──────────────────────────────────── */

