/* =====================================================================
   ihbys.com — kamuya açık tanıtım sayfaları ve blog
   ===================================================================== */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f8fa;
  --surface:   #ffffff;
  --ink:       #0d1b2a;
  --ink-soft:  #4a5568;
  --ink-faint: #8a97a8;
  --line:      #e3e8ee;
  --brand:     #1d4ed8;
  --brand-dk:  #1e3a8a;
  --brand-lt:  #eef3ff;
  --brand-ink: #ffffff;   /* marka zemini üzerindeki metin */
  --accent:    #b45309;
  --ok:        #15803d;
  --ok-bg:     #f0fdf4;
  --warn:      #b45309;
  --warn-bg:   #fffbeb;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(13, 27, 42, .04), 0 6px 24px rgba(13, 27, 42, .06);
  --wrap:      1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b1220;
    --bg-alt:    #0f1829;
    --surface:   #131c2e;
    --ink:       #e9eff7;
    --ink-soft:  #a9b6c9;
    --ink-faint: #6d7c92;
    --line:      #22304a;
    --brand:     #93b4fd;
    --brand-dk:  #bfd2ff;
    --brand-lt:  #16223f;
    --brand-ink: #0b1220;
    --ok-bg:     #11251a;
    --warn-bg:   #2a2113;
    --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; }
.muted { color: var(--ink-soft); }
.empty { color: var(--ink-faint); font-style: italic; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 100;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------
   Başlık
   -------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.site-nav a.is-active { color: var(--brand); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle, .nav-button { display: none; }

@media (max-width: 780px) {
  .nav-button {
    display: block;
    margin-left: auto;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
  }
  .nav-button span,
  .nav-button span::before,
  .nav-button span::after {
    content: '';
    position: absolute;
    left: 10px; width: 18px; height: 2px;
    background: var(--ink);
  }
  .nav-button span { top: 19px; }
  .nav-button span::before { top: -6px; left: 0; }
  .nav-button span::after  { top:  6px; left: 0; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 12px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* --------------------------------------------------------------------
   Kahraman alanları
   -------------------------------------------------------------------- */
.hero {
  background: linear-gradient(170deg, var(--brand-lt) 0%, transparent 70%);
  padding: 72px 0 64px;
}
.hero-inner { max-width: 820px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 780;
}
.hero h1 em { font-style: normal; color: var(--brand); }

.lede { margin: 0 0 28px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 62ch; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 20px 0 0; font-size: 14px; color: var(--ink-faint); }

.page-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 760;
}

/* --------------------------------------------------------------------
   Bölümler
   -------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -.025em;
  font-weight: 720;
  max-width: 24ch;
}
.section-lede { margin: 0 0 36px; color: var(--ink-soft); max-width: 64ch; }
.section-lede em { font-style: italic; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.015em; }
.feature p  { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.split-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .split-2 { grid-template-columns: 1fr 1fr; } }

.mode-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.mode-card h3 { margin: 0 0 12px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.mode-card p  { color: var(--ink-soft); font-size: 15.5px; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-lt);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.check-list { margin: 16px 0 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

/* --------------------------------------------------------------------
   Kod blokları
   -------------------------------------------------------------------- */
.code {
  background: #0d1b2a;
  color: #d7e3f4;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 16px 0;
}
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* --------------------------------------------------------------------
   SSS
   -------------------------------------------------------------------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 620;
  font-size: 16.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }

/* --------------------------------------------------------------------
   Yazı listesi
   -------------------------------------------------------------------- */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 28px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.post-grid-wide { margin-bottom: 56px; }

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
}
.post-card:hover { border-color: var(--brand); }
.post-card h2, .post-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.post-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.post-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.post-meta { font-size: 13.5px; color: var(--ink-faint); }

/* --------------------------------------------------------------------
   Belge / yazı gövdesi
   -------------------------------------------------------------------- */
.doc { padding: 44px 20px 64px; }
.doc-narrow { max-width: 760px; }

.doc h2 {
  margin: 44px 0 14px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.025em;
  font-weight: 720;
  scroll-margin-top: 80px;
}
.doc h3 { margin: 30px 0 10px; font-size: 19px; letter-spacing: -.015em; }
.doc p  { margin: 0 0 16px; color: var(--ink-soft); }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }

.note {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
}

.table-scroll { overflow-x: auto; margin: 18px 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.doc-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }

.verb {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
}
.verb.get  { background: #1d4ed8; }
.verb.post { background: #15803d; }
.verb.del  { background: #b91c1c; }

.crumbs { font-size: 14px; color: var(--ink-faint); margin-bottom: 22px; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.post-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 8px; }
.post-head h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -.03em;
  font-weight: 760;
}
.post-lede { margin: 14px 0 0; font-size: 18px; color: var(--ink-soft); }

.post-body h2 { margin-top: 40px; }
.post-body blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  font-style: italic;
}
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; }
.post-body th, .post-body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body th { color: var(--ink-faint); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.tag-row .tag { background: var(--bg-alt); color: var(--ink-soft); text-transform: none; letter-spacing: 0; }

.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }

/* --------------------------------------------------------------------
   Fiyat kartları
   -------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin: 44px 0;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card-featured { border-color: var(--brand); border-width: 2px; }
.price-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h2 { margin: 0 0 12px; font-size: 20px; }
.price { margin: 0; font-size: 30px; font-weight: 780; letter-spacing: -.03em; }
.price span { font-size: inherit; }
.price-note { margin: 4px 0 18px; color: var(--ink-faint); font-size: 14px; }
.price-card .check-list { flex: 1; margin-bottom: 20px; }

/* --------------------------------------------------------------------
   İletişim
   -------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 44px 20px 64px;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }

.contact-side h2 { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.contact-side p, .contact-side address { margin: 0 0 26px; color: var(--ink-soft); font-style: normal; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
/* Tuzak alanı — ekranda görünmez ama ekran okuyucudan da gizlenir */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15.5px; }
.notice-ok   { background: var(--ok-bg);   color: var(--ok); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.flash       { padding: 13px 16px; border-radius: var(--radius-sm); margin: 16px 0; background: var(--brand-lt); color: var(--brand-dk); }

/* --------------------------------------------------------------------
   Düğmeler
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15.5px;
  font-weight: 640;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dk); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}
.chip.is-active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* --------------------------------------------------------------------
   Eyleme çağrı
   -------------------------------------------------------------------- */
.cta {
  background: var(--brand);
  background-image: linear-gradient(160deg, var(--brand), var(--brand-dk));
  color: var(--brand-ink);
  padding: 64px 0;
  text-align: center;
}
.cta h2 { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.025em; }
.cta p  { margin: 0 0 26px; opacity: .92; font-size: 17px; }
.cta .btn-primary { background: var(--brand-ink); color: var(--brand); }
.cta .btn-primary:hover { opacity: .92; }

.cta-inline {
  margin: 44px 0 0;
  padding: 26px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-inline p { margin: 0; color: var(--ink-soft); flex: 1; min-width: 260px; }

/* --------------------------------------------------------------------
   Alt bilgi
   -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--bg-alt); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
}
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.footer-grid a { display: block; margin-bottom: 8px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--brand); }
.brand-footer { display: block; margin-bottom: 12px; }
.footer-grid .muted { font-size: 15px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
