/* Chaosmos News — site stilleri (Next.js sürümünden taşındı) */
:root { --font-head: "Manrope"; --font-body: "Inter"; }
/* ===== Tasarım belirteçleri ===== */
:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #5b5bd6;
  --accent-soft: #eef0ff;
  --dark: #0f1d3a;
  --dark-text: #ffffff;
  --gold: #f5c451;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --head: var(--font-head), "Manrope", system-ui, sans-serif;
  --body: var(--font-body), "Inter", system-ui, sans-serif;
}
/* Koyu tema: sistem ayarı (kullanıcı açık seçmediyse) ya da elle seçim */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #131c2e; --text: #e8edf6; --text-2: #c3cddd; --muted: #8b98ad; --line: #23304a;
    --accent: #a5a8ff; --accent-soft: #23295a; --dark: #e8edf6; --dark-text: #0b1120;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #131c2e; --text: #e8edf6; --text-2: #c3cddd; --muted: #8b98ad; --line: #23304a;
  --accent: #a5a8ff; --accent-soft: #23295a; --dark: #e8edf6; --dark-text: #0b1120;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, iframe, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 50; }
.box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.label { font: 700 0.9rem var(--head); letter-spacing: 0; color: var(--text-2); margin: 0 0 14px; }

/* ===== Üst bilgi ===== */
.site-header { position: relative; z-index: 30; padding: 14px 0 22px; }
.header-bar {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 72px; padding: 0 16px 0 14px; background: var(--surface); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}
.header-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.header-bar .logo { justify-self: center; font-size: 1.5rem; }
/* Ana menü ve açılır listeler */
.mainnav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 9px; border-radius: 10px; font: 700 0.95rem var(--head); color: var(--text); white-space: nowrap; }
.nav-link.accent { color: var(--accent); }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--accent); }
.nav-link .chev { opacity: 0.7; transition: transform 0.2s; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }
.nav-badge { font: 700 0.7rem/1 var(--body); color: #fff; background: #22a55b; padding: 4px 8px; border-radius: 999px; letter-spacing: 0.01em; }
.dd {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* fare boşlukta kaybolmasın */
.nav-item:hover > .dd, .nav-item:focus-within > .dd { opacity: 1; visibility: visible; transform: none; }
.dd-cols { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); min-width: 360px; column-gap: 4px; }
.drawer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd a { padding: 9px 12px; border-radius: 9px; font: 600 0.92rem var(--head); color: var(--text-2); }
.dd a:hover, .dd a:focus-visible { background: var(--bg); color: var(--accent); outline: none; }
/* Tema düğmesi */
.theme-toggle { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg); }
.theme-toggle button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.theme-toggle button:hover { color: var(--text); }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 1.6rem/1 var(--head); letter-spacing: -0.03em; color: var(--text); }
.logo-light { font-weight: 500; margin-left: 2px; color: var(--muted); }
.logo-mark { color: var(--gold); font-size: 1.3rem; }
.logo-sm { font-size: 1.25rem; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); }
.icon-btn:hover { background: var(--bg); }
.pill-btn, .dark-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--dark); color: var(--dark-text); font: 700 0.92rem var(--head); padding: 11px 18px; border-radius: 999px; white-space: nowrap; }
.pill-btn:hover, .dark-btn:hover { opacity: 0.9; }

