/* Retrace sitesi (retracebirth.com). Kozmik Atlas stillerinden bağımsız, tek dosya. */
:root {
  color-scheme: dark;
  --ground: #05081a;
  --panel: #0c1330;
  --line: #1c2750;
  --ink: #eef2fb;
  --soft: #aab5d3;
  --faint: #7482a8;
  --accent: #7aa2ff;
  --accent-strong: #1f57e0;
  --measure: 66ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(31, 87, 224, .38), transparent 60%),
    var(--ground);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-inline: 20px;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Dil: yalnız etkin dilin içeriği görünür */
html[data-active-lang="tr"] [data-lang="en"],
html[data-active-lang="en"] [data-lang="tr"] { display: none !important; }

.wrap { max-width: 760px; margin: 0 auto; }
.top { display: flex; align-items: center; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; font-size: 21px; font-weight: 600; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 18px; margin-inline-start: auto; }
.top nav a { color: var(--soft); text-decoration: none; font-size: 15px; }
.top nav a[aria-current="page"] { color: var(--ink); }
.lang { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }

main { padding-block: 24px 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--faint); margin: 0 0 10px; }
h1 { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; font-weight: 600;
  font-size: clamp(34px, 6vw, 48px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }
h2 { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; font-weight: 600; font-size: 23px;
  line-height: 1.25; margin: 40px 0 10px; text-wrap: balance; }
p, li { max-width: var(--measure); }
.lede { font-size: 19px; color: var(--soft); }
.meta { color: var(--faint); font-size: 14px; }
ul.plain { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
strong { color: var(--ink); }

/* Ana sayfa */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-block: 40px 24px; }
.hero img { width: 132px; height: 132px; filter: drop-shadow(0 18px 40px rgba(31, 87, 224, .45)); }
.hero .lede { margin-inline: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* SSS */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-block: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: inline-end; color: var(--faint); font-weight: 400; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 20px 14px; color: var(--soft); }
details > div p { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--faint); font-size: 14px; }
footer p { margin: 4px 0; max-width: none; }

@media (max-width: 520px) {
  body { font-size: 16px; padding-inline: 16px; }
  .top nav { margin-inline-start: 0; width: 100%; order: 3; }
}

/* Sinematik uzay arka planı (space.js) */
canvas.space { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: block; }
body { background: #03050f; }
.card, details { background: rgba(12, 19, 48, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Dil seçici ve çeviri notu */
select.lang { appearance: none; -webkit-appearance: none; max-width: 210px; padding-inline-end: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] select.lang { background-position: 16px 55%, 11px 55%; padding-inline-end: 14px; padding-inline-start: 30px; }
.meta.note { border-inline-start: 2px solid var(--line); padding-inline-start: 12px; }

/* Alt bilgide taranabilir dil bağlantıları */
footer nav.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-size: 13px; }
footer nav.langs a { color: var(--faint); text-decoration: none; }
footer nav.langs a:hover, footer nav.langs a:focus-visible { color: var(--soft); text-decoration: underline; }

/* Tanıtım videosu (tıklayınca yüklenir) */
section.video { margin: 36px auto 8px; max-width: 680px; text-align: center; }
section.video h2 { margin: 0 0 14px; }
button.yt, iframe.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; }
button.yt { position: relative; padding: 0; cursor: pointer; }
button.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
button.yt:hover img, button.yt:focus-visible img { opacity: 1; }
button.yt .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(31, 87, 224, .9); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
button.yt .play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
[dir="rtl"] button.yt .play::after { left: 29px; }
.hero .store { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; border-radius: 10px; }
.hero .store img { height: 54px; width: auto; filter: none; }
.hero .store:focus-visible { outline: 2px solid var(--soft); outline-offset: 4px; }
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 4px; background: var(--panel); border-bottom: 1px solid var(--line); }
.appbar[hidden] { display: none; }
.appbar-close { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--faint); font-size: 26px; line-height: 1; cursor: pointer; }
.appbar-close:focus-visible, .appbar-get:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.appbar-icon { flex: none; width: 40px; height: 40px; border-radius: 9px; }
.appbar-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-get { flex: none; display: inline-flex; align-items: center; min-height: 44px; }
.appbar-get img { height: 40px; width: auto; }
