/* ==========================================================================
   SkiHub skh2 — ortak katman (tokenlar, yazı tipi, ortak bileşenler)
   Kapsam: yalnız .skh2 ve .skh2-* sınıfları. Mevcut CSS dosyalarını değiştirmez.
   Yazı tipi: Inter (SIL OFL 1.1) latin + Türkçe alt kümesi, değişken ağırlık 100–900.
   Aile adı "SkhInter": uygulama kabuğundaki Google Fonts "Inter" (400/600/700) ile
   karışmasın; 500 ve 800 ağırlıkları bu dosyadan gelir.
   ========================================================================== */

@font-face {
  font-family: "SkhInter";
  src: url("../assets/skh2/fonts/SkhInter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Renkler */
  --skh2-navy: #0B2A4A;          /* Navy Primary */
  --skh2-navy-2: #123A65;        /* anahtar geçişi */
  --skh2-navy-deep: #071A2F;     /* Derin */
  --skh2-ice: #7EC8E3;           /* Buz */
  --skh2-ice-dot: #7BC7E6;       /* AI Match noktası */
  --skh2-ice-soft: #E6F2FA;      /* Açık buz */
  --skh2-pill: #F1F5F9;          /* Pill / yumuşak daire */
  --skh2-border: #EDF2F7;        /* Sınır */
  --skh2-line: #CBD5E1;          /* kesikli çizgi / boş aralık */
  --skh2-hero-bg: #FCFEFF;       /* Hero zemini */
  --skh2-page: #FCFEFF;
  --skh2-white: #FFFFFF;
  --skh2-soft: #F8FAFC;
  --skh2-text: #0B2A4A;
  --skh2-text-body: #475569;     /* gövde metni */
  --skh2-text-2: #64748B;        /* ikincil metin (beyaz üstünde 4.76:1) */
  --skh2-text-3: #64748B;        /* üçüncül metin (beyaz üstünde 4.76:1); #94A3B8 yalnız metin dışı öğelerde */
  --skh2-muted-deco: #94A3B8;    /* ikon, nokta, çizgi gibi metin olmayan öğeler */
  --skh2-text-on-pill: #5B6B80;  /* #F1F5F9 zemin üstünde 4.97:1 */
  --skh2-danger: #B42318;
  --skh2-danger-soft: #FEF3F2;

  /* Gölgeler */
  --skh2-shadow-card: 0 8px 24px rgba(11, 42, 74, .06);
  --skh2-shadow-card-hover: 0 12px 32px rgba(11, 42, 74, .10);
  --skh2-shadow-premium: 0 1px 0 rgba(11, 42, 74, .04), 0 8px 24px rgba(11, 42, 74, .06), 0 16px 48px rgba(11, 42, 74, .04);
  --skh2-shadow-rozet: 0 8px 24px rgba(11, 42, 74, .12);
  --skh2-shadow-cta: 0 4px 12px rgba(11, 42, 74, .18);
  --skh2-shadow-cta-hover: 0 8px 20px rgba(11, 42, 74, .22);

  /* Ölçüler */
  --skh2-radius-card: 20px;
  --skh2-radius-card-sm: 16px;
  --skh2-radius-btn: 14px;
  --skh2-container: 1280px;
  --skh2-focus: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--skh2-navy);
}

/* ---------- kapsam ---------- */
.skh2 {
  margin: 0;
  font-family: "SkhInter", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--skh2-text);
  background: var(--skh2-page);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.skh2 *, .skh2 *::before, .skh2 *::after { box-sizing: border-box; }
/* Sıfırlamalar :where() ile tek sınıf ağırlığında (0,1,0): eski global öğe stilleri (main8.css: h2, a, button…)
   yenilir, ama bu dosyadan sonra gelen bileşen sınıfları her zaman üstün kalır. */
.skh2 :where(h1, h2, h3, h4, p, a, span, strong, small, button, input, select, textarea, label, summary, li) {
  font-family: inherit;
  letter-spacing: inherit;
}
.skh2 :where(img) { max-width: 100%; display: block; }
.skh2 :where(a) { color: inherit; text-decoration: none; }
.skh2 :where(button) { font: inherit; color: inherit; }
.skh2 :where(h1, h2, h3, h4, p, figure) { margin: 0; }
.skh2 [hidden] { display: none !important; }
.skh2 .skh2-sr, .skh2-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Klavye odağı: her etkileşimli öğede görünür halka */
.skh2 a:focus-visible,
.skh2 button:focus-visible,
.skh2 select:focus-visible,
.skh2 input:focus-visible,
.skh2 summary:focus-visible,
.skh2 [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--skh2-focus);
}
/* Mevcut skh-rtl.css tüm sayfalarda "outline: 3px solid #056eb4 !important" ekler; .skh2 içinde tek (lacivert) halka kalsın */
.skh2 a:focus-visible, .skh2 button:focus-visible, .skh2 select:focus-visible,
.skh2 input:focus-visible, .skh2 textarea:focus-visible, .skh2 summary:focus-visible { outline: none !important; }
.skh2-skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--skh2-navy); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600;
}
.skh2-skip:focus { top: 12px; }

