/* Bencahil Hesapla — sade araç sitesi teması */
:root {
  --bh-bg: #f6f7fb;
  --bh-card: #ffffff;
  --bh-text: #111827;
  --bh-muted: #6b7280;
  --bh-border: #e5e7eb;
  --bh-accent: #2563eb;
  --bh-accent-soft: #eff6ff;
  --bh-accent-dark: #1d4ed8;
  --bh-success: #059669;
  --bh-warning: #b45309;
  --bh-radius: 14px;
  --bh-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --bh-shadow-hover: 0 14px 34px rgba(15, 23, 42, .10);
}

[data-theme="dark"] {
  --bh-bg: #0b1220;
  --bh-card: #111a2e;
  --bh-text: #e5e7eb;
  --bh-muted: #94a3b8;
  --bh-border: #1f2a44;
  --bh-accent: #60a5fa;
  --bh-accent-soft: #14213d;
  --bh-accent-dark: #93c5fd;
  --bh-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  --bh-shadow-hover: 0 14px 34px rgba(0, 0, 0, .35);
}

body.bh-site {
  background: var(--bh-bg);
  color: var(--bh-text);
}

.bh-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.bh-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bh-card);
  background: color-mix(in srgb, var(--bh-card) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bh-border);
}
.bh-header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.bh-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--bh-text);
  text-decoration: none;
  flex: 0 0 auto;
}
.bh-brand img { height: 30px; width: auto; display: block; }
.bh-brand span { color: var(--bh-accent); }
.bh-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
}
.bh-nav > a,
.bh-more > button {
  position: relative;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bh-muted);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.bh-nav > a:hover,
.bh-more > button:hover { color: var(--bh-text); }
.bh-nav > a.active { color: var(--bh-accent); }
.bh-nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -21px;
  height: 2px;
  border-radius: 2px;
  background: var(--bh-accent);
}
.bh-more { position: relative; }
.bh-more-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 190px;
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: 12px;
  box-shadow: var(--bh-shadow);
  padding: 8px;
  display: none;
}
.bh-more:hover .bh-more-menu,
.bh-more:focus-within .bh-more-menu { display: block; }
.bh-more-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--bh-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.bh-more-menu a:hover { background: var(--bh-accent-soft); color: var(--bh-accent); }

.bh-search {
  display: flex;
  align-items: center;
  flex: 0 1 290px;
  min-width: 170px;
  background: var(--bh-bg);
  border: 1px solid var(--bh-border);
  border-radius: 10px;
  padding: 3px 3px 3px 12px;
}
.bh-search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 7px 4px;
  font: inherit;
  font-size: 14px;
  color: var(--bh-text);
  outline: none;
  min-width: 0;
}
.bh-search button {
  border: 0;
  border-radius: 8px;
  background: var(--bh-accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}
.bh-search button:hover { background: var(--bh-accent-dark); }

.bh-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.bh-link {
  color: var(--bh-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 4px;
}
.bh-link:hover { color: var(--bh-text); }
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bh-accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.bh-btn:hover { background: var(--bh-accent-dark); }
.bh-btn-ghost {
  background: transparent;
  color: var(--bh-text);
  border-color: var(--bh-border);
}
.bh-btn-ghost:hover { background: var(--bh-accent-soft); color: var(--bh-accent); }
.bh-userchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--bh-text);
  font-size: 13.5px;
  font-weight: 700;
}
.bh-userchip img,
.bh-userchip .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.bh-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--bh-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.bh-burger {
  display: none;
  border: 1px solid var(--bh-border);
  background: var(--bh-card);
  color: var(--bh-text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 19px;
  cursor: pointer;
}
.bh-mobile-menu {
  display: none;
  border-top: 1px solid var(--bh-border);
  background: var(--bh-card);
  padding: 10px 16px 16px;
}
.bh-mobile-menu.open { display: block; }
.bh-mobile-menu a {
  display: block;
  padding: 11px 4px;
  border-bottom: 1px solid var(--bh-border);
  color: var(--bh-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.bh-mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Ana sayfa ---------- */
.hp-hero {
  padding: 58px 0 42px;
  background:
    radial-gradient(800px 300px at 80% -10%, var(--bh-accent-soft), transparent 70%),
    var(--bh-bg);
  border-bottom: 1px solid var(--bh-border);
}
.hp-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 850;
}
.hp-hero p {
  margin: 0 0 24px;
  color: var(--bh-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}
.hp-search {
  display: flex;
  gap: 8px;
  max-width: 660px;
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: 14px;
  padding: 7px;
  box-shadow: var(--bh-shadow);
}
.hp-search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--bh-text);
  outline: none;
  min-width: 0;
}
.hp-search button {
  border: 0;
  border-radius: 10px;
  background: var(--bh-accent);
  color: #fff;
  font: inherit;
  font-weight: 750;
  font-size: 15px;
  padding: 11px 20px;
  cursor: pointer;
}
.hp-search button:hover { background: var(--bh-accent-dark); }
.hp-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--bh-muted);
}
.hp-tag {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--bh-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.hp-tag:hover { border-color: var(--bh-accent); color: var(--bh-accent); }

.hp-section { padding: 42px 0; }
.hp-section + .hp-section { padding-top: 0; }
.hp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.hp-section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hp-section-head p { margin: 4px 0 0; color: var(--bh-muted); font-size: 14px; }
.hp-section-head a { color: var(--bh-accent); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }

.hp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hp-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 18px;
  text-decoration: none;
  color: var(--bh-text);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bh-shadow-hover);
  border-color: color-mix(in srgb, var(--bh-accent) 40%, var(--bh-border));
}
.hp-card-kicker { font-size: 12px; font-weight: 800; color: var(--bh-accent); text-transform: uppercase; letter-spacing: .04em; }
.hp-card h3 { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 800; }
.hp-card p { margin: 0; color: var(--bh-muted); font-size: 13.5px; line-height: 1.55; }
.hp-card-meta { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--bh-muted); display: flex; justify-content: space-between; align-items: center; }
.hp-card-meta b { color: var(--bh-accent); font-weight: 800; }

