/* ══════════════════════════════════════════════════
   shared.css — HizmetAra Ortak Stil Dosyası
   Tüm sayfalarda yüklenir (header.php aracılığıyla).
   İçerik: tokens · reset · header/nav · dropdown ·
           modal · footer · breadcrumb · responsive
══════════════════════════════════════════════════ */

/* ── TASARIM TOKEN'LARI ── */
:root {
  /* Ana renk — yeşil (açıktan koyuya) */
  --green-light:   #F0FDF4;   /* En açık yüzey */
  --green-surface: #EBF9EF;   /* Kart arka planı, hover yüzeyi */
  --green-border:  #B8E8C4;   /* Kenarlık */
  --green:         #10B981;   /* Primary — CTA buton, Emerald 500 (İltibas Önlemi) */
  --green-dark:    #047857;   /* Koyu vurgu metin, Emerald 700 */
  /* İkincil renk — teal (Hizmet Veren yolu) */
  --teal:          #0D9488;
  --teal-dark:     #0F766E;
  --teal-surface:  #F0FDFA;
  --teal-border:   #99F6E4;

  /* Nötr/gri skalası */
  --ink-900: #0E0F11;
  --ink-800: #292D33;
  --ink-700: #3A3F46;
  --ink-500: #6A7482;
  --ink-300: #B8C0CA;
  --ink-100: #E3E5E8;
  --ink-50:  #F7F8F9;
  --white:   #FFFFFF;

  /* Logo turuncu — sınırlı kullanım (logo span, footer etiketleri) */
  --orange:         #FF4102;
  --orange-dark:    #CC3402;
  --orange-surface: #FFF0EB;

  /* Yardımcı */
  --amber: #F59E0B;

  /* Border radius */
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Gölgeler */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  /* Tipografi: yazı ailesi & düzen */
  --font:  'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;

  /* Tipografi: boyut skalası — yeni CSS'te hep bu token'lar kullanılır, elle px yazılmaz */
  --text-xs:      12px;   /* küçük meta, sayaç, chip, not */
  --text-sm:      13px;   /* ikincil metin, tag, footer link, breadcrumb */
  --text-base:    14px;   /* ana gövde, nav, input, buton */
  --text-md:      15px;   /* orta vurgu, dropdown label, fiyat */
  --text-lg:      16px;   /* büyük gövde, birincil CTA buton */
  --text-xl:      17px;   /* alt başlık, adım başlığı */
  --text-2xl:     22px;   /* kart başlığı, modal başlığı (h3 seviyesi) */
  --text-3xl:     28px;   /* bölüm başlığı (h2 seviyesi) */
  --text-4xl:     32px;   /* büyük numara, fiyat göstergesi */
  --text-5xl:     36px;   /* sayfa/SEO h1 */
  --text-6xl:     46px;   /* hero h1 masaüstü */
  --text-display: 56px;   /* puan/rating display — özel kullanım */

  /* Tipografi: satır yükseklikleri */
  --leading-tight:   1.2; /* hero h1, büyük başlıklar */
  --leading-snug:    1.4; /* badge, kompakt UI metin */
  --leading-normal:  1.6; /* standart UI metin */
  --leading-relaxed: 1.7; /* gövde metni, açıklama paragrafları */
  --leading-loose:   1.8; /* uzun form içerik, blog makalesi */

  /* ── SPACING SCALE (8px tabanlı) ──
     Tüm sayfalarda bu token'lar kullanılır, elle px yazılmaz.
     xs=8  sm=16  md=24  lg=32  xl=48  2xl=64  3xl=96          */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  32px;
  --sp-xl:  48px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Bölüm dikey padding — sayfa tiplerine göre */
  --py-section: 48px;   /* normal section (was 64-72px) */
  --py-hero:    64px;   /* hero / öne çıkan büyük alanlar */
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--ink-800); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── UTILITY ── */
.text-amber { color: var(--amber); }
.w-full     { width: 100%; }

