:root {
  --bg: #0f1420;
  --panel: #161d2e;
  --panel-2: #1e2740;
  --text: #e8edf7;
  --muted: #9aa6bf;
  --accent: #43c08a;
  --accent-2: #5b8cff;
  --border: #2a3552;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1b2440 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  margin-left: 8px;
}
nav a:hover, nav a.active { background: var(--panel-2); border-color: var(--accent-2); }

h1 { font-size: 1.9rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.lead { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
button:hover { border-color: var(--accent-2); }
button:active { transform: translateY(1px); }

button.primary { background: var(--accent); color: #06210f; border-color: transparent; font-weight: 600; }
button.dice { font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; }
button.dice .die { font-size: 1.4rem; display: inline-block; }
button.dice.rolling .die { animation: spin .5s ease; }

@keyframes spin {
  from { transform: rotate(0) scale(1); }
  50%  { transform: rotate(180deg) scale(1.25); }
  to   { transform: rotate(360deg) scale(1); }
}

input[type="text"] {
  font: inherit;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
}
label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }

textarea {
  font: inherit;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  min-height: 140px;
  resize: vertical;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.filebtn {
  display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  padding: 10px 16px; border-radius: 10px; font-size: 1rem; margin: 0;
}
.filebtn:hover { border-color: var(--accent-2); }

.response-card {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; margin-bottom: 10px;
}
.response-card .rhead {
  display: flex; justify-content: space-between; gap: 10px;
  align-items: baseline; margin-bottom: 4px;
}
.response-card .org { font-weight: 600; font-size: 1.02rem; }
.response-card .date { color: var(--muted); font-size: .85rem; }
.response-card .meta { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.response-card .body { white-space: pre-wrap; }

.badge { font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.badge.pub { color: var(--accent); border-color: rgba(67,192,138,.4); }
.badge.local { color: #f3b36a; border-color: rgba(243,179,106,.4); }

.del {
  background: transparent; border-color: rgba(255,107,107,.4);
  color: #ff6b6b; padding: 4px 10px; font-size: .8rem;
}

.letter {
  white-space: pre-wrap;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-size: 1rem;
  min-height: 200px;
}

.note {
  background: rgba(91,140,255,.08);
  border: 1px solid rgba(91,140,255,.35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #cfd9f5;
  font-size: .92rem;
}
.warn {
  background: rgba(255,180,70,.08);
  border-color: rgba(255,180,70,.4);
  color: #f3dcae;
}

.list-group { margin-bottom: 16px; }
.list-group h3 { margin: 0 0 8px; font-size: 1rem; color: var(--accent); }
.recipient {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel-2); margin-bottom: 6px; font-size: .92rem;
}
.recipient .email { color: var(--muted); font-family: ui-monospace, monospace; }
.recipient .email.todo { color: #f3b36a; }

.copybox {
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: .85rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: #06210f; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer { color: var(--muted); font-size: .85rem; margin-top: 40px; text-align: center; }
a { color: var(--accent-2); }

/* Egységes lábléc-sor minden oldal alján */
.copyright {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: .8rem;
}
.copyright a { color: var(--muted); text-decoration: underline; }
.copyright .sep { opacity: .5; margin: 0 8px; }

/* Főoldali ütős állásfoglalás */
.statement {
  background: linear-gradient(135deg, rgba(255,107,107,.10), rgba(91,140,255,.08));
  border: 1px solid var(--border); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 22px; margin: 6px 0 24px;
}
.statement .tag-op {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: #f3dcae; border: 1px solid rgba(255,180,70,.5);
  padding: 2px 9px; border-radius: 999px; margin-bottom: 12px;
}
.statement .claim { font-size: 1.75rem; font-weight: 800; line-height: 1.22; margin: 0 0 12px; }
@media (max-width: 600px) { .statement .claim { font-size: 1.4rem; } }
.statement .claim .reg { color: var(--accent); }
.statement .claim .pun { color: #ff8a8a; }
.statement .q { font-size: 1.1rem; margin: 0; color: var(--text); }
.statement .q em { color: var(--muted); font-style: normal; font-size: .85em; }

/* --- Érvek oldal --- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip {
  font: inherit; cursor: pointer; font-size: .85rem;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
}
.chip:hover { border-color: var(--accent-2); }
.chip.on { background: var(--accent); color: #06210f; border-color: transparent; font-weight: 600; }
.chip .chip-n {
  font-size: .72rem; opacity: .8; margin-left: 4px;
  padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.12);
}
.chip.on .chip-n { background: rgba(0,0,0,.15); }

.muted-line { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }

.arg-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px;
}
.arg-card h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--text); }
.arg-card p { margin: 0 0 12px; }
.arg-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px; align-items: baseline;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.arg-meta .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .72rem; color: var(--muted);
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border);
}
.arg-meta .sources { font-size: .82rem; color: var(--muted); text-align: right; }
.arg-meta .sources a { margin-left: 8px; white-space: nowrap; }

/* --- Friss ítélet sáv (Európában oldal teteje) --- */
.verdict-banner {
  background: rgba(255,107,107,.08);
  border: 1px solid rgba(255,107,107,.45);
  border-left: 5px solid #ff6b6b;
  border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 20px;
}
.verdict-banner .eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: #ff8a8a; margin-bottom: 8px;
}
.verdict-banner h2 { margin: 0 0 8px; font-size: 1.35rem; color: var(--text); }
.verdict-banner p { margin: 0 0 10px; }
.verdict-banner p:last-child { margin-bottom: 0; }
.verdict-banner .nuance { font-size: .88rem; color: var(--muted); }
.verdict-banner .src a { white-space: nowrap; }

/* --- Európában oldal --- */
.hero-contrast {
  background: linear-gradient(135deg, rgba(67,192,138,.12), rgba(91,140,255,.10));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
}
.hero-contrast h1 { margin-top: 0; }
.hero-contrast .big {
  font-size: clamp(1.8rem, 8vw, 2.4rem); font-weight: 800; color: var(--accent); line-height: 1.1;
  margin: 6px 0; overflow-wrap: anywhere;
}

.country-grid {
  display: grid;
  /* Dinamikus oszlopszám: a kártyák a rendelkezésre álló helyhez igazodnak.
     A min(100%, 240px) megakadályozza a kilógást nagyon keskeny mobilon. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px; margin-bottom: 8px;
}

.country {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  min-width: 0; /* engedi a tartalmat zsugorodni a rácscellában */
}
.country .chead {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 6px 8px; margin-bottom: 6px;
}
.country .cname { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; min-width: 0; }
.country p { margin: 0 0 8px; font-size: .92rem; overflow-wrap: anywhere; }
.country .csrc { font-size: .8rem; color: var(--muted); }

.status {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap;
}
.status.legal     { color: var(--accent);  border-color: rgba(67,192,138,.45); background: rgba(67,192,138,.08); }
.status.dekrim    { color: var(--accent-2); border-color: rgba(91,140,255,.45); background: rgba(91,140,255,.08); }
.status.fine      { color: #4fd1d9; border-color: rgba(79,209,217,.45); background: rgba(79,209,217,.08); }
.status.medical   { color: #c79bff; border-color: rgba(199,155,255,.45); background: rgba(199,155,255,.08); }
.status.tolerated { color: #f3b36a; border-color: rgba(243,179,106,.45); background: rgba(243,179,106,.08); }
.status.strict    { color: #ff6b6b; border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.08); }

/* Magyarország kiemelt, ellentétes színű blokk */
.hu-block {
  background: rgba(255,107,107,.07); border: 1px solid rgba(255,107,107,.4);
  border-radius: var(--radius); padding: 20px; margin: 22px 0 18px;
}
.hu-block h2 { margin-top: 0; color: #ff8a8a; }
.hu-block .hu-fact { margin-bottom: 12px; }
.hu-block .hu-fact:last-child { margin-bottom: 0; }
.hu-block .hu-fact strong { color: var(--text); }
.hu-block .csrc { font-size: .8rem; color: var(--muted); }

/* --- Letölthető anyagok oldal --- */
.dl-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--panel-2); margin-bottom: 8px;
}
.dl-item .dl-title { font-weight: 600; }
.dl-item .dl-sub { color: var(--muted); font-size: .82rem; }
.dl-item .dl-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.lang {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border);
}
.lang.hu { color: var(--accent);   border-color: rgba(67,192,138,.45); background: rgba(67,192,138,.08); }
.lang.en { color: var(--accent-2); border-color: rgba(91,140,255,.45); background: rgba(91,140,255,.08); }
.dl-btn {
  display: inline-block; text-decoration: none; background: var(--accent); color: #06210f;
  font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid transparent;
}
.dl-btn:hover { filter: brightness(1.08); }

/* --- Spektrum oldal --- */
/* Mindkét kép azonos, középre zárt, reszponzív méretű (mobilon a szélességhez igazodik) */
figure.spectrum { margin: 0 auto 18px; max-width: 680px; }
figure.spectrum a { display: block; }
.spectrum-img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: var(--radius);
}
figure.spectrum figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; text-align: center; }

/* A kezdeményezés politikai álláspontja – jól elkülönítve, hogy ne keveredjen a tényekkel */
.opinion {
  background: rgba(255,180,70,.07); border: 1px dashed rgba(255,180,70,.5);
  border-radius: var(--radius); padding: 18px 20px; margin: 18px 0;
}
.opinion .tag-op {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: #f3dcae; border: 1px solid rgba(255,180,70,.5);
  padding: 2px 9px; border-radius: 999px; margin-bottom: 8px;
}
.opinion p { margin: 0 0 10px; }
.opinion p:last-child { margin-bottom: 0; }