/* ---------- ikonlar (Lucide çizgileri satır içi SVG) ---------- */
.skh2-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- üst çubuk (mobil/index.php başlığı) ---------- */
.skh2-appbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--skh2-white);
  border-bottom: 1px solid var(--skh2-border);
}
.skh2-appbar__inner {
  height: 72px; max-width: var(--skh2-container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
/* Existing app shell and its menu share one safe-area-aware header height. */
body.app.skh2-shell {
  --header-h: 72px;
  --header-total: calc(var(--header-h) + var(--safe-top));
}
.header.app-header.skh2-appbar { background: var(--skh2-white); }
.skh2-appbar .skh2-appbar__inner {
  width: 100%; min-width: 0; flex-shrink: 0; height: var(--header-h);
}
.skh2-appbar .header-row-empty { flex-shrink: 0; }
@media (min-width: 768px) {
  body.app.skh2-shell { --header-h: 80px; }
}
.skh2-iconbtn {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--skh2-navy);
  transition: background-color .15s ease;
}
.skh2-iconbtn:hover { background: var(--skh2-soft); }
.skh2-iconbtn--soft { background: var(--skh2-pill); }
.skh2-iconbtn--soft:hover { background: #E8EEF4; }

/* Mevcut menü düğmesi: main3.js className'i tamamen "ph ph-list menu-icon" / "ph ph-x menu-icon"
   olarak yeniden yazar; bu yüzden stil sınıfa değil kapsayıcıya bağlanır. */
.skh2-appbar .menu-icon {
  width: 44px; height: 44px; flex: 0 0 44px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--skh2-navy); cursor: pointer;
  font-size: 0; line-height: 0; transition: background-color .15s ease;
}
.skh2-appbar .menu-icon::before { content: none !important; display: none !important; }
.skh2-appbar .menu-icon:hover { background: var(--skh2-soft); }
.skh2-appbar .menu-icon svg { width: 20px; height: 20px; }
.skh2-appbar .menu-icon svg, .skh2-appbar .menu-icon svg path { color: var(--skh2-navy); }
.skh2-appbar .menu-icon .skh-menu-close { display: none; }
.skh2-appbar .menu-icon.ph-x .skh-menu-bars,
.skh2-appbar .menu-icon[aria-expanded="true"] .skh-menu-bars { display: none; }
.skh2-appbar .menu-icon.ph-x .skh-menu-close,
.skh2-appbar .menu-icon[aria-expanded="true"] .skh-menu-close { display: inline; }

.skh2-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border-radius: 999px; }
.skh2-brand__word { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--skh2-navy); }

/* Rozet: beyaz zemin + lacivert çift halka */
.skh2-rozet {
  display: inline-block; flex-shrink: 0; overflow: hidden; border-radius: 999px;
  background: var(--skh2-white); border: 2.5px solid var(--skh2-navy);
  box-shadow: var(--skh2-shadow-rozet);
}
.skh2-rozet img { width: 100%; height: 100%; object-fit: cover; }
.skh2-rozet--header { width: 48px; height: 48px; }
.skh2-rozet--mini { width: 20px; height: 20px; border-width: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }

/* ---------- ana düğme ---------- */
.skh2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; min-width: 214px; padding: 0 30px;
  border: 0; border-radius: var(--skh2-radius-btn);
  font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: -0.01em;
  cursor: pointer; transition: box-shadow .15s ease, transform .1s ease, background-color .15s ease;
}
.skh2-btn--primary { background: var(--skh2-navy); color: #fff !important; box-shadow: var(--skh2-shadow-cta); }
.skh2-btn--primary:hover { box-shadow: var(--skh2-shadow-cta-hover); }
.skh2-btn--primary:active { transform: scale(.98); }
.skh2-btn[aria-busy="true"] { cursor: progress; opacity: .92; }
.skh2-btn[aria-disabled="true"] { opacity: .8; }
.skh2-spinner {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: skh2-spin .8s linear infinite;
}
@keyframes skh2-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .skh2-spinner { animation-duration: 2.4s; }
  .skh2 *, .skh2 *::before, .skh2 *::after { transition: none !important; }
}

/* ---------- küçük etiketler ---------- */
.skh2-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--skh2-ice-soft); color: var(--skh2-navy);
  font-size: 11px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
}

/* Başlık: tablet/masaüstü ölçüsü tüm mobil sayfalarda aynı (önceden yalnız skh2-home.css içindeydi) */
@media (min-width: 768px) {
  .skh2-appbar__inner { padding: 0 32px; }
  .skh2-rozet--header { width: 56px; height: 56px; }
}