.hp-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hp-cat {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--bh-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.hp-cat:hover { border-color: var(--bh-accent); }
.hp-cat b { font-size: 14.5px; }
.hp-cat span { color: var(--bh-muted); font-size: 12.5px; white-space: nowrap; }

.hp-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hp-data-card {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--bh-text);
}
.hp-data-card:hover { border-color: var(--bh-accent); }
.hp-data-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.hp-data-card span { color: var(--bh-muted); font-size: 13px; line-height: 1.5; }

.hp-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hp-guide {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 18px;
  text-decoration: none;
  color: var(--bh-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-guide:hover { border-color: var(--bh-accent); }
.hp-guide small { color: var(--bh-accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.hp-guide b { font-size: 16px; line-height: 1.35; }
.hp-guide p { margin: 0; color: var(--bh-muted); font-size: 13.5px; line-height: 1.55; }

.hp-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hp-trust-item {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: 12px;
  padding: 18px;
}
.hp-trust-item b { display: block; margin-bottom: 6px; font-size: 15.5px; }
.hp-trust-item p { margin: 0; color: var(--bh-muted); font-size: 13.5px; line-height: 1.55; }

.hp-cta {
  margin: 10px 0 48px;
  background: var(--bh-accent-soft);
  border: 1px solid color-mix(in srgb, var(--bh-accent) 22%, var(--bh-border));
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hp-cta h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.hp-cta p { margin: 0; color: var(--bh-muted); font-size: 14.5px; }

/* ---------- Araç kataloğu ---------- */
.tl-hero {
  padding: 44px 0 26px;
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-bg);
}
.tl-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.03em; }
.tl-hero p { margin: 0; color: var(--bh-muted); font-size: 16px; }
.tl-search { margin-top: 20px; max-width: 620px; }
.tl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.tl-chip {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--bh-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.tl-chip.active, .tl-chip:hover { border-color: var(--bh-accent); color: var(--bh-accent); background: var(--bh-accent-soft); }
.tl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}
.tl-card {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 18px;
  text-decoration: none;
  color: var(--bh-text);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow-hover); border-color: var(--bh-accent); }
.tl-card small { color: var(--bh-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tl-card b { display: block; margin: 6px 0; font-size: 17px; line-height: 1.3; }
.tl-card p { margin: 0; color: var(--bh-muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Araç sayfası ---------- */
.tool-hero { padding: 30px 0 10px; }
.tool-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.tool-hero p { margin: 0; color: var(--bh-muted); font-size: 15.5px; max-width: 760px; }
.tool-breadcrumb { color: var(--bh-muted); font-size: 13px; }
.tool-breadcrumb a { color: var(--bh-muted); text-decoration: none; }
.tool-breadcrumb a:hover { color: var(--bh-accent); }
.bh-site .card {
  background: var(--bh-card);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  box-shadow: none;
}
.bh-site .page-head h1 { letter-spacing: -.03em; }
.bh-site .crumbs { color: var(--bh-muted); }

/* ---------- Footer ---------- */
.bh-footer {
  margin-top: 40px;
  background: var(--bh-card);
  border-top: 1px solid var(--bh-border);
  padding: 40px 0 24px;
}
.bh-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}
.bh-footer-brand p { margin: 10px 0 0; color: var(--bh-muted); font-size: 13.5px; line-height: 1.6; max-width: 300px; }
.bh-footer h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--bh-muted); }
.bh-footer-links { display: flex; flex-direction: column; gap: 8px; }
.bh-footer-links a { color: var(--bh-text); text-decoration: none; font-size: 13.5px; }
.bh-footer-links a:hover { color: var(--bh-accent); }
.bh-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--bh-border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--bh-muted);
  font-size: 12.5px;
}
.bh-footer-bottom a { color: var(--bh-muted); text-decoration: none; }
.bh-footer-bottom a:hover { color: var(--bh-accent); }

/* ---------- Mobil alt menü ---------- */
.bh-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--bh-card);
  border-top: 1px solid var(--bh-border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.bh-bottom-nav a,
.bh-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  color: var(--bh-muted);
  text-decoration: none;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 2px;
  cursor: pointer;
}
.bh-bottom-nav .bh-bn-ico { font-size: 18px; line-height: 1; }
.bh-bottom-nav a.active { color: var(--bh-accent); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .bh-nav, .bh-search { display: none; }
  .bh-burger { display: inline-grid; place-items: center; }
  .bh-header-inner { height: 60px; gap: 12px; }
  .bh-brand { flex: 1; }
  .bh-user .bh-btn, .bh-user .bh-link { display: none; }
  .hp-hero { padding: 38px 0 30px; }
  .hp-hero p { font-size: 15.5px; }
  .hp-search { flex-direction: column; }
  .hp-search button { width: 100%; }
  .hp-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-trust { grid-template-columns: 1fr; }
  .bh-bottom-nav { display: grid; }
  body.bh-site { padding-bottom: 64px; }
}
@media (max-width: 620px) {
  .hp-grid, .hp-cats, .hp-data, .hp-guides, .tl-grid { grid-template-columns: 1fr; }
  .hp-section { padding: 30px 0; }
  .hp-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .bh-footer-grid { grid-template-columns: 1fr; }
  .bh-footer { padding: 28px 0 18px; }
  .hp-cta { padding: 20px; }
}

