/* 의견·건의 게시판 (/feedback). 사이트 공통 토큰(site.css :root)을 그대로 쓴다. */

.fb { padding-block: clamp(40px, 6vw, 72px); }
.fb__shell { max-width: 920px; }
.fb__shell--narrow { max-width: 760px; }

.fb__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
}
.fb__write { flex: none; }
.fb__crumb { margin-bottom: 18px; font-size: 14px; }
.fb__crumb a { color: var(--text-muted); text-decoration: none; }
.fb__crumb a:hover { color: var(--text); }
.fb__write-title { margin-bottom: 24px; }

.fb__admin {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd76a;
    background: rgba(255, 215, 106, .1);
    border: 1px solid rgba(255, 215, 106, .35);
}

.fb__notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(110, 231, 255, .08);
    border: 1px solid rgba(110, 231, 255, .3);
    font-size: 14px;
}
.fb__notice--warn { background: rgba(255, 200, 110, .08); border-color: rgba(255, 200, 110, .35); }
.fb__notice a { color: var(--accent); font-weight: 700; margin-left: 6px; }

/* ── 필터 ── */
.fb__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 18px;
}
.fb__game select,
.fb-form select {
    padding: 9px 12px;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
}
.fb__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.fb__tab {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
}
.fb__tab:hover { color: var(--text); border-color: var(--border-strong); }
.fb__tab.is-on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.fb__tab--mine { margin-left: 6px; }

/* ── 목록 ── */
.fb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}
.fb-row { border-bottom: 1px solid var(--border); }
.fb-row--hidden { opacity: .6; }
.fb-row__link {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    padding: 14px 6px;
    color: inherit;
    text-decoration: none;
}
a.fb-row__link:hover { background: var(--surface); }
.fb-row__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.fb-row__game { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fb-row__title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fb-row__title--locked { color: var(--text-dim); font-weight: 500; }
.fb-row__side {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.fb-row__author { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
    .fb-row__link { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 4px; }
    .fb-row__meta { flex-direction: row; align-items: center; gap: 8px; }
    .fb-row__side { justify-content: flex-start; }
}

.fb__empty {
    padding: 48px 0;
    text-align: center;
    color: var(--text-muted);
}

.fb__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}
.fb__page-no { font-size: 14px; color: var(--text-muted); }

/* ── 배지 ── */
.fb-kind {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    color: #cfe9ff;
    background: rgba(110, 170, 255, .16);
}
.fb-kind--bug { color: #ffc4c4; background: rgba(255, 110, 110, .16); }
.fb-kind--praise { color: #c9f5c4; background: rgba(120, 220, 120, .15); }
.fb-kind--other { color: #d8d4ff; background: rgba(167, 139, 250, .16); }

.fb-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    vertical-align: 1px;
}
.fb-badge--ok { color: #8ce99a; border-color: rgba(140, 233, 154, .45); margin-right: 0; }
.fb-badge--warn { color: #ffc978; border-color: rgba(255, 201, 120, .45); }

/* ── 글 보기 ── */
.fb-post {
    padding: clamp(20px, 4vw, 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.fb-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.fb-post__title { margin: 14px 0 8px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); overflow-wrap: anywhere; }
.fb-post__by { display: flex; gap: 12px; font-size: 13px; color: var(--text-dim); }
.fb-post__author { color: var(--text-muted); font-weight: 600; }
.fb-post__body {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
}
.fb-post__lock { margin-top: 14px; color: var(--text-muted); }
.fb-post__actions { margin-top: 26px; display: flex; justify-content: flex-end; }
.fb-btn-danger { color: #ffb4b4; border-color: rgba(255, 110, 110, .4); cursor: pointer; background: none; font: inherit; font-weight: 700; font-size: 14px; }
.fb-btn-danger:hover { background: rgba(255, 110, 110, .08); }

.fb-reply {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(110, 231, 255, .06);
    border: 1px solid rgba(110, 231, 255, .25);
}
.fb-reply__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 15px; }
.fb-reply__head time { font-size: 12px; font-weight: 400; color: var(--text-dim); }
.fb-reply__body { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }

.fb-admin {
    margin-top: 28px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 215, 106, .45);
}
.fb-admin__head { margin-bottom: 14px; font-size: 15px; color: #ffd76a; }
.fb-admin__hide { margin-top: 14px; }
.fb-admin__hide .btn { cursor: pointer; background: none; font: inherit; font-weight: 700; font-size: 14px; }

/* ── 글쓰기 ── */
.fb-form { display: flex; flex-direction: column; gap: 18px; }
.fb-form > label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); }
.fb-form input[type="text"],
.fb-form textarea {
    padding: 11px 13px;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-muted);
    border: 1px solid var(--border);
}
.fb-form textarea { resize: vertical; min-height: 180px; line-height: 1.7; }
.fb-form input:focus,
.fb-form textarea:focus,
.fb-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.fb-form__set { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.fb-form__set legend { margin-bottom: 8px; padding: 0; font-size: 14px; color: var(--text-muted); }
.fb-form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-chip { cursor: pointer; }
.fb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fb-chip .fb-kind { padding: 6px 16px; font-size: 14px; border: 2px solid transparent; opacity: .55; }
.fb-chip input:checked + .fb-kind { opacity: 1; border-color: currentColor; }
.fb-chip input:focus-visible + .fb-kind { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-radio { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.fb-radio input { width: 18px; height: 18px; accent-color: var(--accent); }

.fb-form__hint { font-size: 13px; color: var(--text-dim); }
.fb-form__hint a { color: var(--text-muted); }
.fb-form__actions { display: flex; justify-content: flex-end; gap: 10px; }
.fb-form__actions .btn { cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
