/* Andraxia Online forum — koyu phpBB tarzı tema */
:root {
    --bg: #2a2f35;
    --bg-deep: #22262b;
    --panel: #3a4048;
    --panel-2: #424952;
    --row: #363c43;
    --row-hover: #3f464e;
    --head: #4a525d;
    --line: #2c3137;
    --text: #e6e8eb;
    --muted: #a9b0b8;
    --gold: #e8b04a;
    --gold-hi: #ffd27a;
    --red: #c0392b;
    --green: #1f8a4c;
    --link: #f1f3f5;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.forum {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold-hi); }

/* ---------- üst menü ---------- */
.fh { max-width: 1300px; margin: 0 auto; padding: 0 16px; }

.fh-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #39404a;
    border-radius: 0 0 6px 6px;
    padding: 6px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    flex-wrap: wrap;
}

.fh-logo img { display: block; width: 40px; height: 40px; border-radius: 8px; }

.fh-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-left: auto; }

.fh-links a, .fh-out button {
    color: #d6dadf;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14.5px;
    white-space: nowrap;
}

.fh-links a:hover, .fh-out button:hover { background: rgba(255, 255, 255, .06); color: var(--gold-hi); }

.fh-out { margin: 0; }
.fh-out button { background: none; border: 0; cursor: pointer; font: inherit; }

.fh-toggle, .fh-burger { display: none; }

.fh-crumb {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    background: #333941;
    border-radius: 0 0 6px 6px;
    max-width: 1300px;
}

.fh-crumb span { color: var(--muted); }

/* ortadaki amblem ve süs üçgenleri */
.fh-hero { position: relative; height: 170px; overflow: hidden; }

.fh-emblem {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    height: 210px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(255, 255, 255, .03) 0 60%, transparent 61%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 0 36px rgba(255, 255, 255, .015);
}

.fh-emblem img { width: 140px; height: 140px; border-radius: 26px; filter: drop-shadow(0 6px 18px rgba(232, 176, 74, .35)); }

