:root {
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-light: #dbeafe;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #5b6b80;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f6f8fc;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .16);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, .6);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

/* Blur efektini pseudo-element'e taşıdık: header üzerindeki backdrop-filter,
   position: fixed olan mobil menünün kapsayıcısını header'a çeviriyordu. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  pointer-events: none;
}

.header__container {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  min-height: var(--header-h);
  position: relative;
  flex-wrap: nowrap;
}

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-right: auto; border-radius: 10px; }

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(29, 78, 216, .28);
  flex: none;
}

.logo__text {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}

.logo__text span { color: var(--brand); }

.header__search { display: none; }

.nav-trigger {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.nav-trigger:hover { border-color: #c7d7f5; color: var(--brand-dark); background: #f8fafc; }

.nav-trigger__chev { transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] .nav-trigger__chev { transform: rotate(180deg); }

/* Nav base (mobile drawer styles are below) */
.nav { display: flex; align-items: center; gap: 8px; }

.nav__menu { display: flex; align-items: center; gap: 4px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
}

.search-form__input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  padding: 6px 0;
}

.search-form__input:focus { outline: none; }
.search-form__input::placeholder { color: var(--ink-muted); }

.search-form__button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease);
  white-space: nowrap;
}

.search-form__button:hover { background: var(--brand-dark); }

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}

.nav__link:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav__link[aria-current=\"page\"] { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }

.nav__close { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle:hover { border-color: #cbd5e1; background: #f8fafc; }

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle:focus-visible,
.nav-trigger:focus-visible,
.nav__close:focus-visible,
.search-form__button:focus-visible,
.search-form__input:focus-visible,
.logo:focus-visible {
  outline: 3px solid rgba(29, 78, 216, .6);
  outline-offset: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; min-width: 44px; min-height: 44px; }
  .nav-trigger { display: none; }
  .nav__link { min-height: 44px; }
  .nav__close { min-width: 44px; min-height: 44px; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 380px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(105%);
    transition: transform .32s var(--ease), visibility .32s;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
  }

  .nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }

  .nav__close {
    display: grid;
    place-items: center;
    align-self: flex-end;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 22px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    margin-bottom: 14px;
  }

  .nav__search { display: block; margin-bottom: 16px; }
  .nav__search .search-form { width: 100%; }

  .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    white-space: normal;
    line-height: 1.35;
  }

  .nav__link .count {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 8px;
  }

  .nav__name { min-width: 0; }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s var(--ease);
  z-index: 55;
}

.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

