/* Temel: renkler, yazı, ortak parçalar. OGame'in koyu lacivert panelleri, turuncu seçili, yeşil geliştir;
   Kadim olan her şey zümrüt (bizim görsel dilimiz). Oyun hep koyu; açık tema yok. */

:root {
  color-scheme: dark;
  --zemin: #03050a;
  --panel: rgba(14, 19, 27, .94);
  --panel-koyu: rgba(8, 11, 16, .95);
  --panel-acik: #18212d;
  --kenar: #212c3a;
  --kenar-acik: #34465c;
  --serit-ust: #283546;
  --serit-alt: #141b25;
  --yazi: #d7dfe9;
  --yazi-2: #a6b5c7;
  --soluk: #7186a0;
  --bag: #86b8ea;
  --baslik-mavi: #9cc3ea;
  --turuncu: #ff9d2e;
  --yesil: #93d356;
  --kirmizi: #f0625a;
  --zumrut: #43d391;
  --zumrut-sis: rgba(67, 211, 145, .12);
  --kehribar: #f0a843;
  --akkor: #ff7b2c;
  --altin: #c9a55c;
  --fildisi: #ece4d2;
  --yazi-tipi: "Segoe UI", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --kadim-tipi: "Cormorant Garamond", "Noto Serif", Georgia, serif;
  --golge: 0 8px 24px rgba(0, 0, 0, .45);
  --yuvarlak: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--zemin);
  color: var(--yazi);
  font: 13.5px/1.45 var(--yazi-tipi);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bag); text-decoration: none; }
a:hover { color: #b9d8f7; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--turuncu); outline-offset: 2px; }
::selection { background: rgba(255, 157, 46, .35); }

/* Uzay zemini: sabit katman (telefonda kaymasın diye background-attachment yerine) */
.zemin {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0) 55%, var(--zemin) 100%),
    url(../varlik/zemin/uzay.webp) center top / cover no-repeat,
    var(--zemin);
}