/* ── HEADER / NAV ── */
header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 1px solid var(--ink-100);
  height: 64px; display: flex; align-items: center;
  box-shadow: var(--shadow-xs);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-img--footer { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  transition: color .15s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a.active { color: var(--green); border-bottom-color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── KATEGORİLER NAV DROPDOWN ── */
.nav-cats-wrap { position: relative; }
.nav-cats-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  transition: color .15s; padding: 4px 0;
  border-bottom: 2px solid transparent; cursor: pointer;
}
.nav-cats-trigger:hover { color: var(--ink-900); }
.nav-cats-trigger.active { color: var(--green); border-bottom-color: var(--green); }
.nav-caret { font-size: 13px; transition: transform .15s; }
.nav-cats-wrap:hover .nav-caret { transform: rotate(180deg); }
.nav-cats-drop {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 480px; z-index: 300;
  padding-top: 12px; /* hover köprüsü */
}
.nav-cats-drop-inner {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; padding: 16px 16px 0;
}
.nav-cats-wrap:hover .nav-cats-drop { display: block; }
.ncd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ncd-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border-radius: var(--radius);
  text-decoration: none; transition: background .12s;
}
.ncd-item:hover { background: var(--green-surface); }
.ncd-ico { font-size: 22px; color: var(--green); flex-shrink: 0; width: 26px; text-align: center; }
.ncd-label { font-size: 15px; font-weight: 600; color: var(--ink-800); }
.ncd-item:hover .ncd-label { color: var(--green-dark); }
.ncd-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; border-top: 1px solid var(--ink-100);
  font-size: 14px; font-weight: 600; color: var(--green);
  text-decoration: none; transition: background .12s;
}
.ncd-all:hover { background: var(--green-surface); }

