:root {
  --navy-900: #0b1220;
  --navy-800: #0f1c33;
  --navy-700: #16233d;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 13px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-md: 0 16px 40px -12px rgba(15, 23, 42, .18), 0 4px 12px rgba(37, 99, 235, .05);
  --shadow-lg: 0 28px 60px -16px rgba(15, 23, 42, .22), 0 8px 20px rgba(37, 99, 235, .06);
  --glass-bg: rgba(11, 18, 32, .66);
  --glass-border: rgba(255, 255, 255, .1);
  --glass-blur: saturate(180%) blur(20px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1440px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--blue-600); text-decoration: none; transition: color .18s var(--ease); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: 'Roboto Slab', Georgia, serif; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
svg { flex-shrink: 0; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .post-card, .widget { opacity: 0; }
  .post-card.in-view, .widget.in-view { animation: fadeInUp .6s var(--ease) both; }
}

/* ---------- Sayfa gecisleri (View Transitions API) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: sm-page-out .28s var(--ease) both; }
  ::view-transition-new(root) { animation: sm-page-in .38s var(--ease) both; }
}
@keyframes sm-page-out { to { opacity: 0; transform: scale(.985); } }
@keyframes sm-page-in { from { opacity: 0; transform: scale(1.015); } }

/* ---------- Ust banner reklam alani ---------- */
.header-ad-slot { margin: 18px auto 0; }

/* ---------- Header (glass) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; transition: transform .25s var(--ease); }
.brand:hover { transform: scale(1.02); }
.brand img { width: 36px; height: 36px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text strong { font-family: 'Roboto Slab', serif; font-size: 1.12rem; color: #fff; font-weight: 700; letter-spacing: -0.01em; }
.brand .brand-text span { font-size: .72rem; color: #93c5fd; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.menu-toggle {
  display: none; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer; transition: background .18s var(--ease);
}
.menu-toggle:hover { background: rgba(255, 255, 255, .16); }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: #e2e8f0; font-weight: 600; font-size: .92rem; position: relative; padding: 4px 0; text-decoration: none; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), #60a5fa);
  transition: right .3s var(--ease); border-radius: 2px;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { right: 0; }
.search-form {
  display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 6px 14px; color: #94a3b8; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.search-form:focus-within { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.search-form input { border: none; background: none; font-size: .87rem; color: #fff; min-width: 140px; padding: 0; }
.search-form input::placeholder { color: #94a3b8; }
.search-form input:focus { outline: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
  color: #e2e8f0; cursor: pointer; padding: 0; transition: background .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .16); transform: rotate(-14deg) scale(1.06); }

/* ---------- Son Yazilar hover paneli ---------- */
.recent-dropdown { position: relative; }
.recent-toggle {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 8px 16px; color: #e2e8f0; font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: background .2s var(--ease);
}
.recent-toggle:hover { background: rgba(255, 255, 255, .16); }
.recent-panel {
  position: absolute; top: calc(100% + 14px); right: 0; width: 360px; z-index: 30;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 10px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.recent-dropdown:hover .recent-panel, .recent-dropdown.open .recent-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.recent-panel-item, .live-search-item {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius); transition: background .18s var(--ease);
}
.recent-panel-item:hover, .live-search-item:hover, .live-search-item.active { background: rgba(255, 255, 255, .07); text-decoration: none; }
.recent-panel-item img, .live-search-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.recent-panel-item span, .live-search-item span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.recent-panel-item strong, .live-search-item strong { color: #fff; font-size: .86rem; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-panel-item em, .live-search-item em { color: #93c5fd; font-size: .74rem; font-style: normal; }
.live-search-empty { padding: 16px; text-align: center; color: #94a3b8; font-size: .85rem; }
@media (max-width: 760px) {
  .recent-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(16px); }
  .recent-dropdown:hover .recent-panel { transform: translateY(16px); }
  .recent-dropdown.open .recent-panel { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* ---------- Canli arama onerileri (header + hero) ---------- */
.live-search { position: relative; }
.live-search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; min-width: 320px; z-index: 35;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 8px; max-height: 400px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.live-search-results.open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-form .live-search-results { left: auto; right: 0; }

/* ---------- Komut Paleti (Cmd/Ctrl+K) ---------- */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm); padding: 7px 10px; cursor: pointer; transition: background .2s var(--ease);
}
.cmdk-trigger:hover { background: rgba(255, 255, 255, .16); }
.cmdk-trigger kbd { color: #cbd5e1; font-size: .74rem; font-family: inherit; }
@media (max-width: 900px) { .cmdk-trigger { display: none; } }
.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 9, 16, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.cmdk-backdrop.open { opacity: 1; visibility: visible; }
.cmdk-modal {
  width: 100%; max-width: 620px; margin: 0 20px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(-16px) scale(.98); transition: transform .25s var(--ease);
}
.cmdk-backdrop.open .cmdk-modal { transform: translateY(0) scale(1); }
.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #94a3b8; }
.cmdk-input-row input { flex: 1; background: none; border: none; font-size: 1.05rem; color: #fff; font: inherit; }
.cmdk-input-row input:focus { outline: none; }
.cmdk-input-row input::placeholder { color: #64748b; }
.cmdk-input-row kbd { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 5px; padding: 3px 7px; font-size: .72rem; color: #94a3b8; }
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: 8px; }

/* ---------- Kaldigin yerden devam et ---------- */
.continue-reading { display: none; margin: 32px auto 0; max-width: var(--maxw); padding: 0 24px; }
.continue-reading.has-history { display: block; }
.continue-reading h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 16px; }
.continue-list { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.continue-item {
  flex: 0 0 250px; display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  scroll-snap-align: start;
}
.continue-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.continue-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.continue-item span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.continue-item em { font-style: normal; font-size: .72rem; color: var(--blue-600); font-weight: 700; text-transform: uppercase; }
.continue-item strong { font-size: .85rem; color: var(--ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Guncel yazilar kayan bandi (yalnizca anasayfa) ---------- */
.topic-ticker { background: linear-gradient(90deg, var(--navy-800), var(--navy-900)); border-bottom: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.topic-ticker-inner { display: flex; align-items: center; gap: 18px; padding: 10px 24px; }
.topic-ticker-label {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; background: var(--blue-600); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.topic-ticker-track {
  overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.topic-ticker-scroll { display: flex; align-items: center; gap: 44px; width: max-content; animation: ticker-scroll 110s linear infinite; }
.topic-ticker:hover .topic-ticker-scroll { animation-play-state: paused; }
.topic-ticker-scroll a { color: #cbd5e1; font-size: .87rem; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.topic-ticker-scroll a:hover { color: #fff; text-decoration: none; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .topic-ticker-scroll { animation: none; } }
@media (max-width: 640px) { .topic-ticker-label span { display: none; } }

/* ---------- Hero (mesh, apple-style) ---------- */
.hero-static {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-static::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 55% at 18% 22%, rgba(37, 99, 235, .16), transparent 68%),
    radial-gradient(32% 46% at 82% 12%, rgba(59, 130, 246, .14), transparent 70%),
    radial-gradient(30% 42% at 62% 70%, rgba(29, 78, 216, .10), transparent 70%);
  filter: blur(6px);
}
.hero-static-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 56px; padding: 84px 24px; }
.hero-copy { flex: 1 1 420px; max-width: 480px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-50); border: 1px solid rgba(37, 99, 235, .18);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-copy h1 { font-size: 2.8rem; line-height: 1.16; margin: 0 0 18px; letter-spacing: -0.03em; }
.hero-copy > p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin: 0 0 28px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .8); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 999px; padding: 6px 8px 6px 18px; box-shadow: var(--shadow-md); max-width: 440px; margin-bottom: 32px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.hero-search:focus-within { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.hero-search svg { color: var(--muted); }
.hero-search input { flex: 1; border: none; background: none; font: inherit; font-size: .95rem; padding: 8px 0; }
.hero-search input:focus { outline: none; }
.hero-search button {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; border: none; border-radius: 999px; padding: 10px 22px;
  font-weight: 700; font-size: .9rem; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.hero-search button:hover { box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .5); }
.hero-search button:active { transform: scale(.96); }
.hero-stats { display: flex; gap: 36px; }
.hero-stats div strong {
  display: block; font-size: 1.8rem; font-family: 'Roboto Slab', serif;
  background: linear-gradient(135deg, var(--ink), var(--blue-700)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats div span { font-size: .82rem; color: var(--muted); }

/* ---------- Hero galeri: uzerine gelince genisleyen panel (Apple TV / Dock tarzi) ---------- */
.hero-gallery {
  flex: 1 1 660px; max-width: 800px; display: flex; gap: 4px; height: 420px; width: 100%;
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-gallery-item {
  position: relative; flex: 1; min-width: 34px; overflow: hidden; display: block;
  transition: flex .55s var(--ease);
}
.hero-gallery-item.is-active, .hero-gallery-item:hover, .hero-gallery-item:focus-visible { flex: 5; }
.hero-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); filter: brightness(.75); }
.hero-gallery-item.is-active img, .hero-gallery-item:hover img, .hero-gallery-item:focus-visible img { filter: brightness(1); transform: scale(1.03); }
.hero-gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px;
  background: linear-gradient(0deg, rgba(8,13,24,.92) 0%, rgba(8,13,24,.15) 70%, transparent 100%);
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hero-gallery-item.is-active .hero-gallery-caption, .hero-gallery-item:hover .hero-gallery-caption, .hero-gallery-item:focus-visible .hero-gallery-caption { opacity: 1; transform: translateY(0); }
.hero-gallery-caption .cat-pill { margin-bottom: 8px; }
.hero-gallery-caption strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #fff; font-size: .96rem; line-height: 1.35; font-family: 'Roboto Slab', serif;
}

@media (max-width: 900px) {
  .hero-static-inner { flex-direction: column; padding: 56px 24px; text-align: center; }
  .hero-copy { max-width: none; }
  .hero-search { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-gallery { width: 100%; max-width: 460px; height: 320px; }
}
@media (max-width: 560px) {
  .hero-gallery { height: 240px; }
  .hero-gallery-caption strong { font-size: .84rem; -webkit-line-clamp: 3; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 2.1rem; }
}

/* ---------- Sidebar / ads ---------- */
.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.layout-grid .main-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; }

.ad-slot-box {
  width: 100%; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; min-height: 90px;
  overflow: hidden;
}

.widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.widget:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.widget h3 { font-size: 1rem; margin: 0 0 16px; font-family: 'Roboto Slab', serif; color: var(--ink); }
.widget-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.widget-cat-list li { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; }
.widget-cat-list a { display: flex; align-items: center; gap: 9px; color: var(--body); min-width: 0; transition: transform .18s var(--ease); }
.widget-cat-list a:hover { color: var(--blue-600); text-decoration: none; transform: translateX(3px); }
.widget-cat-list .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.widget-cat-list .count { color: var(--muted); font-size: .8rem; flex-shrink: 0; }

.widget-post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.widget-post-list li { display: flex; gap: 12px; }
.widget-post-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-900); }
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.widget-post-list li:hover .widget-post-thumb img { transform: scale(1.08); }
.widget-post-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 4px; }
.widget-post-title:hover { color: var(--blue-600); text-decoration: none; }
.widget-post-meta { font-size: .76rem; color: var(--muted); }

@media (max-width: 1100px) {
  .layout-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget, .sidebar .ad-slot-box { flex: 1 1 280px; }
}
@media (max-width: 600px) {
  .sidebar { flex-direction: column; }
}

/* ---------- Category hero ---------- */
.category-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.category-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: radial-gradient(rgba(37, 99, 235, .12) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,.9), transparent 60%);
}
.category-hero::after {
  content: ''; position: absolute; top: -30%; right: -10%; width: 46%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cat-accent, var(--blue-600)) 16%, transparent), transparent 72%);
  filter: blur(4px);
}
.category-hero-watermark {
  position: absolute; top: 50%; right: 4%; transform: translateY(-50%); z-index: 0; pointer-events: none;
  color: var(--cat-accent, var(--blue-600)); opacity: .1; display: none;
}
.category-hero-watermark svg { display: block; }
@media (min-width: 640px) { .category-hero-watermark { display: block; } }
.category-hero-inner { position: relative; z-index: 1; padding: 52px 24px 44px; max-width: 760px; }
.category-hero-inner .cat-pill { margin-bottom: 16px; }
.category-hero-inner h1 { font-size: 2.2rem; margin: 0 0 10px; letter-spacing: -0.02em; }
.category-hero-inner p { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ---------- Content ---------- */
.content { min-height: 50vh; padding: 56px 24px 20px; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600);
  margin: 0 0 8px;
}
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 1.9rem; margin: 0 0 8px; }
.page-header p { color: var(--muted); margin: 0; max-width: 60ch; }

