* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
       font-size: 18px; line-height: 1.45; background: #f4f4f0; color: #1a1a1a; }
/* Shared top bar on every page: "Kutup Yıldızı" always visible, stays on top while scrolling */
header.ust { position: sticky; top: 0; z-index: 1000; background: #1f4e79; color: #fff;
             padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px;
             box-shadow: 0 2px 4px rgba(0,0,0,.25); }
header.ust .marka { color: #fff; font-size: 24px; font-weight: bold; text-decoration: none; }
header.ust .sayfa { font-size: 17px; color: #dce8f4; flex: 1; }
header.ust .evim { color: #fff; font-size: 16px; }
h1 { font-size: 22px; margin: 4px 0 0; }
h2 { font-size: 20px; margin: 18px 0 8px; }
main { max-width: 720px; margin: 0 auto; padding: 12px; }
a { color: #0b4f8a; }
.acil { display: block; background: #b00020; color: #fff; text-align: center; font-size: 22px; font-weight: bold;
        padding: 14px; border-radius: 10px; text-decoration: none; margin: 12px 0; }
.not { background: #fff3cd; border: 2px solid #e0b100; border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.kutu { background: #fff; border: 1px solid #ccc; border-radius: 10px; padding: 12px; margin: 10px 0; }
label { display: block; font-weight: bold; margin-top: 10px; }
input, select, textarea { width: 100%; font-size: 18px; padding: 10px; border: 2px solid #888; border-radius: 8px; }
button, .dugme { display: inline-block; font-size: 20px; padding: 14px 18px; border: 0; border-radius: 8px;
                 background: #1f7a3a; color: #fff; font-weight: bold; text-decoration: none; margin-top: 12px; }
button.ikincil { background: #666; }
button:disabled { background: #999; }
.kucuk { font-size: 15px; color: #555; }
.hata { color: #b00020; font-weight: bold; }
.ok { color: #1f7a3a; font-weight: bold; }
header.ust .marka { display: inline-flex; align-items: center; gap: 8px; }
header.ust .logo { width: 32px; height: 32px; flex: none; }
header.ust .dil { margin: 0; font-size: 15px; padding: 6px 12px; background: #fff; color: #1f4e79;
                  border: 0; border-radius: 6px; font-weight: bold; cursor: pointer; }
/* top-right corner of the blue bar: dark-mode switch + language switch */
header.ust { padding-right: 270px; }
header.ust .ust-sag { position: absolute; top: 8px; right: 10px; display: flex; gap: 6px; }
header.ust .tema { margin: 0; font-size: 18px; line-height: 1; padding: 6px 10px; background: #fff; color: #1f4e79;
                   border: 0; border-radius: 6px; cursor: pointer; }

header.ust .sohbet-rozet { background: #b00020; color: #fff; font-weight: bold; font-size: 15px; border-radius: 14px;
                           padding: 5px 10px; text-decoration: none; align-self: center; }
header.ust .sohbet-rozet[hidden] { display: none; }

header.ust .demo-etiket { background: #f2b632; color: #1a1a1a; font-weight: bold; font-size: 14px; border-radius: 6px;
                          padding: 5px 8px; align-self: center; letter-spacing: 1px; }

/* ---------------- dark mode ---------------- */
html[data-tema="koyu"] { color-scheme: dark; }
html[data-tema="koyu"] body { background: #121619; color: #e3e6e8; }
html[data-tema="koyu"] a { color: #8cc4ff; }
html[data-tema="koyu"] header.ust { background: #0d2a45; }
html[data-tema="koyu"] header.ust a, html[data-tema="koyu"] header.ust .marka { color: #fff; }
html[data-tema="koyu"] header.ust .tema, html[data-tema="koyu"] header.ust .dil { background: #24313d; color: #fff; }
html[data-tema="koyu"] #sistem { background: #0a1f33; }
html[data-tema="koyu"] .kutu, html[data-tema="koyu"] .kart, html[data-tema="koyu"] .sonuc,
html[data-tema="koyu"] .ilan, html[data-tema="koyu"] details, html[data-tema="koyu"] #liste,
html[data-tema="koyu"] .m.yz, html[data-tema="koyu"] .yonetim, html[data-tema="koyu"] table,
html[data-tema="koyu"] .secim label { background: #1c2329; color: #e3e6e8; border-color: #3a4651; }
html[data-tema="koyu"] .kart { border-color: #4f88bf; }
html[data-tema="koyu"] .kart b, html[data-tema="koyu"] summary { color: #9ccaf5; }
html[data-tema="koyu"] details[open] summary { color: #ff8a95; border-color: #3a4651; }
html[data-tema="koyu"] .kart::before { filter: invert(1) hue-rotate(180deg); opacity: .3; }
html[data-tema="koyu"] .m.sen { background: #23415e; color: #e8f1fa; }
html[data-tema="koyu"] .msj { background: #22303c; }
html[data-tema="koyu"] .msj.ben { background: #1f3d27; }
html[data-tema="koyu"] .msj .kim { color: #9ccaf5; }
html[data-tema="koyu"] .not, html[data-tema="koyu"] .uyari, html[data-tema="koyu"] .duyuru {
  background: #3a3112; color: #f3e3b0; border-color: #8a7020; }
html[data-tema="koyu"] details .uyari { background: #4a1a20; color: #ffb3bb; }
html[data-tema="koyu"] input, html[data-tema="koyu"] select, html[data-tema="koyu"] textarea {
  background: #0f1418; color: #e3e6e8; border-color: #56636e; }
html[data-tema="koyu"] td, html[data-tema="koyu"] th { border-color: #3a4651; }
html[data-tema="koyu"] .kucuk, html[data-tema="koyu"] .bilgi, html[data-tema="koyu"] .kaynak,
html[data-tema="koyu"] .ne-zaman, html[data-tema="koyu"] .duyuru .zaman { color: #a7b0b8; }
html[data-tema="koyu"] .hata { color: #ff8a95; }
html[data-tema="koyu"] .ok { color: #7fd99a; }
html[data-tema="koyu"] .durum { background: #33404b; color: #dde3e8; }
html[data-tema="koyu"] .durum.hazir { background: #1d4a2c; color: #b9f0c9; }
html[data-tema="koyu"] .durum.yuklenmedi { background: #5a1f27; color: #ffc4cb; }
html[data-tema="koyu"] .sekmeler button { background: #2a3540; color: #e3e6e8; }
html[data-tema="koyu"] .sekmeler button.secili { background: #4f88bf; color: #fff; }
html[data-tema="koyu"] button.ikincil { background: #4a545c; }
html[data-tema="koyu"] #duyurular h2 { color: #f3d27a; }

/* narrow phones: the right-hand buttons go on their own line instead of covering the title */
@media (max-width: 600px) {
  header.ust { padding-right: 14px; }
  header.ust .ust-sag { position: static; width: 100%; justify-content: flex-end; }
}

/* map popups: undo the big site-wide button style on MapLibre's close button, keep text readable */
.maplibregl-popup-content { color: #1a1a1a; font-size: 16px; padding: 10px 30px 10px 12px; }
.maplibregl-popup-close-button { margin: 0; padding: 0 6px; font-size: 22px; line-height: 26px; background: transparent;
                                 color: #555; font-weight: normal; border-radius: 0 6px 0 0; top: 2px; right: 2px; }
.maplibregl-popup-close-button:hover { background: #eee; }
html[data-tema="koyu"] .maplibregl-popup-content { background: #1c2329; color: #e3e6e8; }
html[data-tema="koyu"] .maplibregl-popup-close-button { color: #cfd6dc; }
html[data-tema="koyu"] .maplibregl-popup-close-button:hover { background: #2a3540; }
html[data-tema="koyu"] .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #1c2329; }
html[data-tema="koyu"] .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #1c2329; }
html[data-tema="koyu"] .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #1c2329; }
html[data-tema="koyu"] .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #1c2329; }
html[data-tema="koyu"] .maplibregl-popup-content .kucuk { color: #a7b0b8; }