/* Eski Q&A header/footer/mobil menü gizlenir; yeni sade iskelet kullanılır */
body.bh-site .site-header,
body.bh-site .site-footer,
body.bh-site .mobile-nav { display: none !important; }

/* Ana sayfa ve araç sayfalarında tam genişlik iskelet */
body.bh-home .layout.container,
body.bh-tools .layout.container {
  max-width: none;
  padding: 0;
}
body.bh-home .layout,
body.bh-tools .layout {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}
body.bh-home .main-col,
body.bh-tools .main-col { width: 100%; }

.tool-page { padding: 26px 0 44px; }
.tool-page .page-head { margin-top: 0; }
.bh-site .form-card { background: var(--bh-card); border: 1px solid var(--bh-border); border-radius: var(--bh-radius); }
.bh-site .form-card .form-group label { color: var(--bh-text); }
.bh-site .form-card input,
.bh-site .form-card select,
.bh-site .form-card textarea {
  background: var(--bh-bg);
  border: 1px solid var(--bh-border);
  color: var(--bh-text);
  border-radius: 9px;
}
.bh-site .form-card .btn-ask { background: var(--bh-accent); border-color: var(--bh-accent); }

/* Araç sayfası: form ve içerik bloğunu hizala */
.tool-page > .crumbs,
.tool-page > .page-head,
.tool-page > .form-card,
.tool-page > .card,
.tool-page > .tool-content,
.tool-page > .alert {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.tool-page > .form-card { max-width: 900px; }
.tool-page > .page-head { margin-bottom: 12px; }

/* Tema düğmesi: gündüz/gece ikonu, mobilde de görünür */
.bh-theme-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--bh-border);
  border-radius: 10px;
  background: var(--bh-card);
  color: var(--bh-text);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.bh-theme-btn:hover {
  border-color: var(--bh-accent);
  color: var(--bh-accent);
}
@media (max-width: 900px) {
  .bh-theme-btn { display: inline-grid !important; }
  .bh-user .bh-userchip { display: none !important; }
}

/* Rehber <-> araç bağlantıları */
.guide-tool-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bh-accent-soft);
  border: 1px solid color-mix(in srgb, var(--bh-accent) 22%, var(--bh-border));
  border-radius: 14px;
}
.guide-links {
  margin: 0;
  padding-left: 20px;
}
.guide-links li { margin: 7px 0; }
.guide-links a { color: var(--bh-accent); text-decoration: none; font-weight: 650; }
.guide-links a:hover { text-decoration: underline; }
