/* NirOrkestra web arayüzü. Renkler app/src/tema.ts ile aynı; koyu varsayılan, açık tercih edilirse açık. */
@font-face { font-family: "Neue Montreal"; font-weight: 300; src: url("/fonts/NeueMontreal-Light.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Neue Montreal"; font-weight: 400; src: url("/fonts/NeueMontreal-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Neue Montreal"; font-weight: 500; src: url("/fonts/NeueMontreal-Medium.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Neue Montreal"; font-weight: 700; src: url("/fonts/NeueMontreal-Bold.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Geist Mono"; font-weight: 400; src: url("/fonts/GeistMono-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: dark;
  --zemin: #05070D; --kart: #101219; --kenar: #23262F; --yazi: #F5F5F7; --sessiz: #A1A1AA;
  --vurgu: #CDB4EE; --vurgu-yazi: #25103A; --canli: #3DD6A8; --sozlesme: #8FB0FF; --engelli: #FF8A80; --denenmedi: #A1A1AA; --uyari: #F0B861;
  --govde: "Neue Montreal", -apple-system, "Helvetica Neue", Arial, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --zemin: #F5F5F7; --kart: #FFFFFF; --kenar: #E1E1E6; --yazi: #1D1D1F; --sessiz: #6E6E73;
    --vurgu: #522575; --vurgu-yazi: #F5F5F7; --canli: #00805F; --sozlesme: #2F5BD8; --engelli: #B4372F; --denenmedi: #5F646C; --uyari: #96600F;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zemin); color: var(--yazi); font: 400 16px/1.5 var(--govde); min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 500; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 500; }
a { color: var(--vurgu); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }
.gizli { display: none !important; }

/* Tek sayfa: giriş ve hata ekranları */
.tek-sayfa { display: grid; place-items: center; padding: 24px; }
.durum-sayfa, .giris { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.logo { display: block; height: 60px; width: auto; margin-bottom: 8px; }
.giris p, .durum-sayfa p { color: var(--sessiz); }
.giris .nirpax-dugme { margin-top: 12px; }
.eylemler { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; width: 100%; }

/* Düğmeler */
.dugme { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--kenar); background: transparent; color: var(--yazi); font-weight: 500; text-decoration: none; cursor: pointer; }
.dugme.birincil { background: var(--vurgu); color: var(--vurgu-yazi); border-color: var(--vurgu); }
.dugme.ikincil:hover { border-color: var(--sessiz); }
.dugme[disabled] { opacity: .6; cursor: default; }
/* Nirpax giriş düğmesi: kurallar/nirpax-giris-dugmesi.md; tema değişmez */
.nirpax-dugme { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 20px; border: 0; border-radius: 12px; background: #00DDA5; color: #04221B; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.nirpax-dugme:hover { background: #00B894; }
.nirpax-dugme img { width: 20px; height: auto; display: block; }
.nirpax-dugme[aria-busy="true"] { cursor: progress; }
.donen { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: don .8s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .donen { animation-duration: 2.4s; } }

/* Uygulama iskeleti */
.ust { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--kenar); }
.ust .logo { height: 32px; margin: 0; }
.ust-sag { display: flex; align-items: center; gap: 16px; color: var(--sessiz); font-size: 14px; }
.sekmeler { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--kenar); overflow-x: auto; }
.sekme { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 14px; color: var(--sessiz); font-weight: 500; cursor: pointer; white-space: nowrap; }
.sekme[aria-selected="true"] { color: var(--yazi); border-bottom-color: var(--vurgu); }
.icerik { max-width: 960px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.baslik-satir { display: flex; flex-direction: column; gap: 4px; }
.baslik-satir p { color: var(--sessiz); }
.bolum-baslik { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sessiz); }

/* Kart, satır, rozet */
.kart { background: var(--kart); border: 1px solid var(--kenar); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.liste { display: flex; flex-direction: column; gap: 12px; }
.satir { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.satir h3 { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.alt { color: var(--sessiz); font-size: 14px; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: 13px; }
.rozet { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; font-weight: 500; white-space: nowrap; }
.rozet::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.canli { color: var(--canli); } .sozlesme { color: var(--sozlesme); } .engelli { color: var(--engelli); } .denenmedi { color: var(--denenmedi); } .uyari { color: var(--uyari); }
.etiket { font-size: 12px; color: var(--sessiz); border: 1px solid var(--kenar); border-radius: 999px; padding: 2px 10px; white-space: nowrap; align-self: flex-start; }

/* Sayılar ve tablolar */
.sayilar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sayi { background: var(--kart); border: 1px solid var(--kenar); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.sayi b { font-size: 28px; font-weight: 500; }
.sayi span { color: var(--sessiz); font-size: 14px; }
.tablo { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 15px; }
.tablo dt { color: var(--sessiz); } .tablo dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 600px) { .tablo { grid-template-columns: 1fr; gap: 2px; } .tablo dd { text-align: left; margin-bottom: 8px; } }

/* Durum kutuları */
.bos, .hata-kutu { border: 1px dashed var(--kenar); border-radius: 18px; padding: 28px 20px; text-align: center; color: var(--sessiz); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hata-kutu { border-style: solid; border-color: var(--engelli); color: var(--yazi); }
.yukleniyor { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--sessiz); }
.iskelet { height: 84px; border-radius: 18px; background: var(--kart); border: 1px solid var(--kenar); }

@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .ust, .sekmeler { padding-left: 16px; padding-right: 16px; }
  .icerik { padding: 16px; }
  .satir { flex-direction: column; }
  .ust-sag .ad { display: none; }
}