/* Çekmece menü (JS'siz) */
.drawer { flex: none; }
.drawer summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary:hover { background: var(--bg); }
.drawer-panel { position: absolute; top: calc(100% + 10px); left: 0; width: 280px; max-height: 75vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15); padding: 14px; display: flex; flex-direction: column; }
.drawer-panel a { padding: 9px 10px; border-radius: var(--radius-sm); font: 600 0.95rem var(--head); }
.drawer-panel a:hover { background: var(--bg); color: var(--accent); }
.drawer-panel hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.drawer-group { display: flex; flex-direction: column; margin-bottom: 6px; }
.drawer-title { margin: 8px 10px 4px; font: 700 0.75rem var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ===== Ortak parçalar ===== */
.pill { display: inline-block; font: 600 0.75rem/1 var(--body); color: var(--accent); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; }
.pill:hover { filter: brightness(0.97); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 600 0.8rem var(--head); color: var(--text-2); }
.meta-row .chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.meta-i { display: inline-flex; align-items: center; gap: 4px; }
.meta-light, .meta-light .chip { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.media-link { display: block; width: 100%; height: 100%; }
.media-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%;
  font-size: 1.9rem; color: var(--gold);
  background: radial-gradient(circle at 72% 28%, rgba(245, 196, 81, 0.28), transparent 45%), radial-gradient(circle at 20% 85%, rgba(99, 102, 241, 0.45), transparent 55%), #0f1d3a;
}
.ph small { font: 700 0.68rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: #e2e8f0; }

/* Beyaz kart */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.card-media .pill { position: absolute; top: 12px; left: 12px; }
.card:hover .media-link img, .ov:hover .media-link img { transform: scale(1.04); }
.card-body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: space-between; }
.card-title { font-size: 1.18rem; line-height: 1.32; margin: 0; }
.card-title a:hover { color: var(--accent); }

/* Görsel üstü kart */
.ov { position: relative; border-radius: var(--radius); overflow: hidden; background: #0f1d3a; isolation: isolate; }
.ov .media-link { position: absolute; inset: 0; z-index: -2; }
.ov-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 35, 0.15) 0%, rgba(10, 16, 35, 0.25) 40%, rgba(10, 16, 35, 0.85) 100%); pointer-events: none; }
.ov-top { position: absolute; top: 14px; left: 14px; }
.ov-top .pill { background: rgba(255, 255, 255, 0.92); color: var(--accent); }
.ov-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ov-title { margin: 0; color: #fff; line-height: 1.2; }
.ov-title a { color: #fff; }
.ov-lg { min-height: 440px; }
.ov-lg .ov-body { padding: 30px; }
.ov-lg .ov-title { font-size: clamp(1.6rem, 3.2vw, 2.35rem); max-width: 20ch; }
.ov-md { min-height: 214px; }
.ov-md .ov-title { font-size: 1.2rem; }
.ov-excerpt { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 0.98rem; max-width: 56ch; }
.ov-excerpt svg { vertical-align: -2px; }

/* ===== Manşet slider ===== */
.slider { position: relative; margin: 4px 0 44px; }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.ov-xl { min-height: 500px; border-radius: 0; }
.ov-xl .ov-body { padding: 40px 88px 44px; }
.ov-xl .ov-top { top: 20px; left: 88px; }
.ov-xl .ov-title { font-size: clamp(1.7rem, 3.6vw, 2.9rem); max-width: 24ch; }
.ov-xl .ov-excerpt { font-size: 1.05rem; }

.ov-xl .ov-shade { background: linear-gradient(90deg, rgba(10, 16, 35, 0.75) 0%, rgba(10, 16, 35, 0.35) 55%, rgba(10, 16, 35, 0.1) 100%), linear-gradient(180deg, transparent 40%, rgba(10, 16, 35, 0.7) 100%); }
.slider-arrow {
  position: absolute; top: 250px; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--text); background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2); transition: transform 0.15s, background 0.15s, opacity 0.2s;
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-bar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.slider-dots { display: flex; gap: 8px; flex: 1; }
.dot {
  position: relative; flex: 1; max-width: 80px; height: 5px; padding: 0; border: 0; border-radius: 99px;
  background: var(--line); cursor: pointer; overflow: hidden;
}
.dot:hover { background: #cbd5e1; }
.dot.on { background: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.dot-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: dotfill linear forwards; }
.dot.on:not(:has(.dot-fill)) { background: var(--accent); }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* geniş tıklama alanı */
.dot::before { content: ""; position: absolute; inset: -10px 0; }
.slider-count { font: 700 0.85rem var(--head); color: var(--text-2); font-variant-numeric: tabular-nums; }
.slider-pause {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.slider-pause:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .slider-track { scroll-behavior: auto; } }

/* ===== Ana sayfa ===== */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin: 4px 0 44px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.tiles-wrap { margin-bottom: 44px; }
.tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 18px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s; }
.tile:hover { transform: translateY(-2px); }
.tile:hover strong { color: var(--accent); }
.tile-img { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile strong { font: 800 0.98rem var(--head); }
.rail { margin-top: 40px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; }
.more { font: 700 0.85rem var(--head); color: var(--accent); }

/* ===== Yerleşim ===== */
.layout { display: block; }
.grid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }


/* ===== Arşiv ===== */
.archive-head { padding: 18px 0 26px; }
.archive-head h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 0 0 6px; line-height: 1.1; }
.eyebrow { margin: 0 0 6px; font: 700 0.75rem var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 36px 0 56px; }
.pagination a, .pagination .current { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface); font: 700 0.9rem var(--head); box-shadow: var(--shadow); }
.pagination a:hover { color: var(--accent); }
.pagination .current { background: var(--dark); color: var(--dark-text); }
.pg { display: inline-flex; gap: 8px; align-items: center; }