.simge { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.soluk { color: var(--soluk); }
.artis { color: var(--yesil); font-style: normal; }
.azalis { color: var(--kirmizi); font-style: normal; }

/* Kutu: OGame'in başlık şeritli paneli */
.kutu {
  background: linear-gradient(180deg, rgba(21, 28, 38, .96), rgba(11, 15, 21, .96));
  border: 1px solid var(--kenar);
  border-radius: var(--yuvarlak);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), var(--golge);
}
.kutu-baslik {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  background: linear-gradient(180deg, var(--serit-ust), var(--serit-alt));
  border-bottom: 1px solid #090c11;
  border-radius: var(--yuvarlak) var(--yuvarlak) 0 0;
  color: var(--baslik-mavi);
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.kutu-baslik a { color: inherit; }
.kutu-ek { margin-left: auto; color: var(--soluk); font-weight: 500; letter-spacing: .02em; text-transform: none; }
a.kutu-ek:hover { color: var(--bag); }
.kutu-govde { padding: 11px 12px; }

/* Düğmeler */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 6px 14px;
  background: linear-gradient(180deg, #2b3a4d, #1a2431);
  border: 1px solid #3c5068; border-radius: 4px;
  color: #dbe6f2; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.dugme:hover:not(:disabled) { border-color: #58718f; color: #fff; }
.dugme.kucuk { min-height: 30px; padding: 4px 11px; font-size: 12.5px; }
.dugme.yesil {
  background: linear-gradient(180deg, #67b13a, #39771b);
  border-color: #86cf56; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.dugme.yesil:hover:not(:disabled) { background: linear-gradient(180deg, #74c143, #418a1f); }
.dugme:disabled { background: #1a212b; border-color: #2a3442; color: #66778c; box-shadow: none; text-shadow: none; }
.ikon-dugme {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--kenar); border-radius: 4px;
  color: var(--yazi-2);
}
.ikon-dugme:hover:not(:disabled) { color: #fff; border-color: var(--kenar-acik); }
.ikon-dugme:disabled { opacity: .35; }
.metin-dugme { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--bag); }
.dugme-sirasi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dugme-sirasi.sag { justify-content: flex-end; }

/* İki-üç seçenekli düğme grubu */
.ikili-secim { display: inline-flex; border: 1px solid var(--kenar-acik); border-radius: 4px; overflow: hidden; }
.ikili-secim button { padding: 5px 12px; background: #121922; border: 0; border-left: 1px solid var(--kenar-acik); color: var(--yazi-2); font-size: 12.5px; }
.ikili-secim button:first-child { border-left: 0; }
.ikili-secim button.secili { background: #24364b; color: #fff; }
.ikili-secim button:disabled { color: #4e5d70; }

.etiket {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border: 1px solid var(--kenar-acik); border-radius: 999px;
  color: var(--yazi-2); font-size: 11.5px; white-space: nowrap;
}
.etiket.zumrut { border-color: rgba(67, 211, 145, .5); color: var(--zumrut); background: var(--zumrut-sis); }
.etiket.kilitli { color: #5d6e82; border-style: dashed; }
.etiket.bilinmez { color: #6b7c90; border-style: dashed; }
.etiket-dugme { padding: 3px 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--kenar); border-radius: 999px; color: var(--bag); font-size: 12px; }

.rozet {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--turuncu); border-radius: 9px;
  color: #1a0d00; font-size: 11px; font-weight: 800; line-height: 1;
}

/* İlerleme çubuğu */
.ilerleme { display: block; height: 6px; background: #0a0f15; border: 1px solid #243041; border-radius: 3px; overflow: hidden; }
.ilerleme > span { display: block; height: 100%; background: linear-gradient(90deg, #3e8f22, #8ad54f); transition: width 1s linear; }
/* Başlamamış iş (kaynak bekliyor): dolmayan, kehribar çizgili çubuk; yapımdaki işin dolan yeşil çubuğuyla karışmasın */
.ilerleme.bekleme {
  border-color: #5e4521;
  background: repeating-linear-gradient(-45deg, rgba(240, 168, 67, .6) 0 2px, transparent 2px 6px), #0a0f15;
}

/* Kısa tanım listesi */
.kisa-liste { display: grid; gap: 4px; margin: 0; }
.kisa-liste > div { display: flex; justify-content: space-between; gap: 10px; }
.kisa-liste dt { color: var(--soluk); }
.kisa-liste dd { margin: 0; color: var(--yazi); text-align: right; }
.kisa-liste.yatay { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px 14px; }
.kisa-liste.yatay > div { flex-direction: column; gap: 0; }
.kisa-liste.yatay dd { text-align: left; font-weight: 600; }

/* Sekmeler (Arşiv, Mesajlar) */
.sekmeler { display: flex; gap: 4px; margin: 14px 0 10px; overflow-x: auto; scrollbar-width: none; }
.sekmeler::-webkit-scrollbar { display: none; }
.sekmeler a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--kenar); border-radius: 4px;
  background: rgba(13, 18, 25, .9); color: var(--yazi-2); white-space: nowrap;
}
.sekmeler a.secili { border-color: var(--turuncu); color: var(--turuncu); background: rgba(255, 157, 46, .08); }

/* Tablolar */
.tablo-kaydir { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 6px 9px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .05); }
thead th { color: var(--soluk); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* Aç-kapa anahtarı */
.anahtar { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.anahtar input { position: absolute; opacity: 0; pointer-events: none; }
.anahtar > span:first-of-type { position: relative; width: 34px; height: 19px; background: #1b2532; border: 1px solid var(--kenar-acik); border-radius: 10px; transition: background .2s; }
.anahtar > span:first-of-type::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; background: #8ca0b6; border-radius: 50%; transition: transform .2s; }
.anahtar input:checked + span { background: #3b7a1f; }
.anahtar input:checked + span::after { transform: translateX(15px); background: #fff; }

blockquote { margin: 0; }

input[type="number"], .koordinat-girdi input, .yuk input, .takas-formu input {
  min-width: 0;
  padding: 5px 7px;
  background: #0b1016; border: 1px solid var(--kenar-acik); border-radius: 3px;
  color: #fff; text-align: right;
}
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
