/* RoboKonya tanıtım sitesi — ortak stil.
   Renk ve tipografi, daha önce onaylanan tasarım taslağından alındı. */

:root {
  --ink: #16223a;
  --seljuk: #0e7c86;
  --seljuk-2: #14a3ae;
  --ember: #c8712c;
  --ember-2: #e59a52;
  --linen: #f6f1e6;
  --paper: #fffbf3;
  --slate: #5c6579;
  --line: rgba(22, 34, 58, .12);
  --lattice: rgba(22, 34, 58, .07);

  --bg: var(--linen);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--slate);
  --accent: var(--seljuk);
  --accent-strong: #0a5c64;
  --accent-2: var(--ember);
  --on-accent: #fffbf3;
  --band-a: #123f45;
  --band-b: var(--ink);
  --header-bg: rgba(246, 241, 230, .92);

  --govde: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --baslik: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1524;
    --surface: #121f34;
    --text: #f2ece0;
    --text-soft: #a9b2c4;
    --line: rgba(242, 236, 224, .14);
    --lattice: rgba(242, 236, 224, .08);
    --accent: #1fb0bb;
    --accent-strong: #56cdd6;
    --accent-2: #f0a868;
    --on-accent: #08131f;
    --band-a: #0b1524;
    --band-b: #123f45;
    --header-bg: rgba(11, 21, 36, .92);
  }
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--govde);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; }

.kap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.display {
  font-family: var(--baslik);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

h1.display { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2.display { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-family: var(--baslik); font-weight: 600; font-size: 1.15rem; margin: 0; }

p { margin: 0; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.etiket {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Üst bar ---------- */
.ustbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.ustbar-ic {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  font-family: var(--baslik);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-right: auto;
}

.logo span { color: var(--accent); }

.menu {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li { position: relative; }

.menu a, .menu .acilir-baslik {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: color .15s, background .15s;
}

.menu a:hover, .menu .acilir-baslik:hover { color: var(--text); background: var(--lattice); }
.menu a.aktif { color: var(--accent); }

.ok { width: 9px; height: 9px; opacity: .6; transition: transform .18s; }
.menu > li:hover .ok, .menu > li:focus-within .ok { transform: rotate(180deg); }

/* Açılır menü — hem fare hem klavye ile açılır */
.acilir-kutu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(22, 34, 58, .14);
  padding: .4rem;
  list-style: none;
  margin: 0;
  display: none;
}

.menu > li:hover .acilir-kutu,
.menu > li:focus-within .acilir-kutu { display: block; }

.acilir-kutu a {
  display: flex;
  flex-direction: column;
  /* ".menu a" kuralındaki align-items:center, sütun yönünde yazıyı ortalıyordu. */
  align-items: flex-start;
  gap: .1rem;
  padding: .5rem .65rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
}

.acilir-kutu a small {
  font-weight: 500;
  font-size: .78rem;
  color: var(--text-soft);
}

.dugme {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .93rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  transition: background .15s, transform .15s;
}

.dugme:hover { background: var(--accent-strong); transform: translateY(-1px); }

.dugme.ikincil {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.dugme.ikincil:hover { background: var(--lattice); }

.dugme.ember { background: var(--accent-2); color: #2a1708; }

/* Menü içindeki buton: ".menu a" seçicisi ".dugme" renginden daha güçlü olduğu için
   burada açıkça yeniden tanımlanır, aksi halde yazı okunmuyor. */
.menu a.dugme { color: var(--on-accent); background: var(--accent); }
.menu a.dugme:hover { color: var(--on-accent); background: var(--accent-strong); }
.dugme.ember:hover { background: var(--ember-2); }

/* Mobil menü — CSS'le açılıp kapanır */
.menu-anahtar { display: none; }
.menu-dugme {
  display: none;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 940px) {
  .menu-dugme { display: inline-block; }
  .menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1rem;
  }
  .menu-anahtar:checked ~ .menu { display: flex; }
  .acilir-kutu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: .8rem;
  }
  .ustbar-ic { position: relative; flex-wrap: wrap; }
}

/* ---------- Bölümler ---------- */
.bolum { padding: clamp(3rem, 7vw, 5rem) 0; }
.bolum + .bolum { border-top: 1px solid var(--lattice); }

.bolum-bas {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 2rem;
  max-width: 44rem;
}

.bolum-bas p { color: var(--text-soft); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(20, 163, 174, .18), transparent 55%),
    linear-gradient(160deg, var(--band-a), var(--band-b));
  color: #f2ece0;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.hero .etiket { color: var(--ember-2); }
.hero p.giris { color: rgba(242, 236, 224, .82); max-width: 40rem; margin-top: 1rem; }

.hero-eylem { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .dugme.ikincil { color: #f2ece0; border-color: rgba(242, 236, 224, .3); }
.hero .dugme.ikincil:hover { background: rgba(242, 236, 224, .1); }

.kunye {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: rgba(242, 236, 224, .18);
  border: 1px solid rgba(242, 236, 224, .18);
  border-radius: 14px;
  overflow: hidden;
}

.kunye div {
  background: linear-gradient(160deg, var(--band-a), var(--band-b));
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.kunye dt, .kunye .ust {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 236, 224, .6);
  font-weight: 700;
}

.kunye .deger { font-size: 1.05rem; font-weight: 700; }

/* ---------- Kartlar ---------- */
.izgara {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.kart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .18s, box-shadow .18s;
}

.kart:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 34, 58, .1); }
.kart p { color: var(--text-soft); font-size: .95rem; }

.kart .rozet {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: .2rem .55rem;
  border-radius: 999px;
}

.kart .bag {
  margin-top: auto;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
}

/* ---------- Sayı şeridi ---------- */
.sayilar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
}

.sayi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
}

.sayi b {
  display: block;
  font-family: var(--baslik);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.sayi span { font-size: .85rem; color: var(--text-soft); }

/* ---------- Duyuru ---------- */
.duyuru {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--lattice);
  align-items: start;
}

.duyuru:last-child { border-bottom: none; }

.tarih {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem;
  text-align: center;
  line-height: 1.15;
}

.tarih b { display: block; font-size: 1.25rem; font-family: var(--baslik); }
.tarih span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); }
.duyuru p { color: var(--text-soft); font-size: .95rem; margin-top: .25rem; }