.tri { position: absolute; width: 0; height: 0; opacity: .55; }
.tri.t1 { left: 12%; top: 34%; border: 10px solid transparent; border-left: 16px solid #6b7480; }
.tri.t2 { left: 25%; top: 62%; border: 10px solid transparent; border-top: 16px solid #2f7a55; }
.tri.t3 { left: 34%; top: 20%; border: 10px solid transparent; border-top: 16px solid #4a5f8c; }
.tri.t4 { left: 41%; top: 70%; border: 10px solid transparent; border-bottom: 16px solid #8a6a4a; }
.tri.t5 { right: 30%; top: 26%; border: 10px solid transparent; border-right: 16px solid #8a6a4a; }
.tri.t6 { right: 22%; top: 60%; border: 10px solid transparent; border-top: 16px solid #2f7a55; }
.tri.t7 { right: 12%; top: 30%; border: 10px solid transparent; border-left: 16px solid #6b7480; }

/* ---------- gövde ---------- */
.fm { max-width: 1180px; margin: 0 auto; padding: 0 16px 30px; }

.f-panel {
    background: var(--panel);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.f-group {
    margin: 0 0 2px;
    padding: 10px 14px;
    background: var(--head);
    border-radius: 6px 6px 0 0;
    font-size: 19px;
    font-weight: 600;
}

.f-group::before { content: "⊟ "; color: var(--muted); font-weight: 400; }

.f-row {
    display: grid;
    grid-template-columns: 44px 1fr minmax(0, 260px) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: var(--row);
    border-bottom: 1px solid var(--line);
}

.f-row:last-child { border-radius: 0 0 6px 6px; border-bottom: 0; }
.f-row:hover { background: var(--row-hover); }

.f-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #262a2f;
    box-shadow: inset 0 0 0 2px #50575f;
    font-size: 18px;
}

.f-main { display: flex; flex-direction: column; min-width: 0; }
.f-name { font-size: 18px; font-weight: 600; }
.f-desc { color: var(--muted); font-size: 13.5px; }

.f-last { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.f-last a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.f-last span { color: var(--muted); }

.f-count { font-size: 13px; font-style: italic; color: #dfe3e7; white-space: nowrap; }

/* bölüm sayfası */
.f-title { margin: 4px 4px 4px; font-size: 22px; font-weight: 600; }
.f-sub { margin: 0 4px 12px; color: var(--muted); }

.f-list { border: 2px solid #23272c; border-radius: 6px; overflow: hidden; }

.t-row {
    display: grid;
    grid-template-columns: 1fr auto 170px;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: var(--row);
    border-bottom: 1px solid var(--line);
}

.t-row:last-child { border-bottom: 0; }
.t-row:hover { background: var(--row-hover); }
.t-row.pinned { background: #3b3a36; }

.t-main { display: flex; flex-direction: column; min-width: 0; }
.t-name { font-size: 19px; font-weight: 600; }
.t-meta { color: var(--muted); font-size: 13px; }
.t-stats { color: var(--muted); font-size: 13px; white-space: nowrap; }
.t-stats b { color: var(--text); }
.t-last { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); text-align: right; }
.t-last span:first-child { color: var(--text); font-weight: 600; }

.staff { color: var(--gold-hi) !important; }

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: 3px;
    background: var(--gold);
    color: #1d1505;
}

.tag.lock { background: #6b7480; color: #fff; }

.f-empty { padding: 22px; text-align: center; color: var(--muted); background: var(--row); }

.f-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }

.f-btn {
    display: inline-block;
    background: #4b535e;
    color: #fff;
    border: 1px solid #5b646f;
    border-radius: 4px;
    padding: 7px 14px;
    font: 700 13.5px Inter, sans-serif;
    cursor: pointer;
}

.f-btn:hover { background: #59626e; color: #fff; }

.f-pageinfo { font-size: 13px; font-weight: 600; }

.f-pager { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.f-pager a { padding: 4px 10px; border-radius: 4px; background: var(--row); font-size: 13px; }
.f-pager a.on { background: var(--gold); color: #1d1505; font-weight: 700; }

.f-note { color: var(--muted); font-size: 14px; }
.f-note a { color: var(--gold-hi); }

/* ---------- konu ---------- */
.mod-bar { display: flex; gap: 8px; margin: 0 4px 12px; }
.mod-bar form { margin: 0; }
.mod-bar button, .post-head .del {
    background: #4b535e;
    color: #fff;
    border: 1px solid #5b646f;
    border-radius: 4px;
    padding: 4px 10px;
    font: 600 12.5px Inter, sans-serif;
    cursor: pointer;
}
.post-head .del { background: #6d2d27; border-color: #8a3a32; }

.post {
    display: grid;
    grid-template-columns: 170px 1fr;
    background: var(--row);
    border: 1px solid #2b3036;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.post-author {
    background: #31363d;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.post-author img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    box-shadow: 0 0 0 3px #15181b, 0 4px 14px rgba(0, 0, 0, .4);
}

.post-author b { font-size: 16px; font-weight: 500; }
.post-author .role { font-size: 11.5px; font-weight: 700; color: #1d1505; background: var(--gold); border-radius: 3px; padding: 1px 7px; }
.post-author .count { font-weight: 700; font-size: 14px; }

.post-body { min-width: 0; }

.post-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--muted);
    background: #30353b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.post-head form { margin: 0; }

.post-content { padding: 16px 20px 22px; overflow-wrap: anywhere; }

.post-content.official { text-align: center; }
.post-content.official ul, .post-content.official ol { display: inline-block; text-align: left; margin: 6px auto; }
.post-content h2 { font-size: 18px; margin: 4px 0 14px; }
.post-content h3 { font-size: 16px; margin: 18px 0 8px; }
.post-content hr { border: 0; border-top: 1px solid #4a525c; margin: 16px 0; }
.post-content .hl { color: var(--gold-hi); font-weight: 700; }
.post-content .note { color: var(--gold); font-size: 14px; }
.post-content .sig { color: var(--muted); font-style: italic; }
.post-content a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 2px; }
.post-content code { background: #262a2f; padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }
.post-content small { color: var(--muted); }

.btn-dl {
    display: inline-block;
    background: var(--green);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
}

/* bilgi ve PUS tabloları */
.post-content table { border-collapse: collapse; margin: 10px auto 18px; width: 100%; max-width: 900px; text-align: left; }
.post-content table.info td { padding: 8px 12px; border-bottom: 1px solid #454c55; }
.post-content table.info td:first-child { color: var(--muted); width: 45%; }

.pus-title { margin-top: 26px !important; }
table.pus thead th { background: var(--head); padding: 10px 12px; font-size: 13.5px; white-space: nowrap; }
table.pus thead th:last-child, table.pus td.pr { text-align: right; }
table.pus td { padding: 9px 12px; border-bottom: 1px solid #454c55; background: #353b42; }
table.pus tr:nth-child(even) td { background: #3a4048; }
table.pus td.ic { width: 96px; text-align: center; }
table.pus td.ic img { width: 40px; height: 40px; border-radius: 3px; box-shadow: 0 0 0 1px #111; image-rendering: auto; }
table.pus td.nm { font-weight: 600; }
table.pus td.ds { color: var(--muted); font-size: 13.5px; }
table.pus td.pr { font-weight: 700; white-space: nowrap; }

/* cevap formu */
.reply { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.reply h3 { margin: 6px 0 0; font-size: 17px; }
.reply label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.reply input, .reply textarea {
    width: 100%;
    background: #2b3036;
    border: 1px solid #535b65;
    border-radius: 6px;
    color: var(--text);
    padding: 10px 12px;
    font: 15px Inter, sans-serif;
}
.reply textarea { resize: vertical; min-height: 130px; }
.reply input:focus, .reply textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.reply .f-btn { align-self: flex-start; }
.err { color: #ff8a7a; font-weight: 600; margin: 0; }

/* sağdaki sabit düğmeler */
.f-float { position: fixed; right: 0; top: 46%; display: flex; flex-direction: column; z-index: 20; }
.f-float a { width: 50px; height: 40px; display: grid; place-items: center; font-size: 19px; color: #fff; }
.fl-site { background: #6c3fd6; }
.fl-dl { background: var(--green); }
.fl-ig { background: #c13584; }
.fl-dc { background: #5865f2; }

/* alt bilgi */
.ff { max-width: 1180px; margin: 0 auto; padding: 0 16px 30px; color: var(--muted); font-size: 13px; }
.ff-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 15px; font-weight: 600; }
.ff-row a { color: var(--text); margin-left: 14px; }
.ff-row a:first-child { margin-left: 0; }
.ff p { text-align: center; margin-top: 18px; }
.ff p a { color: var(--muted); text-decoration: underline; }

/* ---------- telefon ---------- */
@media (max-width: 860px) {
    .fh { padding: 0 10px; }
    .fh-burger { display: block; margin-left: auto; padding: 8px 10px; cursor: pointer; color: #d6dadf; font-weight: 600; }
    .fh-links { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
    .fh-toggle:checked ~ .fh-links { display: flex; }
    .fh-hero { height: 130px; }
    .fh-emblem { width: 160px; height: 160px; }
    .fh-emblem img { width: 104px; height: 104px; }
    .fm, .ff { padding-left: 10px; padding-right: 10px; }
    .f-panel { padding: 8px; border-radius: 8px; }
    .f-row { grid-template-columns: 40px 1fr; }
    .f-last { display: none; }
    .f-count { grid-column: 2; font-size: 12px; }
    .t-row { grid-template-columns: 1fr; gap: 4px; }
    .t-last { text-align: left; flex-direction: row; gap: 8px; }
    .post { grid-template-columns: 1fr; }
    .post-author { flex-direction: row; justify-content: flex-start; padding: 10px 12px; text-align: left; }
    .post-author img { width: 46px; height: 46px; }
    .post-content { padding: 14px; }
    table.pus td.ds { display: none; }
    table.pus thead th:nth-child(3) { display: none; }
    .f-float a { width: 42px; height: 36px; font-size: 16px; }
}
