/* ============================================================
   Bilgece Bilgisayar — tek stil dosyası
   Marka tokenleri + bileşenler. Build adımı yok, vanilla CSS.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Marka kırmızısı ---- */
  --red-50:  oklch(96% 0.02  10);
  --red-100: oklch(92% 0.045 10);
  --red-200: oklch(86% 0.08  10);
  --red-300: oklch(78% 0.13  10);
  --red-400: oklch(70% 0.18  9);
  --red-500: oklch(60% 0.21  9);
  --red-600: oklch(53% 0.21  8);
  --red-700: oklch(45% 0.19  7);
  --red-800: oklch(37% 0.16  6);
  --red-900: oklch(29% 0.12  5);

  /* ---- Nötr slate ---- */
  --slate-0:   oklch(100% 0     0);
  --slate-50:  oklch(97.5% 0.004 260);
  --slate-100: oklch(95%   0.006 260);
  --slate-200: oklch(90%   0.008 260);
  --slate-300: oklch(82%   0.010 260);
  --slate-400: oklch(68%   0.012 260);
  --slate-500: oklch(55%   0.014 260);
  --slate-600: oklch(44%   0.016 260);
  --slate-700: oklch(34%   0.018 260);
  --slate-800: oklch(24%   0.02  260);
  --slate-900: oklch(16%   0.02  260);
  --slate-950: oklch(11%   0.018 260);

  --green-500: oklch(62% 0.15 148);
  --green-600: oklch(52% 0.14 148);
  --green-50:  oklch(96% 0.03 148);
  --blue-500: oklch(58% 0.15 250);
  --blue-600: oklch(49% 0.15 250);

  --color-brand: var(--red-500);
  --color-brand-hover: var(--red-600);
  --color-brand-active: var(--red-700);
  --color-brand-subtle: var(--red-50);

  --surface-page: var(--slate-50);
  --surface-card: var(--slate-0);
  --surface-sunken: var(--slate-100);
  --surface-inverse: var(--slate-900);

  --border-subtle: var(--slate-200);
  --border-default: var(--slate-300);

  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-tertiary: var(--slate-400);
  --text-inverse: var(--slate-0);
  --text-brand: var(--red-600);
  --text-link: var(--blue-600);

  --status-success: var(--green-600);
  --status-success-bg: var(--green-50);

  --focus-ring: var(--blue-500);

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px oklch(16% 0.02 260 / 0.06);
  --shadow-sm: 0 2px 6px oklch(16% 0.02 260 / 0.08);
  --shadow-md: 0 6px 16px oklch(16% 0.02 260 / 0.10);
  --shadow-lg: 0 16px 40px oklch(16% 0.02 260 / 0.14);
  --shadow-focus: 0 0 0 3px oklch(58% 0.15 250 / 0.35);

  --duration-fast: 120ms;
  --duration-base: 200ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
}

/* ---- Reset / temel ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text-primary); }
p { margin: 0; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 28px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 26px; }
@media (min-width: 960px) { .nav-desktop { display: flex; } }
.nav-link {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: var(--text-secondary); border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-standard);
  text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); text-decoration: none; }
.nav-link.active { color: var(--text-brand); border-bottom-color: var(--color-brand); }
.nav-phone {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--text-secondary); white-space: nowrap;
}
.nav-phone:hover { color: var(--text-brand); text-decoration: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: none; border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); cursor: pointer;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border-subtle); background: var(--surface-card);
  padding: 12px 24px 20px;
}
.nav-mobile.is-open { display: flex; }
@media (min-width: 960px) { .nav-mobile { display: none !important; } }
.nav-mobile .nav-link { padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--border-subtle); }

/* ---- Butonlar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-md); border: none;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-hover); }
.btn-primary:active { background: var(--color-brand-active); }
.btn-outline { background: var(--surface-card); color: var(--text-primary); border: 1px solid var(--border-default); }
.btn-outline:hover { background: var(--surface-sunken); }
.btn-outline-dark { background: transparent; color: #fff; border: 1px solid var(--slate-600); }
.btn-outline-dark:hover { border-color: var(--slate-400); }

/* ---- Hero ---- */
.hero-dark {
  background: var(--surface-inverse); color: var(--text-inverse);
  padding: 72px 0 64px;
}
@media (min-width: 768px) { .hero-dark { padding: 108px 0 96px; } }
.hero-dark .container { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 820px; }
.kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-brand);
}
.hero-dark .kicker { color: var(--red-400); }
.hero-title { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--text-inverse); }
@media (min-width: 640px) { .hero-title { font-size: 46px; } }
@media (min-width: 1024px) { .hero-title { font-size: 60px; } }
.hero-desc { font-size: 17px; color: var(--slate-300); line-height: 1.55; max-width: 640px; }
@media (min-width: 640px) { .hero-desc { font-size: 19px; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.hero-chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--slate-300);
  border: 1px solid var(--slate-700); background: var(--slate-800);
  padding: 6px 12px; border-radius: var(--radius-pill);
}