@media (min-width: 901px) {
  .header__search {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 200px;
    max-width: 360px;
  }

  .header__search .search-form { width: 100%; }

  .nav-toggle { display: none; }
  .nav-trigger { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(820px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    display: block;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 80;
    box-sizing: border-box;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav__menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: normal;
    line-height: 1.35;
  }

  .nav__name { min-width: 0; }

  .nav__link .count {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 1px 8px;
  }

  .nav__search,
  .nav__close { display: none; }
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 420px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(29, 78, 216, .14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 700;
  max-width: 760px;
  margin-inline: auto;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__description {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero__search {
  max-width: 620px;
  margin-inline: auto;
}

.hero__search .search-form {
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow);
  border-color: #dbe3ef;
}

.hero__search .search-form__input { font-size: 16px; padding: 10px 0; }
.hero__search .search-form__button { padding: 12px 24px; font-size: 15px; }

.hero__hints {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero__hints span { align-self: center; }

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.chip:hover { border-color: var(--brand); color: var(--brand); background: #f5f9ff; }

/* ---------- Section headings ---------- */
.section { padding: 8px 0 48px; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.section__meta { font-size: 13px; color: var(--ink-muted); }

.section__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #f5f9ff; }

/* ---------- Category cards ---------- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 110px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
  text-align: left;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c7d7f5;
}

.category-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--tint, var(--brand-light));
  color: var(--tone, var(--brand));
}

.category-card__icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.category-card__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.category-card__count {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ---------- Tool groups ---------- */
.tools__list { display: grid; gap: 14px; }

.tool-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.tool-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background .18s var(--ease);
  list-style: none;
}

.tool-group__head::-webkit-details-marker { display: none; }
.tool-group__head::marker { content: ""; }

.tool-group__head:hover { background: #f8fafc; }

.tool-group__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--tint, var(--brand-light));
  color: var(--tone, var(--brand));
  flex: none;
}

.tool-group__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tool-group__title {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.01em;
}

.tool-group__count {
  font-size: 12px;
  color: var(--ink-muted);
  margin-left: 4px;
  font-weight: 500;
}

.tool-group__chev {
  margin-left: auto;
  flex: none;
  color: var(--ink-muted);
  transition: transform .25s var(--ease);
}

.tool-group__chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tool-group[open] .tool-group__chev { transform: rotate(180deg); }

.tool-group__body {
  padding: 2px 18px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px 14px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  margin-inline: -8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .16s var(--ease), color .16s var(--ease);
}

.tool-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  flex: none;
  transition: background .16s var(--ease);
}

.tool-link:hover { background: #f5f9ff; color: var(--brand-dark); }
.tool-link:hover::before { background: var(--brand); }

.tool-link--new::after {
  content: "Yeni";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: auto;
  flex: none;
}

/* ---------- No results ---------- */
.empty {
  display: none;
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-muted);
}

.empty.is-visible { display: block; }

.empty__title { font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0; font-size: 14px; }

/* ---------- Tool page ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--ink-muted);
}

.breadcrumb a { transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--brand); }

.tool-page { padding: 22px 0 64px; max-width: 760px; }

.tool-page__title {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.tool-page__lead { margin: 0 0 26px; color: var(--ink-soft); }

.tool-page__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.tool-page__badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}

.tool-page__card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14.5px; }

.tool-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.tool-page__back:hover { color: var(--brand-dark); }

/* ---------- İçerik / kurumsal sayfalar ---------- */
.page { padding: 8px 0 64px; max-width: 1000px; }

.page__head { margin-bottom: 24px; }

.page__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 4px 11px;
}

.page__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.page__lead {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 68ch;
}

.page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.page__layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page__layout > * { min-width: 0; }

.page__toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.page__toc-title {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.page__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.page__toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  transition: background .16s var(--ease), color .16s var(--ease);
}

.page__toc a:hover { background: #f1f5f9; color: var(--brand-dark); }

.prose {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose h2 {
  margin: 30px 0 10px;
  font-size: 19px;
  letter-spacing: -.01em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h3 { margin: 22px 0 8px; font-size: 15.5px; letter-spacing: -.01em; }

.prose p, .prose li { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: #94a3b8; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose code {
  padding: 1px 6px;
  background: #f1f5f9;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-dark); }
.prose a:focus-visible { outline: 3px solid rgba(29, 78, 216, .6); outline-offset: 2px; border-radius: 4px; }

.table-wrap { margin: 0 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 520px; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.prose th, .prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.prose th { color: var(--ink); font-weight: 600; background: #f8fafc; }
.prose th:first-child { border-top-left-radius: 8px; }
.prose th:last-child { border-top-right-radius: 8px; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  background: #f5f9ff;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
}

.callout svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.callout p { margin: 0; font-size: 14px; }

.steps { display: grid; gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
}
.step__title { margin: 0 0 3px; font-size: 15px; }
.steps p { margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.stat {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat__value { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--brand-dark); }
.stat__label { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); }

.code-block { position: relative; margin: 0 0 18px; }
.code-block pre {
  margin: 0;
  padding: 16px 120px 16px 18px;
  background: #0b1220;
  color: #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
}
.code-block code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
}
.code-block__copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(148, 163, 184, .16);
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.code-block__copy:hover { background: rgba(148, 163, 184, .3); color: #fff; }

.embed-preview {
  margin: 0 0 18px;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.embed-preview__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.embed-preview iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-card__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-card__value { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-card__value a { color: var(--brand); }
.contact-card__value a:hover { color: var(--brand-dark); }
.contact-card__hint { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.form-grid .field--wide { grid-column: 1 / -1; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.form-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-muted); }
.form-status { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: #047857; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: translateY(1px); }

.prose .btn-primary,
.prose .btn-primary:hover { color: #fff; text-decoration: none; }
.prose .btn-ghost,
.prose .btn-ghost:hover { text-decoration: none; }

@media (max-width: 860px) {
  .page__layout { grid-template-columns: 1fr; gap: 18px; }
  .page__toc { position: static; }
  .prose { padding: 22px; }
}

@media (max-width: 640px) {
  .page { padding: 4px 0 48px; }
  .prose { padding: 18px; }
  .prose h2 { margin-top: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .embed-preview iframe { height: 300px; }
  .code-block pre { padding-right: 96px; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 24px;
  background: #0b1220;
  color: #cbd5e1;
}

.footer__container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-block: 44px 36px;
}

.footer__logo { margin: 0 0 8px; font-size: 18px; color: #fff; letter-spacing: -.01em; }
.footer__text { margin: 0; font-size: 14px; color: #94a3b8; }

.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }

.footer__link { font-size: 14px; color: #cbd5e1; transition: color .18s var(--ease); }
.footer__link:hover { color: #fff; }
.footer__link[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-block: 18px;
  font-size: 13px;
  color: #94a3b8;
}

.footer__bottom p { margin: 0; }

/* ---------- Calculator page ---------- */
.calc__noscript {
  margin: 32px 0;
  padding: 16px 18px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  color: #92400e;
}

.calc__intro {
  max-width: 780px;
  padding-top: 18px;
}

.calc__category {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 4px 11px;
}

.calc__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.calc__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 68ch;
}

.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: start;
  gap: 24px;
  margin: 26px 0 8px;
}

.calc__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.calc__form > .calc__actions,
.field--wide {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.is-hidden { display: none; }

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.field__range {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.input:hover { border-color: #cbd5e1; }

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .16);
}

textarea.input {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

select.input {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.field__color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input--color {
  width: 64px;
  min-width: 64px;
  padding: 4px;
  cursor: pointer;
}

.field__hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.calc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.calc__hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Result column */
.calc__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.calc__result {
  min-width: 0;
}

.result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.result__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.result__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, .12);
  flex: none;
}

.result__copy {
  flex: none;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.result__copy:hover { border-color: var(--brand); color: var(--brand); background: #f5f9ff; }

.result__value {
  margin: 8px 0 0;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--brand-dark);
  overflow-wrap: anywhere;
}

.result__rows {
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.result__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.result__row:last-child { border-bottom: 0; padding-bottom: 2px; }

.result__row dt {
  color: var(--ink-soft);
  flex: 1 1 auto;
  min-width: 0;
}

.result__row dd {
  margin: 0;
  flex: 0 1 auto;
  max-width: 62%;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.result__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.result--empty .result__value,
.result--error .result__value { font-size: 24px; color: var(--ink-muted); }

.result__error {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: #b91c1c;
  font-weight: 500;
}

.result--empty .result__error { color: var(--ink-muted); font-weight: 400; }

.result--error { border-color: #fecaca; box-shadow: 0 8px 28px rgba(185, 28, 28, .08); }

/* Related tools */
.calc__related {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.calc__related-title {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -.01em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.related-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.related-link:hover {
  color: var(--brand-dark);
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

/* Pending / not found */
.calc__pending {
  margin: 26px 0 8px;
  max-width: 660px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.calc__pending-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}

.calc__pending-title {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.01em;
}

.calc__pending-text {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Ready-tool directory */
.calc__dir {
  display: grid;
  gap: 26px;
  margin: 26px 0 8px;
}

.dir-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dir-group__title {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.01em;
}

.dir-group__count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.dir {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.dir__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.dir__link:hover { color: var(--brand-dark); border-color: #bfdbfe; }

.dir__name { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .calc__grid { grid-template-columns: 1fr; gap: 18px; }
  .result { box-shadow: var(--shadow-sm); }
}

@media (max-width: 640px) {
  .calc__intro { padding-top: 12px; }
  .calc__form { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .calc__form > .calc__actions { grid-column: auto; }
  .result { padding: 18px; }
  .result__row { font-size: 13.5px; }
  .related-grid, .dir { grid-template-columns: 1fr; }
  .calc__pending { padding: 20px; }
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal .5s var(--ease) forwards;
  }
  @keyframes reveal {
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .header__container { gap: 8px 12px; }
  .logo__text { font-size: 17px; }
  .logo__mark { width: 32px; height: 32px; }
  .nav-trigger { padding: 8px 14px; font-size: 13px; min-height: 44px; }
  .nav-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .hero { padding: 40px 0 28px; }
  .hero__description { font-size: 15px; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 14px; gap: 10px; }
  .category-card__name { font-size: 13.5px; }
  .section-title { font-size: 19px; }
  .tool-group__body { grid-template-columns: 1fr; }
  .tool-group__head { padding: 14px; }
  .footer__container { flex-direction: column; gap: 24px; padding-block: 32px 28px; }
}

/* ---------- Reklam alanları ---------- */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  margin: 26px auto;
  padding: 14px 16px;
  text-align: center;
  background-color: #fbfdff;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(148, 163, 184, .07) 0 10px,
    transparent 10px 20px
  );
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

.ad-slot__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ad-slot__size {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.ad-slot--leaderboard { min-height: 90px; }

.ad-slot--rectangle {
  max-width: 300px;
  min-height: 250px;
  margin: 0 auto;
}

.ad-band { padding: 4px 0 2px; }

.calc__side .ad-slot { margin: 0; }

@media (max-width: 640px) {
  .ad-slot { margin: 22px auto; padding: 12px; }
  .ad-slot--leaderboard { min-height: 100px; }
  .ad-slot--rectangle { max-width: 100%; min-height: 200px; margin-inline: auto; }
  .calc__side .ad-slot { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}
