/* Son Zil community pages: the game's palette (slate panels, warm yellow accent, chalk white). No web fonts, no scripts. */
:root {
  --ground: #14161f; --panel: #232734; --panel-2: #2c3142; --line: #3a4056;
  --text: #eef0f6; --muted: #9aa3b8; --accent: #f2c14e; --go: #8fd18b; --no: #e5746a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); font: 17px/1.55 "Segoe UI", system-ui, -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
body { margin: 0 auto; max-width: 860px; padding: 0 20px 48px; }
body.admin { max-width: 1040px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd978; }

.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; padding: 26px 0 18px; border-bottom: 3px solid var(--accent); margin-bottom: 30px; }
.brand { font-weight: 900; font-size: 30px; letter-spacing: 1px; color: var(--accent); text-decoration: none; transform: rotate(-1.5deg); display: inline-block; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--accent); }

h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; }
h1 small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 10px; }
h2 { font-size: 21px; margin: 34px 0 10px; color: var(--accent); }
h3 { font-size: 19px; margin: 6px 0; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 64ch; }
.small { color: var(--muted); font-size: 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }

.group ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.group li { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: var(--radius); padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.group.yapimda li { border-left-color: var(--go); }
.group.sirada li { border-left-color: var(--accent); }
.group .name { font-weight: 700; font-size: 18px; }
.group .by { color: var(--muted); font-size: 14px; }
.group.yapimda h2 { color: var(--go); }
.group.inceleniyor h2 { color: var(--muted); }

.card, .item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; }
.narrow { max-width: 420px; }
label { display: block; font-weight: 600; margin-bottom: 14px; }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
label.check input { margin-top: 5px; flex: none; width: 18px; height: 18px; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--ground); border: 1px solid var(--line); border-radius: 9px; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button { font: inherit; font-weight: 700; padding: 10px 18px; border: 0; border-radius: 9px; background: var(--accent); color: #1c1a10; cursor: pointer; }
button:hover { background: #ffd978; }
button.go { background: var(--go); }
button.no, .danger button { background: transparent; color: var(--no); border: 1px solid var(--no); }
button.link { background: none; color: var(--text); padding: 0; font-weight: 600; }
form.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.row input, .row select { width: auto; flex: 1 1 180px; margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.grid .row { grid-column: 1 / -1; }

.item header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.item time { color: var(--muted); font-size: 14px; margin-left: auto; }
.tag { background: var(--panel-2); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.tag.state { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.item.yeni { border-left: 6px solid var(--accent); }
.item.onaylandi, .item.cozuldu { border-left: 6px solid var(--go); }
.item.reddedildi, .item.kapandi { opacity: .72; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0 0 10px; }
pre.log { font: 13px/1.4 Consolas, "Cascadia Mono", monospace; color: var(--muted); max-height: 320px; overflow: auto; background: var(--ground); padding: 10px; border-radius: 9px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.ok { background: #20362a; border: 1px solid var(--go); border-radius: 9px; padding: 10px 14px; }
.err { background: #3a2222; border: 1px solid var(--no); border-radius: 9px; padding: 10px 14px; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { h1 { font-size: 27px; } .brand { font-size: 25px; } }