.page-hero {
  background: var(--surface-inverse); color: var(--text-inverse);
  padding: 56px 0;
}
@media (min-width: 768px) { .page-hero { padding: 72px 0; } }
.page-hero .container { display: flex; flex-direction: column; gap: 16px; max-width: var(--container-max); text-align: left; align-items: flex-start; }
.page-hero .kicker { color: var(--red-400); }
.page-hero h1 { font-size: 32px; font-weight: 800; color: var(--text-inverse); max-width: 720px; line-height: 1.12; }
@media (min-width: 640px) { .page-hero h1 { font-size: 40px; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 46px; } }
.page-hero p { font-size: 16px; color: var(--slate-300); line-height: 1.6; max-width: 640px; }
@media (min-width: 640px) { .page-hero p { font-size: 18px; } }

/* ---- İstatistik şeridi ---- */
.stats-strip { background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); }
.stats-grid { display: grid; grid-template-columns: 1fr; padding: 24px 0; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 12px 24px; border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 639px) { .stat { border-left: none; border-top: 1px solid var(--border-subtle); padding: 16px 0; } }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--text-brand); }
.stat-label { font-size: 15px; color: var(--text-secondary); }

/* ---- Bölümler ---- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-page { background: var(--surface-page); }
.section-card { background: var(--surface-card); }
.section-border-top { border-top: 1px solid var(--border-subtle); }
.section-head { max-width: 640px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
@media (min-width: 768px) { .section-head { margin-bottom: 52px; } }
.section-head.align-left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: 28px; }
@media (min-width: 640px) { .section-head h2 { font-size: 32px; } }
@media (min-width: 1024px) { .section-head h2 { font-size: 38px; } }
.section-head p { font-size: 16px; color: var(--text-secondary); line-height: 1.6; }
@media (min-width: 640px) { .section-head p { font-size: 17px; } }

/* ---- Kart gridleri ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-default); }
.card-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-brand);
  background: var(--color-brand-subtle); padding: 4px 10px; border-radius: var(--radius-pill);
}
.card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }

.numbered { display: flex; gap: 18px; align-items: flex-start; }
.numbered-no {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text-brand);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 7px 11px; flex: none;
}
.numbered-body { display: flex; flex-direction: column; gap: 6px; }
.numbered-body h3 { font-size: 17px; font-weight: 600; }
.numbered-body p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }

.process-step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--border-default); }
.process-step .numbered-no-inline { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-brand); }
.process-step h3 { font-size: 18px; font-weight: 600; }
.process-step p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }

.center-cta { display: flex; justify-content: center; margin-top: 36px; }

/* ---- Hizmet detay blokları ---- */
.service-block {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 28px; display: grid; gap: 28px; margin-bottom: 24px;
}
@media (min-width: 900px) { .service-block { grid-template-columns: 0.9fr 1.1fr; padding: 40px; gap: 48px; } }
.service-block-head { display: flex; flex-direction: column; gap: 12px; }
.service-block-eyebrow { display: flex; align-items: center; gap: 12px; }
.service-block-no { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-tertiary); }
.service-block h2 { font-size: 22px; }
@media (min-width: 640px) { .service-block h2 { font-size: 27px; } }
.service-block-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
@media (min-width: 640px) { .service-block-desc { font-size: 16px; } }
.bullets { display: grid; gap: 12px 28px; align-content: start; grid-template-columns: 1fr; }
@media (min-width: 500px) { .bullets { grid-template-columns: 1fr 1fr; } }
.bullet { display: flex; gap: 11px; align-items: flex-start; }
.bullet::before { content: '—'; color: var(--color-brand); font-weight: 700; line-height: 1.5; }
.bullet span { font-size: 15px; color: var(--text-primary); line-height: 1.5; }

.pill-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pill-list { grid-template-columns: 1fr 1fr; } }
.pill-item {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs); padding: 16px 18px; display: flex; gap: 12px; align-items: center;
}
.pill-item::before { content: '—'; color: var(--color-brand); font-weight: 700; flex: none; }
.pill-item span { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }

.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 56px; } }

.importance-panel {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column;
}
.importance-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.importance-row:last-child { border-bottom: none; }
.importance-row .no { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-brand); flex: none; }
.importance-row .text { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }

