/* atyarisi.site — ortak tasarım sistemi
   Fikir: hipodromun kendisi. Sakin "pist" zemini, çim yeşili mürekkep,
   tek cesur öğe olarak tabela paneli (koyu yeşil zemin, pirinç rakamlar).
   Yazı: Atkinson Hyperlegible Next — okunaklılık için tasarlanmış tek aile. */

/* Yazı tipi: sitenin kendi sunucusundan (Google Fonts yok) */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 400; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 400; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 600; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 600; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 700; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 700; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 800; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-display: swap; font-weight: 800; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --zemin: #F3F5F2;
  --yuzey: #FFFFFF;
  --yuzey-2: #E9EDE8;
  --cizgi: #D5DCD5;
  --murekkep: #18231D;
  --murekkep-2: #445249;
  --soluk: #66736B;
  --cim: #1E5B43;
  --cim-koyu: #164532;
  --cim-acik: #E1EDE6;
  --pirinc: #9A6F1E;
  --pirinc-acik: #F5ECD9;
  --tabela: #11291F;
  --tabela-yazi: #F1E3B5;
  --tabela-soluk: #9DB5A8;
  --olumlu: #2C7A4B;
  --olumsuz: #B0402C;
  --odak: #2F6FD6;

  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-kucuk: 6px;
  --r: 10px;
  --r-buyuk: 16px;
  --genislik: 1120px;
  --metin: 66ch;
  color-scheme: light;
}

:root[data-tema="koyu"] {
  --zemin: #0E1612;
  --yuzey: #15201A;
  --yuzey-2: #1C2922;
  --cizgi: #2A3A31;
  --murekkep: #E5EBE6;
  --murekkep-2: #B4C1B8;
  --soluk: #8C9A91;
  --cim: #62B38B;
  --cim-koyu: #7CC6A1;
  --cim-acik: #1C3329;
  --pirinc: #D8AE57;
  --pirinc-acik: #2E2716;
  --tabela: #0A1A13;
  --tabela-yazi: #F1E3B5;
  --tabela-soluk: #8FA89A;
  --olumlu: #6CC38F;
  --olumsuz: #E07A64;
  --odak: #7FA8FF;
  color-scheme: dark;
}

/* Varsayılan tema açık; koyu (yeşil) tema yalnızca ziyaretçi seçerse açılır. */

/* ── Temel ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--zemin);
  color: var(--murekkep);
  font-family: var(--font);
  font-size: 1.125rem;          /* 18px */
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cim); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cim-koyu); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--odak); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--cim-acik); color: var(--murekkep); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--metin); }
small, .kucuk { font-size: 0.875rem; }
.soluk { color: var(--soluk); }
.ikinci { color: var(--murekkep-2); }
.sayi { font-variant-numeric: tabular-nums; }

.kap { width: min(100% - 2.5rem, var(--genislik)); margin-inline: auto; }
.bolum { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.bolum + .bolum { border-top: 1px solid var(--cizgi); }
.bolum-bas { margin-bottom: 1.5rem; }
.bolum-bas p { color: var(--murekkep-2); margin: 0; }

.gizli { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atla { position: absolute; left: 1rem; top: -3rem; background: var(--cim); color: #fff; padding: .5rem 1rem; border-radius: var(--r-kucuk); z-index: 100; }
.atla:focus { top: 1rem; }
[hidden] { display: none !important; }

/* ── Üst bar ───────────────────────────────────────────── */
.ust {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--zemin) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--cizgi);
}
.ust .kap { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.logo {
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--murekkep); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--cim); }
.logo:hover { color: var(--murekkep); text-decoration: none; }
.menu { display: flex; gap: 0.25rem; margin-left: auto; align-items: center; }
.menu a {
  color: var(--murekkep-2); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.45rem 0.7rem; border-radius: var(--r-kucuk);
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--murekkep); background: var(--yuzey-2); }
.ust-eylem { display: flex; gap: 0.5rem; align-items: center; }
.tema-dugme {
  border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--murekkep-2);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.tema-dugme svg { width: 18px; height: 18px; }
.menu-ac { display: none; }

@media (max-width: 860px) {
  .menu-ac {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: var(--r-kucuk);
    border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--murekkep); cursor: pointer;
  }
  .menu {
    display: none; position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--zemin); border-bottom: 1px solid var(--cizgi); padding: 0.75rem 1.25rem 1.25rem; gap: 0.15rem;
  }
  .menu.acik { display: flex; }
  .menu a { padding: 0.75rem 0.5rem; font-size: 1.05rem; }
}

