/* Ortak tema: açık / koyu / otomatik. Yazı tipleri yerel. */
@font-face { font-family: Lexend; font-weight: 400; font-display: swap; src: url(../fonts/lexend-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lexend; font-weight: 700; font-display: swap; src: url(../fonts/lexend-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lexend; font-weight: 400; font-display: swap; src: url(../fonts/lexend-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Lexend; font-weight: 700; font-display: swap; src: url(../fonts/lexend-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Satranc Simgeleri'; font-display: swap; src: url(../fonts/noto-sans-symbols-2-symbols-400-normal.woff2) format('woff2'); }

:root {
  --zemin: #f6f1e7; --yuzey: #ffffff; --yuzey2: #ece5d6; --metin: #1b1a17; --soluk: #55524a;
  --cizgi: #b9b09c; --vurgu: #0b6b63; --vurgu-metin: #ffffff; --altin: #b86e00;
  --dogru: #0b7a3b; --yanlis: #b3261e; --kare-a: #ecd9b0; --kare-k: #a9763f;
  --golge: 0 2px 0 rgba(0,0,0,.15);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zemin: #12151c; --yuzey: #1c212b; --yuzey2: #262d3a; --metin: #f5f2ea; --soluk: #c2bfb4;
    --cizgi: #5a6275; --vurgu: #4fd1c5; --vurgu-metin: #07211e; --altin: #ffc247;
    --dogru: #5be08c; --yanlis: #ff8a80; --kare-a: #e9d8ae; --kare-k: #8a5d2e; --golge: 0 2px 0 rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --zemin: #12151c; --yuzey: #1c212b; --yuzey2: #262d3a; --metin: #f5f2ea; --soluk: #c2bfb4;
  --cizgi: #5a6275; --vurgu: #4fd1c5; --vurgu-metin: #07211e; --altin: #ffc247;
  --dogru: #5be08c; --yanlis: #ff8a80; --kare-a: #e9d8ae; --kare-k: #8a5d2e; --golge: 0 2px 0 rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; background: var(--zemin); color: var(--metin); font-family: Lexend, system-ui, 'Segoe UI', sans-serif; line-height: 1.45; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 4px solid var(--altin); outline-offset: 2px; border-radius: 4px; }
.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.dugme { min-height: 48px; padding: .55em 1.1em; border: 2px solid var(--metin); border-radius: 10px; background: var(--yuzey); box-shadow: var(--golge); font-weight: 700; }
.dugme:hover:not(:disabled) { background: var(--yuzey2); }
.dugme:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.dugme.ana { background: var(--vurgu); color: var(--vurgu-metin); border-color: var(--vurgu); }
.dugme.tehlike { border-color: var(--yanlis); color: var(--yanlis); }
.alan { width: 100%; min-height: 52px; padding: .6em .8em; border: 2px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); }
.alan:focus { border-color: var(--vurgu); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
}

/* Ekip avatarı (SVG çizim) */
.avatar { display: inline-block; border-radius: 50%; flex: none; vertical-align: middle; line-height: 0; overflow: hidden; user-select: none; }
.avatar svg { display: block; width: 100%; height: 100%; }

/* Düzeltmeler: ana düğme üzerine gelince okunur kalsın; bağlantı biçimli düğmeler */
.dugme.ana:hover:not(:disabled) { background: var(--vurgu); filter: brightness(1.12); }
.dugme.tehlike:hover:not(:disabled) { background: var(--yuzey2); }
a.dugme { color: inherit; text-decoration: none; }
a.dugme.ana { color: var(--vurgu-metin); }

/* Bağlantılar: tarayıcının varsayılan mavisi yerine tema rengi */
a { color: var(--vurgu); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--metin); }
