/* =============================================================
   HİLBET GÜVENLİ ERİŞİM YAZAR EKİBİ — Editoryal Stil Dosyası
   Premium, koyu temalı, mobil öncelikli tasarım
   ============================================================= */

:root {
  --bg: #0B0F17;
  --bg-secondary: #111827;
  --bg-card: #151E2E;
  --bg-elevated: #1C2940;
  --accent: #2563EB;
  --accent-2: #06B6D4;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --text: #F1F5F9;
  --text-secondary: #A7B3C5;
  --border: #273449;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.7em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); margin-top: 1.4em; }

p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

code, .mono, .kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: var(--accent-2);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }


/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand__logo { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__text { line-height: 1.2; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand__tagline {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.nav { display: none; }
.nav__list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.nav__link:hover { color: var(--text); background: var(--bg-elevated); text-decoration: none; }
.nav__link[aria-current="page"] { color: #fff; background: var(--accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle:hover { background: var(--bg-elevated); }

/* Mobile menu */
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--bg-secondary); }
.mobile-menu.is-open { display: block; }
.mobile-menu__list { list-style: none; margin: 0; padding: 8px 20px 16px; }
.mobile-menu__link {
  display: block;
  padding: 11px 4px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.95rem;
}
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__link:hover { color: var(--text); text-decoration: none; }
.mobile-menu__link[aria-current="page"] { color: var(--accent-2); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 400px at 70% -10%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(900px 300px at 10% 0%, rgba(6, 182, 212, 0.10), transparent 55%);
}
.hero__kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.hero__title { max-width: 780px; }
.hero__lead { color: var(--text-secondary); font-size: 1.05rem; max-width: 720px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 16px 0 0; }
.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}
.breadcrumb__list li { margin: 0; }
.breadcrumb__item + li::before { content: "/"; color: var(--text-secondary); margin-right: 8px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb__current { color: var(--text); }

/* ---------- Content grid ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 36px 0 56px;
}

/* ---------- TOC ---------- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.toc__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--text);
}
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__link {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.toc__link:hover { color: var(--text); text-decoration: none; }
.toc__link.is-active {
  border-left-color: var(--accent);
  color: var(--text);
  background: var(--bg-elevated);
}

/* ---------- Article body ---------- */
.article { min-width: 0; }
.article__section { margin-bottom: 2.4em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article__section h2 { padding-bottom: 0.35em; border-bottom: 1px solid var(--border); }
.lead-in { font-size: 1.08rem; color: var(--text); font-weight: 400; }


/* ---------- Notes ---------- */
.note {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 1.4em 0;
  font-size: 0.95rem;
}
.note--warning { border-left-color: var(--warning); }
.note--success { border-left-color: var(--success); }
.note--danger { border-left-color: var(--danger); }
.note__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--accent-2);
}
.note--warning .note__label { color: var(--warning); }
.note--success .note__label { color: var(--success); }
.note--danger .note__label { color: var(--danger); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.4em 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--bg-elevated);
  color: var(--accent-2);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.accordion__item + .accordion__item { border-top: 1px solid var(--border); }
.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
  cursor: pointer;
}
.accordion__btn:hover { background: var(--bg-elevated); }
.accordion__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.accordion__icon { flex: 0 0 auto; transition: transform 0.2s; font-size: 1rem; }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion__panel-inner { padding: 0 20px 18px; color: var(--text-secondary); font-size: 0.94rem; }
.accordion__panel-inner p:last-child { margin-bottom: 0; }

/* ---------- Article meta / author ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-meta__item { display: inline-flex; align-items: center; gap: 7px; }

.author-box {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.author-box__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}
.author-box__role { color: var(--accent-2); font-size: 0.82rem; font-weight: 600; }
.author-box__bio { color: var(--text-secondary); font-size: 0.93rem; }
.author-box__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ---------- Sources ---------- */
.sources {
  margin-top: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sources h2 { margin-top: 0; font-size: 1.2rem; border: none; padding: 0; }
.sources__list { list-style: none; margin: 0; padding: 0; }
.sources__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  margin: 0;
}
.sources__list li:last-child { border-bottom: none; }
.sources__title { color: var(--text); font-weight: 600; }
.sources__url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--accent-2);
  display: block;
  margin-top: 2px;
}

/* ---------- Related ---------- */
.related { margin-top: 40px; }
.related h2 { font-size: 1.3rem; }
.related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}
.related__card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.related__card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.related__card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin: 0 0 6px; color: var(--text); }
.related__card-desc { color: var(--text-secondary); font-size: 0.86rem; margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #1d4ed8; }


/* ---------- Footer ---------- */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); margin-top: 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 32px;
}
.footer__col h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 14px;
}
.footer__col p { font-size: 0.86rem; color: var(--text-secondary); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin: 0 0 9px; }
.footer__list a { color: var(--text-secondary); font-size: 0.88rem; text-decoration: none; }
.footer__list a:hover { color: var(--accent-2); }

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand-logo { width: 30px; height: 30px; }

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.footer__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.footer__badge--18 { border-color: var(--danger); color: var(--danger); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .author-box { flex-direction: row; }
  .author-box__main { flex: 1; }
}

@media (min-width: 992px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .content-grid { grid-template-columns: 260px 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .related__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