/* ── Düğmeler ──────────────────────────────────────────── */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.8rem 1.25rem; min-height: 46px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--cim); color: #fff;
}
.dugme:hover { background: var(--cim-koyu); color: #fff; text-decoration: none; }
:root[data-tema="koyu"] .dugme { color: #0E1612; }
.dugme.ikincil { background: var(--yuzey); color: var(--murekkep); border-color: var(--cizgi); }
.dugme.ikincil:hover { background: var(--yuzey-2); color: var(--murekkep); }
.dugme.sade { background: transparent; color: var(--cim); padding-inline: 0.5rem; }
.dugme.sade:hover { background: var(--cim-acik); color: var(--cim-koyu); }
.dugme.kucuk { min-height: 38px; padding: 0.55rem 0.9rem; font-size: 0.95rem; }
.dugme[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Panel / kutu ──────────────────────────────────────── */
.panel {
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r-buyuk);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}
.panel.duz { border-radius: var(--r); }
.not {
  border-left: 4px solid var(--pirinc); background: var(--pirinc-acik);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--r) var(--r) 0; color: var(--murekkep);
}
.not p { margin: 0; }
.uyari-metni { font-size: 0.9rem; color: var(--soluk); }

/* ── At numarası çipi (eyer örtüsü) ───────────────────── */
.atno {
  display: inline-grid; place-items: center; flex: none;
  min-width: 2.1rem; height: 2.1rem; padding: 0 0.35rem;
  border-radius: var(--r-kucuk); border: 1.5px solid var(--murekkep);
  background: var(--yuzey); color: var(--murekkep);
  font-weight: 800; font-size: 1.05rem; line-height: 1;
}
.atno.fav { background: var(--murekkep); color: var(--yuzey); }

/* ── Sekmeler / seçiciler ─────────────────────────────── */
.secici { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.secici button {
  font: inherit; font-size: 0.98rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--murekkep-2);
  padding: 0.55rem 0.95rem; border-radius: 999px; min-height: 42px;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.secici button:hover { border-color: var(--cim); color: var(--murekkep); }
.secici button[aria-pressed="true"], .secici button[aria-selected="true"] {
  background: var(--cim); border-color: var(--cim); color: #fff;
}
:root[data-tema="koyu"] .secici button[aria-pressed="true"],
:root[data-tema="koyu"] .secici button[aria-selected="true"] { color: #0E1612; }
.secici .saat { font-weight: 400; opacity: .85; }

/* ── Tabela (tek cesur öğe) ───────────────────────────── */
.tabela {
  background: var(--tabela); color: var(--tabela-yazi);
  border-radius: var(--r-buyuk); padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(241, 227, 181, .08);
}
.tabela h2, .tabela h3 { color: var(--tabela-yazi); }
.tabela .etiket { color: var(--tabela-soluk); font-size: 0.95rem; }
.tabela .rakam {
  font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.tabela .satir { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid rgba(241, 227, 181, .12); }
.tabela .satir:first-of-type { border-top: 0; }
.tabela .satir b { font-weight: 700; }
.tabela a { color: var(--tabela-yazi); }

/* ── Tablolar ──────────────────────────────────────────── */
.tablo { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tablo th { text-align: left; font-weight: 700; color: var(--murekkep-2); padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--cizgi); }
.tablo td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--cizgi); vertical-align: top; }
.tablo td.sag, .tablo th.sag { text-align: right; }

/* ── Form ──────────────────────────────────────────────── */
label { font-weight: 600; font-size: 0.98rem; display: block; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  font: inherit; font-size: 1rem; width: 100%; color: var(--murekkep);
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 0.75rem 0.9rem; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--cim); outline: none; box-shadow: 0 0 0 3px var(--cim-acik); }

/* ── İçerik sayfaları (rehber, yasal) ─────────────────── */
.yazi { max-width: 72ch; }
.yazi h2 { margin-top: 2.2rem; }
.yazi h3 { margin-top: 1.6rem; }
.yazi ul, .yazi ol { padding-left: 1.3rem; max-width: var(--metin); }
.yazi li { margin-bottom: 0.4rem; }
.ekmek { font-size: 0.95rem; color: var(--soluk); margin-bottom: 1rem; }
.ekmek a { color: var(--soluk); }
.ekmek ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ekmek li + li::before { content: "/"; margin-right: 0.4rem; color: var(--cizgi); }
.sss details { border-top: 1px solid var(--cizgi); padding: 0.9rem 0; }
.sss details:last-child { border-bottom: 1px solid var(--cizgi); }
.sss summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.sss summary::-webkit-details-marker { display: none; }
.sss summary::after { content: "+"; font-weight: 400; color: var(--soluk); font-size: 1.4rem; line-height: 1; }
.sss details[open] summary::after { content: "−"; }
.sss details p { margin: 0.6rem 0 0; color: var(--murekkep-2); }

/* ── Alt bilgi ─────────────────────────────────────────── */
.alt { border-top: 1px solid var(--cizgi); padding-block: 2.5rem 2rem; margin-top: 2rem; font-size: 0.98rem; }
.alt-izgara { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.alt h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.alt ul { list-style: none; margin: 0; padding: 0; }
.alt li { margin-bottom: 0.35rem; }
.alt a { color: var(--murekkep-2); text-decoration: none; }
.alt a:hover { color: var(--cim); text-decoration: underline; }
.alt-son { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--cizgi); color: var(--soluk); font-size: 0.9rem; }
.alt-son p { max-width: none; }
@media (max-width: 760px) { .alt-izgara { grid-template-columns: 1fr 1fr; } .alt-izgara > :first-child { grid-column: 1 / -1; } }

/* ── WhatsApp ──────────────────────────────────────────── */
.wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #1F8F4E; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.wa svg { width: 28px; height: 28px; }
.wa:hover { background: #18773F; color: #fff; }

/* ── Çerez onayı ───────────────────────────────────────── */
.cerez {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60; max-width: 30rem;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r-buyuk);
  padding: 1rem 1.1rem; box-shadow: 0 8px 30px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: .75rem;
}
.cerez p { margin: 0; font-size: .98rem; }
.cerez div { display: flex; gap: .5rem; }
@media (max-width: 600px) { .cerez { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print { .ust, .alt, .wa { display: none; } body { background: #fff; } }