/* ── GİRİŞ DROPDOWN ── */
.nav-login-wrap { position: relative; }
.btn-login {
  padding: 9px 18px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--ink-800); border: 1.5px solid var(--ink-100);
  background: var(--white); cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 5px;
}
.btn-login:hover { border-color: var(--green); color: var(--green-dark); }
.btn-login .caret { font-size: 10px; transition: transform .15s; display: inline-block; }
.btn-login.open .caret { transform: rotate(180deg); }
.login-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-width: 240px; overflow: hidden; z-index: 300;
}
.login-dropdown.open { display: block; }
.login-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; text-decoration: none; transition: background .12s;
}
.login-option:hover { background: var(--ink-50); }
.lo-icon  { font-size: 22px; flex-shrink: 0; }
.lo-title { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.lo-desc  { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.login-divider { height: 1px; background: var(--ink-100); margin: 0 18px; }

/* ── ÜYE OL BUTONU ── */
.btn-kayit {
  padding: 10px 24px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  color: var(--white); background: #FF4102 !important;
  border: none; cursor: pointer; transition: transform .2s, background .2s;
}
.btn-kayit:hover { background: #CC3402 !important; transform: translateY(-1px); }

/* ── HAMBURGER BUTONU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px -10px -10px 0;
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBİL NAV DRAWER ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 400;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.mobile-nav.open { display: block; }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid var(--ink-100);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.mobile-nav-close {
  width: 44px; height: 44px;
  background: var(--ink-50);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-700);
  transition: background .15s;
}
.mobile-nav-close:hover { background: var(--ink-100); }
.mobile-nav-close i { font-size: 20px; pointer-events: none; }
.mobile-nav-links {
  padding: 4px 0;
  border-bottom: 1px solid var(--ink-100);
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 52px;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-50);
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a.active { color: var(--green); }
.mnav-cats { padding: 20px; border-bottom: 1px solid var(--ink-100); }
.mnav-cats-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.mnav-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mnav-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink-50);
  text-decoration: none;
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background .12s;
  min-height: 44px;
}
.mnav-cat-item:hover { background: var(--green-surface); color: var(--green-dark); }
.mnav-cat-item i { font-size: 18px; color: var(--green); flex-shrink: 0; }
.mnav-cats-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink-100);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  min-height: 44px;
}
.mnav-cats-all:hover { background: var(--green-surface); }
.mobile-nav-actions {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-mnav-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--ink-100);
  color: var(--ink-800);
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-mnav-login:hover { border-color: var(--green); color: var(--green-dark); }
.btn-mnav-kayit {
  display: block; width: 100%; padding: 14px; border-radius: var(--radius);
  background: #FF4102 !important; color: white; text-align: center;
  font-weight: 700; text-decoration: none; font-size: 15px;
}

/* ── KAYIT MODAL ── */
.reg-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 500; align-items: center; justify-content: center;
}
.reg-overlay.open { display: flex; }
.reg-modal {
  background: var(--white); border-radius: 20px;
  padding: 36px 32px; max-width: 420px; width: 90%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
}
.reg-close {
  position: absolute; top: 16px; right: 16px; background: var(--ink-50);
  border: none; cursor: pointer; font-size: 16px; color: var(--ink-500);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.reg-close:hover { background: var(--ink-100); }
.reg-modal h2    { font-size: 22px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.reg-modal > p   { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }
.reg-option {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: var(--radius-lg); border: 1.5px solid var(--ink-100);
  text-decoration: none; transition: all .15s; margin-bottom: 10px;
}
.reg-option:last-child { margin-bottom: 0; }
.reg-arayan:hover { border-color: var(--green); background: var(--green-surface); }
.reg-veren:hover  { border-color: var(--teal);  background: var(--teal-surface); }
.reg-option > span { font-size: 26px; flex-shrink: 0; }
.ro-title { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.ro-desc  { font-size: 12px; color: var(--ink-500); margin-top: 3px; line-height: 1.4; }

/* ── FOOTER ── */
footer { background: #fff; border-top: 1px solid var(--ink-100); }

/* Keşif Bandı */
.footer-discovery {
  background: var(--ink-50);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  padding: 40px 0;
}
.fd-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 40px;
  align-items: start;
}
.fd-sep {
  width: 1px;
  background: var(--ink-100);
  align-self: stretch;
  margin: 4px 0;
}
.fd-block { display: flex; flex-direction: column; gap: 14px; }
.fd-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--green-dark);
}
.fd-label i { font-size: 13px; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-tag {
  font-size: 13px; color: var(--ink-700);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  transition: background .18s, border-color .18s, color .18s;
}
.fd-tag:hover {
  color: var(--green-dark);
  background: var(--green-surface);
  border-color: var(--green-border);
}
.fd-tag--dim { color: var(--ink-500); }
.fd-tag--dim:hover { color: var(--green-dark); background: var(--green-surface); border-color: var(--green-border); }

/* Ana Grid */
.footer-main { padding: 48px 0 44px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-logo { display: block; margin-bottom: 10px; }
.footer-desc {
  font-size: 14px; color: var(--ink-500);
  line-height: 1.7; max-width: 230px; margin-bottom: 16px;
}
.footer-badges { display: flex; flex-direction: column; gap: 6px; }
.fbadge {
  font-size: 12px; color: var(--ink-500);
  background: var(--ink-50); border: 1px solid var(--ink-100);
  border-radius: 6px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 5px; width: fit-content;
}
.fbadge i { font-size: 12px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; color: var(--ink-800);
  text-transform: uppercase; letter-spacing: .9px; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--ink-500); transition: color .2s; }
.footer-col ul li a:hover { color: var(--green-dark); }

/* Sosyal & İletişim */
.footer-social { display: flex; gap: 8px; margin-bottom: 16px; }
.fsocial {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); transition: all .2s;
}
.fsocial:hover { color: var(--green-dark); border-color: var(--green); background: var(--green-light); }
.fcontact {
  font-size: 13px; color: var(--ink-500);
  display: block; margin-bottom: 14px; transition: color .2s;
}
.fcontact:hover { color: var(--green); }
.etbis-badge {
  font-size: 10px; color: var(--ink-500);
  border: 1px solid var(--ink-100);
  border-radius: 4px; padding: 3px 8px; display: inline-block;
}

/* Alt Çizgi */
.footer-bottom {
  border-top: 1px solid var(--ink-100); padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-500); flex-wrap: wrap; gap: 10px;
  background: var(--ink-50);
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-500); transition: color .2s; }
.footer-legal a:hover { color: var(--green-dark); }

/* ── BREADCRUMB ── */
/* Standart: site-tasarim.md §2.2 — Sayfa tipi → sıralama kuralları orada */
.bc-bar { background: var(--ink-50); border-bottom: 1px solid var(--ink-100); padding: 11px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-400); flex-wrap: wrap; line-height: 1; }
.breadcrumb a { color: var(--ink-500); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--ink-300); font-size: 11px; user-select: none; }
.breadcrumb .cur,
.breadcrumb [aria-current="page"] { color: var(--ink-800); font-weight: 600; }

/* ── RESPONSIVE ──
   Breakpoint standardı (tüm sayfalarda tutarlı):
   ≤900px  tablet landscape
   ≤768px  tablet portrait / mobil başlangıcı (hamburger açılır)
   ≤600px  büyük telefon / phablet
   ≤480px  standart telefon
   ≤375px  küçük telefon (SE vb.)
──────────────────────────────────────────────── */

/* 900px — Tablet landscape */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 768px — Tablet portrait / Mobil başlangıcı */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* Footer discovery */
  .fd-inner { grid-template-columns: 1fr; }
  .fd-sep { display: none; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* iOS — input zoom önlemi (font-size < 16px olan inputlar telefonu zoom yapar) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  textarea,
  select { font-size: 16px; }
}

/* 480px — Standart telefon */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
  }
  .footer-legal { gap: 10px; }
  /* Desktop login butonunu küçük ekranda gizle — hamburger menüde mevcut */
  .nav-actions .btn-login { display: none; }
}

/* 375px — Küçük telefon */
@media (max-width: 375px) {
  .footer-grid { grid-template-columns: 1fr; }
  .mnav-cats-grid { grid-template-columns: 1fr; }
}