/* ---- CTA bandı ---- */
.cta-band { background: var(--surface-inverse); color: var(--text-inverse); padding: 56px 0; }
@media (min-width: 768px) { .cta-band { padding: 72px 0; } }
.cta-band .container { max-width: 1000px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta-band h2 { font-size: 26px; color: var(--text-inverse); max-width: 680px; line-height: 1.18; }
@media (min-width: 640px) { .cta-band h2 { font-size: 32px; } }
@media (min-width: 1024px) { .cta-band h2 { font-size: 36px; } }
.cta-band p { font-size: 16px; color: var(--slate-300); max-width: 540px; line-height: 1.6; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 4px; }
.cta-band-actions a.nav-phone { color: var(--slate-200); }

/* ---- Footer ---- */
.site-footer { background: var(--slate-950); color: var(--slate-300); padding: 48px 0 28px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--slate-800); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; } }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col img { height: 26px; width: auto; align-self: flex-start; }
.footer-col p { font-size: 14px; color: var(--slate-400); line-height: 1.6; max-width: 300px; }
.footer-heading { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }
.footer-link { align-self: flex-start; background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font-body); font-size: 15px; color: var(--slate-300); text-decoration: none; }
.footer-link:hover { color: #fff; text-decoration: none; }
.footer-bottom { padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom span { font-size: 13px; color: var(--slate-500); }
.footer-bottom .mono { font-family: var(--font-mono); }

/* ---- İletişim sayfası ---- */
.contact-info-list { display: flex; flex-direction: column; gap: 0; }
.contact-info-item { padding: 16px 0; border-bottom: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 4px; }
.contact-info-item .label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.contact-info-item .value { font-size: 16px; color: var(--text-primary); line-height: 1.5; }

.contact-panel { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; }
@media (min-width: 640px) { .contact-panel { padding: 36px; } }

.map-embed { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); line-height: 0; }
.map-embed iframe { display: block; width: 100%; }
.form-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 18px 0; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: var(--surface-card); color: var(--text-primary);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-brand); box-shadow: var(--shadow-focus);
}
.field-checkbox { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-bottom: 18px; }
.field-checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--color-brand); flex: none; }
.field-checkbox span { font-family: var(--font-body); font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-errors {
  background: var(--red-50); border: 1px solid var(--red-200); color: var(--red-700);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 18px; font-size: 14px;
}
.form-errors ul { margin: 4px 0 0; padding-left: 20px; }

.form-success { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; align-items: flex-start; }
.form-success .badge {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--status-success); background: var(--status-success-bg); padding: 5px 12px; border-radius: var(--radius-pill);
}
.form-success h2 { font-size: 22px; }
.form-success p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; max-width: 420px; }

/* ---- Terminal kartı (teknik hero varyasyonu / gelecekte kullanılabilir) ---- */
.terminal-card { background: var(--surface-inverse); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.terminal-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--slate-800); }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-600); }
.terminal-dot.active { background: var(--red-500); }
.terminal-title { font-family: var(--font-mono); font-size: 12px; color: var(--slate-400); margin-left: 8px; }
.terminal-body { padding: 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--slate-200); }
.terminal-row { display: flex; gap: 10px; align-items: baseline; }
.terminal-row .dot { color: var(--green-500); }
.terminal-row .name { color: var(--slate-100); min-width: 96px; }
.terminal-row .info { color: var(--slate-400); }

/* ---- 404 ---- */
.not-found { padding: 96px 0; text-align: center; }
.not-found h1 { font-size: 40px; margin-bottom: 12px; }
.not-found p { color: var(--text-secondary); margin-bottom: 24px; }

/* ============================================================
   Admin paneli
   ============================================================ */
:root {
  --a-sidebar: var(--slate-950);
  --a-sidebar-hover: var(--slate-800);
  --a-sidebar-active: var(--slate-800);
}

.admin-body { background: var(--surface-page); font-size: 14px; }

/* ---- Giriş ekranı ---- */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 20% 20%, var(--slate-800), var(--slate-950) 60%);
}
.admin-login-card {
  width: 100%; max-width: 380px; background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; display: flex; flex-direction: column; gap: 4px;
}

.admin-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text-primary); }
.admin-brand span { color: var(--text-brand); }
.admin-brand .admin-brand-sub {
  display: inline-block; margin-top: 3px; font-family: var(--font-body); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary);
}
.admin-brand-icon {
  width: 38px; height: 38px; flex: none; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #fff;
  box-shadow: 0 4px 12px oklch(60% 0.21 9 / 0.4);
}

