/* ==========================================================================
   UKADEMİ — ORTAK SİTE KABUĞU (v2): kurumsal/yasal/destek sayfalarının üst menüsü, alt bilgisi ve hero'ları.
   Ana sayfa (anasayfa-v2.css) ile AYNI marka dili: zümrüt + amber, koyu aurora hero.
   ÖNEMLİ: partials/head global style.css (5000+ satır) yüklüyor → burada tüm sınıflar `s2-` önekli, çakışma olmasın.
   Kurallar: `transition: all` yok; breakpoint 960/640; koyu mod html.dark-mode ile.
   ========================================================================== */

:root {
  --s2-bg: #ffffff;
  --s2-bg-alt: #f6f8fc;
  --s2-ink: #0f172a;
  --s2-ink-2: #475569;
  --s2-ink-3: #64748b;
  --s2-line: #e2e8f0;
  --s2-line-strong: #cbd5e1;
  --s2-brand: #047857;
  --s2-brand-hover: #065f46;
  --s2-brand-soft: #ecfdf5;
  --s2-hero: #05201a;
  --s2-grad: linear-gradient(120deg, #059669 0%, #0d9488 55%, #f59e0b 100%);
  --s2-grad-text: linear-gradient(100deg, #6ee7b7 0%, #5eead4 50%, #fcd34d 100%);
  --s2-header-h: 76px;
  --s2-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html.dark-mode {
  --s2-bg: #05201a;
  --s2-bg-alt: #0a2a22;
  --s2-ink: #eef5f1;
  --s2-ink-2: #b4c3bb;
  --s2-ink-3: #8fa198;
  --s2-line: #16463a;
  --s2-line-strong: #1f5a4b;
  --s2-brand: #047857;
  --s2-brand-hover: #059669;
  --s2-brand-soft: rgba(5, 150, 105, .16);
}

/* Eski sabit başlık için bırakılan üst boşluk artık gereksiz (yeni başlık akışta, yapışkan) */
html body:has(.s2-header) { padding-top: 0 !important; }

/* ── Koyu mod: partials/head'deki genel koyu kural (slate #0f172a) zümrüt temayı eziyordu; yeni kabuklu sayfalarda geri alınır ── */
html.dark-mode:has(.s2-header), html.dark-mode body:has(.s2-header), html[data-theme="dark"]:has(.s2-header), html[data-theme="dark"] body:has(.s2-header) { background-color: var(--s2-bg) !important; }
/* style.css koyu modda --white/--border/--bg gibi genel değişkenleri slate'e çeviriyor; kartlar bunları kullanıyor → zümrüt tonlara yönlendirilir */
html.dark-mode:has(.s2-header), html.dark-mode body:has(.s2-header) {
  --white: var(--s2-bg-alt); --border: var(--s2-line); --gray-light: var(--s2-line); --bg-color: var(--s2-bg);
  --bg: var(--s2-bg) !important; --surface: var(--s2-bg-alt) !important; --surface2: var(--s2-bg) !important; --page-bg: var(--s2-bg) !important;
  --body-bg: var(--s2-bg) !important; --light-bg: var(--s2-bg) !important; --card-surface: var(--s2-bg-alt) !important; --section-bg: var(--s2-bg) !important;
}
html.dark-mode body:has(.s2-header) .legal-card { background: var(--s2-bg-alt) !important; border-color: var(--s2-line) !important; }

/* ── Butonlar ──────────────────────────────────────────────────────────── */
.s2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 14.5px/1 var(--s2-font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.s2-btn-primary { background: var(--s2-brand); color: #fff; }
.s2-btn-primary:hover { background: var(--s2-brand-hover); color: #fff; }
.s2-btn-ghost { background: transparent; color: var(--s2-ink); border-color: var(--s2-line-strong); }
.s2-btn-ghost:hover { border-color: var(--s2-brand); color: var(--s2-brand); }
.s2-btn-block { width: 100%; }
.s2-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--s2-line); background: transparent; color: var(--s2-ink-2); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.s2-icon-btn:hover { background: var(--s2-bg-alt); color: var(--s2-ink); }
.s2-theme .fa-sun { display: none; }
html.dark-mode .s2-theme .fa-moon { display: none; }
html.dark-mode .s2-theme .fa-sun { display: inline-block; }
.s2-btn:focus-visible, .s2-icon-btn:focus-visible, .s2-header a:focus-visible, .s2-footer a:focus-visible { outline: 2px solid var(--s2-brand); outline-offset: 2px; }

/* ── Üst menü ──────────────────────────────────────────────────────────── */
.s2-header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--s2-bg) 88%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--s2-line); font-family: var(--s2-font); }
.s2-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.s2-header-row { height: var(--s2-header-h); display: flex; align-items: center; gap: 24px; }
.s2-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--s2-ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.s2-brand img { width: 48px; height: 48px; object-fit: contain; }
.s2-logo-dark { display: none; }
html.dark-mode .s2-logo-light { display: none; }
html.dark-mode .s2-logo-dark { display: inline-block; }
.s2-nav { display: flex; gap: 4px; margin-left: 12px; }
.s2-nav a { color: var(--s2-ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .15s ease, background-color .15s ease; }
.s2-nav a:hover { color: var(--s2-ink); background: var(--s2-bg-alt); }
.s2-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.s2-menu-btn { display: none; }

.s2-mobile { position: fixed; inset: 0; z-index: 1100; background: var(--s2-bg); padding: 0 20px 24px; display: flex; flex-direction: column; overflow-y: auto; font-family: var(--s2-font); }
.s2-mobile[hidden] { display: none; }
.s2-mobile-head { height: var(--s2-header-h); display: flex; align-items: center; justify-content: space-between; }
.s2-mobile-tools { display: flex; gap: 8px; }
.s2-mobile nav { display: flex; flex-direction: column; margin-top: 8px; }
.s2-mobile nav a { padding: 16px 4px; border-bottom: 1px solid var(--s2-line); color: var(--s2-ink); text-decoration: none; font-size: 18px; font-weight: 600; }
.s2-mobile-actions { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }

/* ── Alt bilgi (iyzico beyaz logosu için iki temada da koyu) ───────────── */
.s2-footer { background: var(--s2-hero); color: #cfe3da; padding: 56px 0 28px; font-family: var(--s2-font); border-top: 1px solid rgba(255,255,255,.08); }
.s2-footer-slogan { margin: 0 0 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); text-align: center; font-size: clamp(1.6rem, 4.8vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.s2-footer-slogan span { background: var(--s2-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; white-space: nowrap; }
.s2-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.s2-footer-brand .s2-brand { color: #fff; font-size: 28px; gap: 14px; }
.s2-footer-brand .s2-brand img { width: 72px; height: 72px; }
.s2-footer-brand p { margin: 16px 0 0; color: #9db8ac; font-size: 14px; max-width: 34ch; line-height: 1.6; }
.s2-footer-col h4 { margin: 0 0 10px; color: #fff; font-size: 14px; font-weight: 700; }
.s2-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.s2-footer-col a { color: #9db8ac; text-decoration: none; font-size: 14px; padding: 4px 0; display: inline-block; transition: color .15s ease; }
.s2-footer-col a:hover { color: #6ee7b7; text-decoration: underline; }
.s2-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 13px; color: #8fa198; }
.s2-footer-bottom p { margin: 0; }
.s2-footer-pay { margin-top: 18px; display: flex; justify-content: center; }
.s2-footer-pay img { height: 45px; opacity: .95; }

/* ── Sayfa hero'ları: legal / sss / iletişim / yardım — tek tip koyu aurora ────────────────────────────
   Sayfaların kendi <style>'ı gövdede, bu dosyadan SONRA geliyor; `html body` ile özgüllük yükseltilir. */
html body :is(.legal-hero, .sss-hero, .ct-hero, .ym-hero) {
  background: radial-gradient(ellipse at 50% -10%, #0d5a45 0%, #06302a 45%, #05201a 100%);
  color: #e8eefc; position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08);
}
html body :is(.legal-hero, .sss-hero, .ct-hero, .ym-hero)::before {
  content: ''; position: absolute; inset: 0; top: 0; left: 0; width: auto; height: auto; transform: none; filter: none; pointer-events: none;
  background: radial-gradient(circle at 22% 40%, rgba(5,150,105,.34), transparent 55%), radial-gradient(circle at 80% 25%, rgba(13,148,136,.28), transparent 50%), radial-gradient(circle at 60% 120%, rgba(245,158,11,.2), transparent 45%);
}
html body :is(.legal-hero-badge, .sss-hero-badge, .ct-hero-badge, .ym-hero-badge) {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #a7f3d0; backdrop-filter: blur(8px);
}
html body :is(.legal-hero, .sss-hero, .ct-hero, .ym-hero) h1 {
  background: var(--s2-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
html body :is(.legal-hero, .sss-hero, .ct-hero, .ym-hero) h1 i { -webkit-text-fill-color: #6ee7b7; color: #6ee7b7; }
html body :is(.legal-hero, .sss-hero, .ct-hero, .ym-hero) p { color: #b7d3c8; }

/* ── Duyarlı ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .s2-nav { display: none; }
  .s2-menu-btn { display: inline-grid; }
  .s2-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .s2-wrap { padding: 0 16px; }
  .s2-hide-sm { display: none; }
  .s2-actions .s2-theme { display: none; }
  .s2-header-row { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .s2-btn, .s2-icon-btn, .s2-nav a, .s2-footer-col a { transition: none; } }