/* ---------- Tablo ---------- */
.tablo-sar { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th {
  text-align: left;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: .85rem 1rem; border-bottom: 1px solid var(--lattice); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ---------- SSS ---------- */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1.15rem;
}

details + details { margin-top: .7rem; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-soft); margin-top: .6rem; font-size: .95rem; }

/* ---------- Çağrı şeridi ---------- */
.cagri {
  background: linear-gradient(150deg, var(--band-a), var(--band-b));
  color: #f2ece0;
  border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.cagri p { color: rgba(242, 236, 224, .8); margin-top: .5rem; max-width: 34rem; }

/* ---------- Alt bilgi ---------- */
.altbilgi {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.altbilgi-izgara {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.altbilgi h4 {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 .7rem;
}

.altbilgi ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.altbilgi a { font-size: .92rem; color: var(--text-soft); }
.altbilgi a:hover { color: var(--accent); }

.telif {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--lattice);
  font-size: .82rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
}

.ic-sayfa-bas {
  background: linear-gradient(150deg, var(--band-a), var(--band-b));
  color: #f2ece0;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.ic-sayfa-bas p { color: rgba(242, 236, 224, .78); max-width: 40rem; margin-top: .75rem; }
.ic-sayfa-bas .etiket { color: var(--ember-2); }

.yazi { max-width: 42rem; display: flex; flex-direction: column; gap: 1rem; }
.yazi p { color: var(--text-soft); }
.yazi ul { color: var(--text-soft); padding-left: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
