/* kuarz — renkler logonun çivit (indigo) tonlarından, yazı tipi logodaki Plus Jakarta Sans.
   Kiril harfleri Onest, Arap/Fars harfleri Alexandria, Gürcü harfleri Noto Sans Georgian ile gelir (Çince cihazın kendi yazı tipiyle); tarayıcı yalnızca sayfada geçen alfabenin dosyasını indirir. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-017F, U+018F, U+0218-021B, U+0259, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+20BA, U+2122, U+2190, U+2192;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+2116;
}
@font-face {
  font-family: "Alexandria";
  src: url("/assets/fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/assets/fonts/noto-sans-georgian.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+10A0-10FF, U+1C90-1CBF;
}

:root {
  --murekkep: #140F4A;   /* logodaki yazı rengi */
  --civit-900: #2A22B0;
  --civit-700: #3F3BE0;
  --civit-500: #5F63F0;
  --civit-300: #969DFA;
  --civit-200: #C5CAFF;
  --civit-100: #E8EAFF;
  --kagit: #FFFFFF;
  --ikincil: #55517F;    /* gövde dışı metin; beyaz üzerinde 7:1 */
  --cizgi: #DDDFF7;
  --kenar: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--kagit);
  color: var(--murekkep);
  font-family: "Plus Jakarta Sans", "Onest", "Alexandria", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { line-height: 1.9; }

/* Kristalin yüzeylerindeki ton sırası: sayfanın en üstünde ince bir şerit. */
body::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  height: 6px;
  background: linear-gradient(115deg,
    var(--civit-200) 0 16.6%,
    var(--civit-300) 16.6% 33.3%,
    var(--civit-500) 33.3% 50%,
    var(--civit-700) 50% 66.6%,
    var(--civit-900) 66.6% 83.3%,
    var(--murekkep) 83.3% 100%);
}

.kap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--kenar);
}

.gizli {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a { color: var(--civit-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--civit-900); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--civit-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.atla {
  position: absolute;
  inset-inline-start: -999rem;
  top: 0.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--murekkep);
  color: #fff;
  z-index: 20;
}
.atla:focus { inset-inline-start: var(--kenar); color: #fff; }

/* Üst bölüm */
.ust { grid-row: 1; grid-column: 1; position: relative; z-index: 10; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.ust .kap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marka {
  display: inline-block;
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--murekkep);
  text-decoration: none;
}
.marka:hover { color: var(--murekkep); }

/* Dil menüsü — betik olmadan da çalışır (details). */
.dil { position: relative; font-size: 0.9375rem; }
.dil summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--cizgi);
  border-radius: 8px;
  background: var(--kagit);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.dil summary::-webkit-details-marker { display: none; }
.dil summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.2rem;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
html[dir="rtl"] .dil summary::after { transform: rotate(-45deg); }
.dil summary:hover { border-color: var(--civit-300); }
.dil[open] summary { border-color: var(--civit-700); background: var(--civit-100); }
.dil[open] summary::after { transform: rotate(-135deg); margin-top: 0.2rem; }
html[dir="rtl"] .dil[open] summary::after { transform: rotate(135deg); }
.dil ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(8.75rem, 1fr));
  gap: 0.125rem;
  max-height: calc(100vh - 7rem);
  max-height: calc(100svh - 7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--kagit);
  border: 1px solid var(--cizgi);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(20, 15, 74, 0.14);
}
.dil a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 6px;
  color: var(--murekkep);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.dil a:hover { background: var(--civit-100); color: var(--murekkep); }
.dil a[aria-current] { background: var(--civit-100); font-weight: 700; }

