:root {
    --bg: #f7f4ee;
    --surface: #ffffff;
    --ink: #24211c;
    --muted: #6b655b;
    --line: #e6dfd2;
    /* Jelölti szín: borostyán narancssárga (nem a Fidesz #FD8100) */
    --brand: #F2A900;
    --brand-ink: #24211c;      /* sötét szöveg a borostyán gombon (fehér nem olvasható rajta) */
    --brand-soft: #fdf1d2;
    --brand-text: #8a5f00;     /* borostyán árnyalat szövegnek világos háttéren */
    --danger: #b3261e;
    --danger-soft: #fbe9e7;
    --radius: 14px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    border-top: 5px solid var(--brand);
    -webkit-font-smoothing: antialiased;
}
[x-cloak] { display: none !important; }

/* ---------- Gombok, mezők ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    border: 1px solid transparent; border-radius: 10px;
    padding: .7rem 1.25rem; font: inherit; font-weight: 600; cursor: pointer;
    background: var(--brand); color: var(--brand-ink);
    transition: filter .15s, background .15s;
    text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f1eee7; filter: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: #efc9c5; }
.btn-danger:hover { background: var(--danger-soft); filter: none; }
.btn-sm { padding: .4rem .75rem; font-size: .875rem; border-radius: 8px; }

.input, .textarea {
    width: 100%; font: inherit; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: .75rem .9rem;
}
.input:focus, .textarea:focus, .btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
    outline-offset: 1px; border-color: var(--brand);
}
.textarea { min-height: 170px; resize: vertical; }
.label { display: block; font-weight: 600; margin-bottom: .4rem; }
.error { color: var(--danger); font-size: .9rem; margin-top: .4rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Nyilvános oldal ---------- */
.public-wrap { max-width: 640px; margin: 0 auto; padding: 48px 16px 32px; }
.motto {
    display: flex; align-items: center; gap: .65rem;
    margin: 0; font-size: .95rem; font-weight: 600; color: var(--brand-text);
}
.motto::before {
    content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); flex: none;
}
.hero h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; margin: 1rem 0 .75rem;
}
.hero h1 em {
    font-style: normal; color: var(--ink);
    background: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 92%, transparent 92%);
    padding: 0 .08em;
}
.hero p { color: var(--muted); font-size: 1.075rem; margin: 0 0 1.75rem; }

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(140,95,0,.07);
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.counter { font-size: .85rem; color: var(--muted); }
@media (max-width: 480px) {
    .form-foot .btn { flex: 1 1 100%; order: -1; }
    .form-foot .counter { margin-left: auto; }
}

.privacy {
    display: flex; gap: .75rem; align-items: flex-start;
    margin-top: 1.25rem; padding: 14px 16px; border-radius: 12px;
    background: var(--brand-soft); color: #5a4300; font-size: .925rem;
}
.privacy svg { flex: none; margin-top: 2px; }

.success { text-align: center; padding: 36px 24px; }
.success .check {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
    display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text);
}
.success h2 { font-family: var(--serif); font-weight: 600; margin: 0 0 .5rem; font-size: 1.6rem; }
.success p { color: var(--muted); margin: 0 0 1.5rem; }

.site-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; }

/* ---------- Admin ---------- */
.admin-bar {
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.admin-bar-inner {
    max-width: 960px; margin: 0 auto; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.admin-bar strong { font-family: var(--serif); font-size: 1.15rem; }
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }

.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tabs { display: flex; gap: .35rem; background: #ece8de; padding: 4px; border-radius: 12px; }
.tab {
    border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--muted);
    padding: .45rem .85rem; border-radius: 9px; cursor: pointer;
}
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 -2px 0 var(--brand); }
.tab .count { font-weight: 500; opacity: .7; margin-left: .25rem; }
.search { max-width: 260px; }

.q-list { display: grid; gap: .75rem; }
.q {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px;
}
.q-meta { font-size: .825rem; color: var(--muted); margin-bottom: .4rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.q-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.025rem; }
.q-note { margin-top: .6rem; font-size: .9rem; color: var(--brand-text); }
.q-note a { color: inherit; }
.q-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.q-answer { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.q-answer .input { flex: 1 1 240px; padding: .5rem .75rem; }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }

.login-wrap { max-width: 400px; margin: 0 auto; padding: 72px 16px; }
.login-wrap h1 { font-family: var(--serif); font-weight: 600; margin: 0 0 1.25rem; }
.field { margin-bottom: 1rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; font-size: .925rem; margin-bottom: 1.25rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.pager .btn:disabled { opacity: .4; cursor: default; }