/* angled section heading, magazine style */
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 56px 0 26px; gap: 16px; }
.section-heading h2 {
  display: inline-flex; align-items: center; gap: 12px; font-size: 1.4rem; margin: 0; padding-left: 16px;
  border-left: 5px solid var(--blue-600); border-radius: 2px; position: relative;
}
.section-heading .see-all { font-size: .86rem; font-weight: 700; color: var(--blue-600); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; transition: gap .2s var(--ease); }
.section-heading .see-all:hover { text-decoration: none; gap: 8px; }

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; }
.post-list.cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.post-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px) scale(1.008); border-color: rgba(37, 99, 235, .22); }
.post-card .cover-wrap { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--navy-900); }
.post-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .cover-wrap img { transform: scale(1.07); }
.post-card .card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #fff; padding: 4px 11px; border-radius: 999px; width: fit-content;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .3);
}
.post-card h2 { margin: 4px 0 0; font-size: 1.06rem; line-height: 1.4; font-family: 'Roboto Slab', serif; }
.post-card h2 a { color: var(--ink); transition: color .2s var(--ease); }
.post-card h2 a:hover { color: var(--blue-600); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.post-card .meta-row { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .78rem; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.post-card .meta-row span { display: inline-flex; align-items: center; gap: 4px; }

/* newsletter */
.newsletter-box {
  position: relative; overflow: hidden;
  margin-top: 60px; background: linear-gradient(120deg, var(--navy-900), var(--blue-700));
  border-radius: var(--radius-xl); padding: 44px 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.newsletter-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(36% 60% at 90% 0%, rgba(96, 165, 250, .35), transparent 70%),
    radial-gradient(30% 50% at 10% 100%, rgba(59, 130, 246, .25), transparent 70%);
}
.newsletter-box .copy, .newsletter-box .newsletter-form { position: relative; z-index: 1; }
.newsletter-box .copy h2 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.newsletter-box .copy p { color: #cbd5e1; margin: 0; font-size: .92rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1);
  color: #fff; min-width: 240px; font: inherit; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.newsletter-form input::placeholder { color: #cbd5e1; }
.newsletter-form input:focus { outline: none; border-color: rgba(255,255,255,.4); }
.newsletter-form button {
  padding: 13px 24px; border-radius: 999px; border: none; background: #fff; color: var(--blue-700); font-weight: 700; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.newsletter-form button:hover { box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); transform: translateY(-1px); }
.newsletter-form button:active { transform: scale(.96); }

.breadcrumb { max-width: 800px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

article.post { max-width: 800px; margin: 0 auto; }
article.post .cover-banner { aspect-ratio: 1200/500; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-lg); }
article.post .cover-banner img { width: 100%; height: 100%; object-fit: cover; }
article.post .meta { color: var(--muted); font-size: .9rem; margin: 16px 0 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
article.post .meta span { display: inline-flex; align-items: center; gap: 5px; }
article.post h1 { font-size: 2.15rem; margin: 0; line-height: 1.26; letter-spacing: -0.02em; }
article.post .body h2, .static-page .body h2 { font-size: 1.42rem; margin-top: 2em; }
article.post .body h3, .static-page .body h3 { font-size: 1.16rem; margin-top: 1.6em; }
article.post .body p, .static-page .body p { margin: 1em 0; }
article.post .body ul, article.post .body ol, .static-page .body ul, .static-page .body ol { margin: 1em 0; padding-left: 1.4em; }
article.post .body li, .static-page .body li { margin: .4em 0; }
article.post .body code, .static-page .body code { background: var(--surface-alt); padding: 2px 5px; border-radius: 5px; font-size: .9em; }

/* ---------- Terminal / CMD gorunumlu kod bloklari (kopyalama engelli) ---------- */
.term-window {
  margin: 1.8em 0; border-radius: var(--radius-lg); overflow: hidden; background: #0d1117;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .06);
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  background: linear-gradient(180deg, #23232f, #17171f); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.term-dot-red { background: #ff5f56; }
.term-dot-yellow { background: #ffbd2e; }
.term-dot-green { background: #27c93f; }
.term-title { margin-left: 6px; font-size: .72rem; color: #8b8ba0; font-family: 'SFMono-Regular', Consolas, monospace; letter-spacing: .03em; }
.term-window pre, article.post .body pre, .static-page .body pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; background: transparent; border: none; border-radius: 0;
}
.term-window pre code, article.post .body pre code, .static-page .body pre code {
  background: none; padding: 0; color: #e6edf3; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: .87rem; line-height: 1.65;
}
.term-window pre, .term-window pre code {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  cursor: default;
}
article.post .body blockquote, .static-page .body blockquote { border-left: 4px solid var(--blue-600); margin: 1.4em 0; padding: .2em 1.2em; color: var(--muted); background: var(--surface-alt); border-radius: 0 var(--radius) var(--radius) 0; }
article.post .body strong, .static-page .body strong { color: var(--ink); }
article.post .body table, .static-page .body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .93rem;
}
article.post .body th, .static-page .body th {
  text-align: left; background: var(--surface-alt); color: var(--ink); font-weight: 700;
  padding: 10px 14px; border-bottom: 2px solid var(--border);
}
article.post .body td, .static-page .body td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
article.post .body tr:last-child td, .static-page .body tr:last-child td { border-bottom: none; }
article.post .body table { display: block; overflow-x: auto; border-radius: var(--radius); }

/* ---------- Makale ici gorseller, uyari kutulari, adim listeleri ---------- */
article.post .body figure, .static-page .body figure { margin: 2em 0; }
article.post .body figure img, .static-page .body figure img,
article.post .body img, .static-page .body img {
  width: 100%; height: auto; display: block; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--surface-alt);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
article.post .body figcaption, .static-page .body figcaption {
  text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; line-height: 1.5;
}

.callout {
  display: flex; gap: 14px; margin: 1.8em 0; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface-alt); box-shadow: var(--shadow-sm);
}
.callout .callout-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.callout p { margin: 0 !important; }
.callout p + p { margin-top: .6em !important; }
.callout-info { border-color: #bfdbfe; background: #eff6ff; }
.callout-info .callout-icon { color: var(--blue-600); }
.callout-warning { border-color: #fde68a; background: #fffbeb; }
.callout-warning .callout-icon { color: #b45309; }
.callout-danger { border-color: #fecaca; background: #fef2f2; }
.callout-danger .callout-icon { color: #b91c1c; }
.callout-success { border-color: #a7f3d0; background: #ecfdf5; }
.callout-success .callout-icon { color: #047857; }

.steps { list-style: none !important; margin: 1.6em 0 !important; padding: 0 !important; counter-reset: step; display: flex; flex-direction: column; gap: 4px; }
.steps > li {
  position: relative; margin: 0 !important; padding: 4px 0 22px 46px !important; border-left: 2px solid var(--border);
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 2px !important; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -19px; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--surface), 0 4px 10px -3px rgba(37,99,235,.5);
}
.steps > li strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }

article.post .body kbd, .static-page .body kbd {
  background: var(--navy-900); color: #e2e8f0; padding: 2px 7px; border-radius: 6px;
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: .84em; border-bottom: 2px solid rgba(255,255,255,.15);
}

/* ---------- Okuma ilerleme cubugu ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 40;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
  transition: width .1s linear;
}

/* ---------- Otomatik icindekiler (TOC) ---------- */
.article-toc {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 22px; margin: 26px 0 34px; box-shadow: var(--shadow-sm);
}
.article-toc summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: .96rem;
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::before {
  content: ''; width: 8px; height: 8px; border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg); transition: transform .25s var(--ease); flex-shrink: 0;
}
.article-toc[open] summary::before { transform: rotate(45deg); }
.article-toc ol { margin: 14px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 7px; }
.article-toc a { color: var(--body); font-size: .9rem; }
.article-toc a:hover { color: var(--blue-600); }

/* ---------- Pull-quote (vurgulu alinti) ---------- */
.pull-quote {
  position: relative; margin: 2.2em 0; padding: 6px 0 6px 30px; border-left: 3px solid var(--blue-600);
}
.pull-quote p {
  margin: 0 !important; font-family: 'Roboto Slab', serif; font-size: 1.28rem; line-height: 1.5;
  color: var(--ink); font-weight: 500;
}
.pull-quote cite {
  display: block; margin-top: 10px; font-style: normal; font-size: .82rem; color: var(--muted); font-weight: 600;
}

/* ---------- Vurgulu istatistik kutusu ---------- */
.stat-highlight {
  position: relative; overflow: hidden;
  display: flex; gap: 22px; flex-wrap: wrap; margin: 2em 0; padding: 24px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #fff; box-shadow: var(--shadow-md);
}
.stat-highlight .stat { flex: 1 1 140px; position: relative; z-index: 1; }
.stat-highlight .stat strong { display: block; font-family: 'Roboto Slab', serif; font-size: 1.95rem; color: #fff; line-height: 1.1; }
.stat-highlight .stat span { font-size: .8rem; color: #93c5fd; }

.ad-slot { margin: 32px 0; text-align: center; min-height: 1px; }

.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 15px; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.pagination a:hover { text-decoration: none; border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-1px); }
.pagination .current { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; border-color: transparent; }

.static-page { max-width: 800px; margin: 0 auto; }
.static-page h1 { font-size: 1.9rem; }

form.contact-form { display: grid; gap: 14px; max-width: 480px; }
form.contact-form input, form.contact-form textarea {
  padding: 12px 15px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--surface-alt);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.15); background: var(--surface); }
form.contact-form button {
  padding: 12px 20px; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; border: none; border-radius: 999px; cursor: pointer; font-weight: 700;
  font-size: .96rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
form.contact-form button:hover { box-shadow: 0 10px 24px -8px rgba(37,99,235,.45); }
form.contact-form button:active { transform: scale(.97); }
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: .92rem; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-900); color: #94a3b8; margin-top: 72px; }
.site-footer::before {
  content: ''; position: absolute; top: -40%; left: 50%; width: 60%; height: 100%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .16), transparent 72%);
}
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 52px 24px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand strong { font-family: 'Roboto Slab', serif; color: #fff; font-size: 1.05rem; }
.footer-grid p { font-size: .9rem; line-height: 1.7; max-width: 40ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255, 255, 255, .06); color: #cbd5e1; transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.footer-col a { display: block; color: #94a3b8; font-size: .9rem; margin-bottom: 10px; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(148, 163, 184, .15); padding: 18px 24px; font-size: .82rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Admin panel (Apple/Mac tarzı, sol sidebar) ---------- */
.admin-body { background: var(--surface-alt); font-family: 'Roboto', -apple-system, sans-serif; }
.admin-shell { display: flex; align-items: flex-start; min-height: 100vh; }
.admin-sidebar {
  width: 264px; flex-shrink: 0; min-height: 100vh; position: sticky; top: 0; align-self: flex-start;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #e2e8f0; display: flex; flex-direction: column; padding: 18px 14px 16px;
  box-shadow: var(--shadow-lg);
}
.admin-sidebar .mac-dots { display: flex; gap: 7px; padding: 4px 10px 16px; }
.admin-sidebar .mac-dots span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.admin-sidebar .mac-dots span:nth-child(1) { background: #ff5f57; }
.admin-sidebar .mac-dots span:nth-child(2) { background: #febc2e; }
.admin-sidebar .mac-dots span:nth-child(3) { background: #28c840; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: #fff; font-weight: 700; font-size: 1.03rem; text-decoration: none; font-family: 'Roboto Slab', Georgia, serif; }
.admin-brand:hover { text-decoration: none; }
.admin-brand img { width: 30px; height: 30px; border-radius: 8px; }
.admin-sidebar .admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-sidebar .admin-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #b8c3d9; font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.admin-sidebar .admin-nav a svg { opacity: .8; flex-shrink: 0; }
.admin-sidebar .admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.admin-sidebar .admin-nav a.active { background: rgba(37,99,235,.24); color: #fff; }
.admin-sidebar .admin-nav a.active svg { opacity: 1; color: var(--blue-500); }
.admin-nav-badge {
  margin-left: auto; background: var(--blue-600); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; line-height: 1.5;
}
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.admin-sidebar-footer a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #94a3b8; font-weight: 600; font-size: .88rem; text-decoration: none; transition: background .18s var(--ease), color .18s var(--ease);
}
.admin-sidebar-footer a svg { opacity: .8; flex-shrink: 0; }
.admin-sidebar-footer a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.admin-main { flex: 1; min-width: 0; }
.admin-wrap { max-width: 1060px; margin: 0 auto; padding: 32px 30px; }
.admin-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.admin-table thead th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.admin-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .9rem; color: var(--ink); }
.admin-form input[type=text], .admin-form input[type=password], .admin-form input[type=email], .admin-form input[type=datetime-local], .admin-form textarea, .admin-form select {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.admin-form textarea { min-height: 320px; font-family: ui-monospace, monospace; }
.btn {
  display: inline-block; padding: 10px 18px; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; border: none;
  border-radius: 999px; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { box-shadow: 0 8px 18px -6px rgba(37,99,235,.5); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #991b1b; }
/* ---------- Admin: popup form modali (yazı ekle/düzenle) ---------- */
.admin-modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 9, 16, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.admin-modal-overlay.is-open { opacity: 1; visibility: visible; }
.admin-modal-panel {
  width: 100%; max-width: 760px; max-height: 88vh; overflow-y: auto; position: relative;
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  transform: translateY(-16px) scale(.98); transition: transform .25s var(--ease); padding: 28px;
}
.admin-modal-overlay.is-open .admin-modal-panel { transform: translateY(0) scale(1); }
.admin-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--surface-alt); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .18s var(--ease), color .18s var(--ease);
}
.admin-modal-close:hover { background: var(--border); color: var(--ink); }
.admin-modal-body .admin-card { border: none; box-shadow: none; padding: 0; margin: 0; }
.admin-modal-body p.admin-modal-loading { color: var(--muted); text-align: center; padding: 40px 0; }
/* ---------- Admin: ayarlar alt menü (tab) ---------- */
.settings-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.settings-tabs button {
  border: none; background: var(--surface-alt); color: var(--muted); font-weight: 600; font-size: .88rem;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease);
}
.settings-tabs button:hover { background: var(--border); color: var(--ink); }
.settings-tabs button.active { background: var(--blue-600); color: #fff; }
.settings-tab-panel { display: none; }
.settings-tab-panel.active { display: block; animation: fadeInUp .35s var(--ease) both; }
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; gap: 4px; }
  .admin-sidebar .mac-dots { display: none; }
  .admin-brand { padding: 4px 10px; }
  .admin-sidebar .admin-nav { flex-direction: row; flex-wrap: wrap; flex: 1; gap: 2px; }
  .admin-sidebar .admin-nav a span, .admin-sidebar-footer a span { display: none; }
  .admin-nav-badge { margin-left: 2px; }
  .admin-sidebar-footer { flex-direction: row; border-top: none; margin: 0; padding: 0; gap: 2px; }
  .admin-wrap { padding: 20px 16px; }
  .admin-modal-overlay { padding: 0; }
  .admin-modal-panel { max-width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
}

/* ---------- Dark mode ---------- */
html.dark {
  --ink: #f1f5f9;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --border: #1e293b;
  --surface: #111a2e;
  --surface-alt: #0f1c33;
  --glass-bg: rgba(11, 18, 32, .78);
  --glass-border: rgba(255, 255, 255, .06);
}
html.dark body { background: #0b1220; }
html.dark .post-card h2 a { color: var(--ink); }
html.dark .hero-search { background: rgba(17, 26, 46, .7); }
html.dark form.contact-form input, html.dark form.contact-form textarea { background: var(--surface); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .post-list.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 14px; }
  .main-nav.open { display: flex; }
  .search-form { width: 100%; }
  .search-form input { width: 100%; }
  .post-list.cols-4 { grid-template-columns: 1fr; }
  .newsletter-box { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}