/* Ana sayfa */
.ana main {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(2.5rem, 9vh, 6rem) 0;
}
.kristal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero { position: relative; }
.ana h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.25rem, 7.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  word-spacing: 0.06em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
html[dir="rtl"] .ana h1 { letter-spacing: 0; word-spacing: 0; line-height: 1.35; }
html[lang="zh"] .ana h1 { letter-spacing: 0; word-spacing: 0; line-height: 1.2; }
.ana .giris {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ikincil);
}
.ana .iletisim { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; max-width: 34rem; }
.ana .iletisim p { margin: 0 0 0.625rem; font-size: 0.9375rem; font-weight: 600; color: var(--ikincil); }
.dugmeler { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.375rem;
  border: 1px solid var(--murekkep);
  border-radius: 10px;
  background: var(--murekkep);
  color: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.dugme:hover { background: var(--civit-900); border-color: var(--civit-900); color: #fff; }
.dugme:active { transform: translateY(1px); }
.dugme.ikincil { background: var(--kagit); border-color: var(--civit-200); color: var(--murekkep); font-weight: 600; }
.dugme.ikincil:hover { background: var(--civit-100); border-color: var(--civit-300); color: var(--murekkep); }
.dugme.tamam, .dugme.tamam:hover { background: var(--civit-100); border-color: var(--civit-700); color: var(--civit-900); }
.dugme[hidden] { display: none; }

@keyframes gir {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero > * { animation: gir 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.16s; }
.kristal { animation: gir-kristal 1.2s ease-out both; }
@keyframes gir-kristal { from { opacity: 0; } to { opacity: 1; } }

/* Dar ekran: yüzeyler metnin altında, sağ alt köşede toplanır. */
@media (max-width: 49.99rem) {
  .ana main { align-items: start; padding-top: clamp(2.5rem, 8vh, 4rem); padding-bottom: clamp(11rem, 34svh, 18rem); }
  .dil ul { grid-template-columns: repeat(2, minmax(8.75rem, 1fr)); }
  .dugme { flex: 1 1 auto; }
}

/* Metin sayfaları */
.metin main { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.metin main .kap > * { max-width: 44rem; }
.metin h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.metin .tarih { margin: 0 0 2rem; color: var(--ikincil); font-size: 0.9375rem; }
.metin h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.metin h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; font-weight: 700; }
.metin p { margin: 0 0 1rem; }
.metin ul, .metin ol { margin: 0 0 1rem; padding-inline-start: 1.375rem; }
.metin li { margin-bottom: 0.375rem; }
.metin li::marker { color: var(--civit-500); }
.metin .ozet {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--civit-100);
  border-inline-start: 3px solid var(--civit-700);
}
.metin .ozet p:last-child { margin-bottom: 0; }

.tablo-kap { overflow-x: auto; margin: 0 0 1.25rem; }
.metin table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.metin th, .metin td {
  padding: 0.75rem 0;
  padding-inline-end: 0.875rem;
  border-bottom: 1px solid var(--cizgi);
  text-align: start;
  vertical-align: top;
}
.metin thead th { border-bottom: 2px solid var(--murekkep); font-weight: 700; white-space: nowrap; }
.metin table.bilgi { margin: 0 0 1.25rem; font-size: 1rem; }
.metin table.bilgi th { width: 16rem; font-weight: 600; color: var(--ikincil); }
.metin table.bilgi td { overflow-wrap: anywhere; }

/* Doldurulmamış şirket bilgisi: yayın öncesi gözden kaçmasın diye bilerek göze batar. */
mark.eksik { background: #FFE9A8; color: #4A3400; padding: 0.05em 0.3em; border-radius: 2px; font-weight: 600; }

/* Alt bölüm */
.alt { position: relative; border-top: 1px solid var(--cizgi); padding: 1.5rem 0 1.75rem; font-size: 0.9375rem; background: var(--kagit); }
.alt nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.alt nav a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--murekkep); text-decoration: none; font-weight: 500; }
.alt nav a:hover { color: var(--civit-700); text-decoration: underline; }
.alt .not, .alt .telif { margin: 0.75rem 0 0; color: var(--ikincil); }
.alt .not + .telif { margin-top: 0.25rem; }

@media (max-width: 36rem) {
  .metin table.bilgi th, .metin table.bilgi td { display: block; width: auto; padding-inline-end: 0; }
  .metin table.bilgi th { border-bottom: 0; padding-bottom: 0; font-size: 0.875rem; }
  .metin table.bilgi td { padding-top: 0.125rem; }
  .dil ul { grid-template-columns: repeat(2, minmax(7.75rem, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *, .kristal { animation: none; }
  .dugme, .dil summary, .dil summary::after { transition: none; }
}

@media print {
  body::before, .alt nav, .atla, .dil, .kristal { display: none; }
  .metin main .kap > * { max-width: none; }
}