/* ---- İskelet: sidebar + topbar + içerik ---- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex: none; background: var(--a-sidebar); color: var(--slate-300);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .admin-brand { padding: 20px 18px 16px; border-bottom: 1px solid oklch(100% 0 0 / 0.06); color: #fff; }
.admin-sidebar .admin-brand-sub { font-size: 10.5px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 600; }

.admin-nav { flex: 1; padding: 10px 0; display: flex; flex-direction: column; }
.admin-nav-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-600); padding: 16px 18px 6px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px; color: var(--slate-400); text-decoration: none;
  padding: 9px 14px 9px 16px; margin: 1px 8px 1px 0; font-size: 14px; font-weight: 600;
  border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.admin-nav a .mi { font-size: 19px; opacity: 0.75; }
.admin-nav a:hover { background: var(--a-sidebar-hover); color: var(--slate-100); text-decoration: none; }
.admin-nav a.active { background: var(--a-sidebar-active); color: #fff; border-left-color: var(--color-brand); }
.admin-nav a.active .mi { opacity: 1; color: var(--red-400); }

.admin-sidebar-bottom { padding: 10px 8px 16px; border-top: 1px solid oklch(100% 0 0 / 0.06); display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: var(--slate-500); text-decoration: none;
  background: none; border: none; width: 100%; text-align: left; cursor: pointer; font-family: var(--font-body);
}
.admin-sidebar-link .mi { font-size: 18px; }
.admin-sidebar-link:hover { background: var(--a-sidebar-hover); color: var(--slate-200); text-decoration: none; }
.admin-sidebar-link.danger:hover { background: oklch(53% 0.21 8 / 0.18); color: var(--red-300); }

.admin-content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  height: 60px; flex: none; background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 20;
}
.admin-topbar .page-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-primary); }
.admin-topbar-right { font-size: 13px; color: var(--text-secondary); }
.admin-topbar-right strong { color: var(--text-primary); font-weight: 700; }

.admin-main { flex: 1; padding: 28px 32px 48px; max-width: 1040px; width: 100%; }
.admin-title { font-size: 22px; margin-bottom: 20px; }

/* ---- İstatistik kartları ---- */
.admin-stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 8px; }
.admin-stat-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden; box-shadow: var(--shadow-xs);
}
.admin-stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--color-brand); }
.admin-stat-card.stat-blue::before { background: var(--blue-500); }
.admin-stat-card.stat-green::before { background: var(--green-500); }
.admin-stat-value { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.admin-stat-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.admin-stat-icon { font-size: 38px; opacity: 0.12; color: var(--color-brand); pointer-events: none; }
.admin-stat-card.stat-blue .admin-stat-icon { color: var(--blue-500); opacity: 0.18; }
.admin-stat-card.stat-green .admin-stat-icon { color: var(--green-500); opacity: 0.18; }

/* ---- Tablo ---- */
.admin-table-wrap { overflow-x: auto; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.admin-table th {
  background: var(--surface-sunken); font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--surface-page); }
.admin-table tr.is-unread td { font-weight: 700; }
.admin-table-message { max-width: 260px; white-space: pre-line; }
.admin-table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Kartlar ---- */
.admin-form { max-width: 760px; }
.admin-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow-xs);
}
.admin-card-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary); margin-bottom: 16px; font-family: var(--font-mono);
}
.admin-subcard { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px; background: var(--surface-page); }

/* ---- Buton varyantları (admin) ---- */
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-light { background: var(--surface-sunken); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.btn-light:hover { background: var(--border-subtle); }
.btn-danger { background: var(--status-danger); color: #fff; border: none; }
.btn-danger:hover { background: var(--red-700); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-default); }
.btn-ghost:hover { background: var(--surface-sunken); color: var(--text-primary); }

/* ---- Rozet / uyarı kutuları (admin) ---- */
.a-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.a-badge-on { background: var(--status-success-bg); color: var(--status-success); }
.a-badge-off { background: var(--surface-sunken); color: var(--text-tertiary); }
.a-badge-warn { background: var(--status-warning-bg); color: var(--status-warning); }

.a-alert { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 18px; font-size: 13.5px; font-weight: 500; }
.a-alert-success { background: var(--status-success-bg); color: var(--status-success); border: 1px solid var(--green-500); }
.a-alert-error { background: var(--status-danger-bg); color: var(--status-danger); border: 1px solid var(--red-300); }

/* ---- Bağımlılıksız yedek zengin metin editörü (TinyMCE yüklenemezse) ---- */
.rte { border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-card); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px; background: var(--surface-sunken); border-bottom: 1px solid var(--border-default); }
.rte-btn { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 6px; padding: 5px 9px; font-size: 13px; line-height: 1; cursor: pointer; color: var(--text-primary); min-width: 30px; }
.rte-btn:hover { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.rte-editor { min-height: 120px; padding: 14px; font-size: 15px; line-height: 1.6; outline: none; color: var(--text-primary); }
.rte-editor p { margin: 0 0 0.7em; }
.rte-editor ul, .rte-editor ol { padding-left: 1.4em; margin: 0.4em 0; }
.rte-editor a { color: var(--text-link); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 20px; }
}
@media (max-width: 520px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
}