/* ===== Yazı sayfası ===== */
.layout-article { margin: 4px auto 0; max-width: 860px; }
.article { overflow: hidden; }
.article-hero { margin: 0; }
.article-hero img { width: 100%; display: block; max-height: 520px; object-fit: cover; }
.credit { padding: 8px 40px 0; font-size: 0.78rem; color: var(--muted); }
.credit a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .credit { padding: 8px 18px 0; } }
.article-inner { padding: 30px 40px 36px; }
.crumbs { display: flex; align-items: center; gap: 6px; font: 600 0.8rem var(--head); color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.18; margin: 0 0 16px; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--text-2); margin: 0 0 20px; }
.lead svg { color: var(--accent); vertical-align: -2px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.prose { font-size: 1.1rem; line-height: 1.8; color: var(--text-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.3; margin: 1.8em 0 0.5em; color: var(--text); }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.3rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); display: block; margin: 0 auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-caption-text { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.6em 0; padding: 0.3em 0 0.3em 1.2em; font: 600 1.2rem/1.55 var(--head); color: var(--text); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose .wp-caption { max-width: 100% !important; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .gallery, .prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.prose .gallery br { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.tags a { display: inline-block; font: 600 0.82rem var(--head); padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--text-2); }
.tags a:hover { color: var(--accent); }
.share { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.share a { font: 700 0.8rem var(--head); padding: 8px 14px; border-radius: 999px; background: var(--bg); }
.share a:hover { background: var(--accent-soft); color: var(--accent); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #0f1d3a; color: var(--gold); }
.byline strong { display: block; font-family: var(--head); }
.comments { margin-top: 34px; }
.comments h2 { font-size: 1.15rem; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.comment .who { font-weight: 700; }
.related { margin: 48px 0 20px; }
.page-box { max-width: 860px; margin: 4px auto 40px; }

/* ===== Alt bilgi ===== */
.site-footer { margin-top: 50px; background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 24px; }
.footer-row { display: grid; grid-template-columns: 1.6fr 1.6fr 1fr; gap: 40px; }
.footer-about-title { font: 800 1.1rem/1.4 var(--head); margin: 14px 0 6px; max-width: 34ch; }
.footer-row .muted { max-width: 46ch; margin: 0; line-height: 1.6; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; font: 600 0.9rem var(--head); }
.footer-row nav a:hover { color: var(--accent); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ===== Arama ===== */
.search-page input { width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); margin-bottom: 24px; }

/* ===== Duyarlı ===== */
@media (max-width: 1000px) {
  .mainnav { display: none; }
  .pill-btn { display: none; }
}
@media (max-width: 1100px) {
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .slider-arrow { top: 220px; width: 40px; height: 40px; }
  .ov-xl { min-height: 440px; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .ov-lg { min-height: 400px; }
  .footer-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .ov-xl { min-height: 420px; }
  .ov-xl .ov-body { padding: 22px 20px 26px; }
  .ov-xl .ov-top { top: 14px; left: 14px; }
  .ov-xl .ov-shade { background: linear-gradient(180deg, rgba(10, 16, 35, 0.1) 0%, rgba(10, 16, 35, 0.35) 45%, rgba(10, 16, 35, 0.88) 100%); }
  .slider-arrow { display: none; }
  .site-header { padding: 10px 0 16px; }
  .header-bar { height: 62px; padding: 0 8px; gap: 4px; border-radius: 14px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .header-bar .logo { font-size: 1.12rem; gap: 4px; }
  .header-bar .logo-mark { font-size: 0.95rem; }
  .theme-toggle { padding: 3px; }
  .theme-toggle button { width: 30px; height: 30px; }
  .header-actions { gap: 4px; }
  .logo { font-size: 1.3rem; }
  .pill-btn { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .ov-lg { min-height: 360px; }
  .ov-lg .ov-body { padding: 20px; }
  .ov-excerpt { display: none; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 12px 4px; }
  .tile .small { display: none; }
  .tile strong { font-size: 0.8rem; }
  .tile-img { width: 44px; height: 44px; }
  .grid2, .grid4 { grid-template-columns: 1fr; }
  .article-inner { padding: 22px 18px 28px; }
  .prose { font-size: 1.04rem; }
  .drawer-panel { left: 16px; right: 16px; width: auto; }
}

/* ===== 404 sayfası ===== */
.nf { text-align: center; padding: 44px 24px 40px; margin: 4px 0 40px; }
.nf-code { margin: 0; font: 800 clamp(4rem, 12vw, 7rem)/1 var(--head); letter-spacing: -0.04em; color: var(--text); }
.nf-code span { display: inline-block; color: var(--gold); font-size: 0.6em; vertical-align: 0.25em; margin: 0 0.06em; animation: nfspin 8s linear infinite; }
@keyframes nfspin { to { transform: rotate(360deg); } }
.nf h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 14px 0 8px; }
.nf-text { max-width: 52ch; margin: 0 auto 24px; color: var(--muted); font-size: 1.05rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.nf-actions .dark-btn { padding: 12px 20px; }
.nf-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.nf-search input { border: 0; background: transparent; font: inherit; color: var(--text); padding: 11px 0; width: 220px; outline: none; }
.nf-search:focus-within { border-color: var(--accent); }
.nf-hero { margin-bottom: 40px; }
@media (prefers-reduced-motion: reduce) { .nf-code span { animation: none; } }
@media (max-width: 640px) { .nf { padding: 32px 16px; } .nf-search, .nf-search input { width: 100%; } }

/* ===== PHP sürümüne özgü ekler ===== */
.notice { padding: 12px 16px; border-radius: 10px; font-weight: 500; margin: 0 0 16px; }
.notice.ok { background: #e8f6ee; color: #1e6b45; }
.notice.err { background: #fee4e2; color: #b42318; }
.notice.warn { background: #fef3c7; color: #78350f; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-box { display: grid; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-box h2 { margin: 0; font-size: 1.15rem; }
.form-box label { display: grid; gap: 6px; font: 600 0.9rem var(--head); }
.form-box input, .form-box textarea { font: inherit; font-size: 1rem; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 100%; }
.form-box input:focus, .form-box textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form-box button { justify-self: start; border: 0; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment.reply { margin-left: 28px; }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.byline-avatar { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.prose .video { margin: 1.6em 0; }
.prose .yt { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.prose .yt img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; opacity: 0.85; }
.prose .yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #e00; border-radius: 12px; }
.prose .yt .play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.prose .ozet { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 18px; }
.prose .uyari { background: #fff6df; border: 1px solid #efd796; border-radius: 10px; padding: 10px 16px; color: #3b2f0b; }
.prose .sponsor-notu { border: 1px dashed var(--line); border-left: 4px solid var(--text); border-radius: 8px; padding: 10px 14px; font-size: 0.95rem; }
.prose details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.prose details summary { font-weight: 700; cursor: pointer; }
.dark-btn { border: 0; cursor: pointer; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Yazı içi reklam alanları */
.prose .ad, .ad { clear: both; margin: 28px auto; text-align: center; min-height: 90px; }
.ad .ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8a8f98); margin-bottom: 6px; }
.ad-preview { display: flex; align-items: center; justify-content: center; border: 2px dashed #e0a100; background: #fff8e1; color: #7a5800; border-radius: 10px; font: 600 14px/1.4 var(--font-body, sans-serif); }
.ad-preview.off { border-color: #bbb; background: #f4f4f4; color: #888; text-decoration: line-through; min-height: 44px; }
.term-intro { max-width: 760px; }
.term-intro p { margin: 0 0 10px; }
