:root {
  --bg: #03040a;
  --panel: rgba(16, 18, 26, 0.72);
  --line: rgba(232, 180, 74, 0.32);
  --gold: #e8b44a;
  --gold2: #f6d48a;
  --gold-dim: #b8892e;
  --text: #f3f0e8;
  --muted: #9c978c;
  --ok: #3dd68c;
  --danger: #f07178;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: #03040a;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(232,180,74,0.1), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(40,50,80,0.25), transparent 55%),
    #03040a;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-logo.sm { height: 42px; }
/* menü / ghost gombok — ugyanaz a színátmenet, mint a kártyák */
.nav-btn-grad {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232,180,74,0.16), transparent 55%),
    linear-gradient(165deg, rgba(28,30,40,0.96), rgba(10,12,18,0.99));
  border: 1px solid rgba(232,180,74,0.32);
  color: var(--gold2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232,180,74,0.16), transparent 55%),
    linear-gradient(165deg, rgba(28,30,40,0.96), rgba(10,12,18,0.99));
  border: 1px solid rgba(232,180,74,0.32);
  color: var(--gold2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s, background 0.25s, box-shadow 0.25s, transform 0.15s;
}
.nav-links a:hover {
  border-color: rgba(232,180,74,0.55);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(232,180,74,0.28), transparent 55%),
    linear-gradient(165deg, rgba(36,32,22,0.98), rgba(10,12,18,0.99));
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 0 0 1px rgba(232,180,74,0.12);
  transform: translateY(-1px);
}
.nav-links a[aria-current="page"] {
  border-color: rgba(232,180,74,0.65);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(232,180,74,0.32), transparent 55%),
    linear-gradient(165deg, rgba(40,34,20,0.98), rgba(12,12,18,0.99));
  box-shadow: 0 0 0 1px rgba(232,180,74,0.2), 0 8px 20px rgba(0,0,0,0.3);
}
.nav-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-actions .btn-ghost,
.nav-actions .btn-outline {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 4px;
  border: 1px solid rgba(232,180,74,0.35);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 40%, rgba(232,180,74,0.12), transparent 55%),
    rgba(0,0,0,0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px 5px 6px;
  cursor: pointer;
  line-height: 1;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.lang-switch .lang-btn:hover {
  background: rgba(232,180,74,0.1);
  color: var(--gold2);
  transform: translateY(-1px);
}
.lang-switch .lang-btn.active {
  background: linear-gradient(135deg, rgba(255,224,154,0.95), rgba(232,180,74,0.85));
  border-color: rgba(232,180,74,0.55);
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(232,180,74,0.28);
}
.lang-switch .flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
  background-size: cover;
  background-position: center;
}
/* Hungary — horizontal red / white / green */
.lang-switch .flag-hu {
  background: linear-gradient(
    to bottom,
    #ce2939 0 33.33%,
    #fff 33.33% 66.66%,
    #477050 66.66% 100%
  );
}
/* UK / EN — Union Jack simplified */
.lang-switch .flag-en {
  background:
    linear-gradient(#fff, #fff) center/100% 18%,
    linear-gradient(#fff, #fff) center/18% 100%,
    linear-gradient(45deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(#c8102e, #c8102e) center/100% 30%,
    linear-gradient(#c8102e, #c8102e) center/30% 100%,
    linear-gradient(45deg, transparent 45%, #c8102e 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #c8102e 45% 55%, transparent 55%),
    #012169;
  background-repeat: no-repeat;
}
/* Slovakia — white / blue / red */
.lang-switch .flag-sk {
  background: linear-gradient(
    to bottom,
    #fff 0 33.33%,
    #0b4ea2 33.33% 66.66%,
    #ee1c25 66.66% 100%
  );
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(232,180,74,0.32);
  color: var(--gold2);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232,180,74,0.16), transparent 55%),
    linear-gradient(165deg, rgba(28,30,40,0.96), rgba(10,12,18,0.99));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-ghost:hover {
  border-color: rgba(232,180,74,0.55);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(232,180,74,0.28), transparent 55%),
    linear-gradient(165deg, rgba(36,32,22,0.98), rgba(10,12,18,0.99));
}
.btn-gold {
  background: linear-gradient(135deg, #ffe09a, var(--gold) 48%, var(--gold-dim));
  color: #1a1206;
  box-shadow: 0 10px 36px rgba(232,180,74,0.4);
}
.btn-outline {
  border-color: rgba(232,180,74,0.32);
  color: var(--gold2);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232,180,74,0.14), transparent 55%),
    linear-gradient(165deg, rgba(28,30,40,0.96), rgba(10,12,18,0.99));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-outline:hover {
  border-color: rgba(232,180,74,0.55);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(232,180,74,0.26), transparent 55%),
    linear-gradient(165deg, rgba(36,32,22,0.98), rgba(10,12,18,0.99));
}
.btn-danger {
  border-color: rgba(240,113,120,0.4);
  color: var(--danger);
  background: rgba(240,113,120,0.08);
}
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.foot {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0 28px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.foot .brand-line {
  color: var(--gold2);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}
.foot .disc {
  max-width: none;
  margin: 0;
  line-height: 1.45;
  font-size: 0.68rem;
  color: #6a6660;
  text-align: justify;
}
@media (max-width: 980px) {
  .nav { flex-wrap: wrap; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.82rem;
    gap: 12px 16px;
    padding-top: 4px;
  }
}

/* —— Hírek —— */
.news-section {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.news-head {
  text-align: center;
  margin-bottom: 28px;
}
.news-head h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--gold2);
  letter-spacing: -0.02em;
}
.news-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.news-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(232,180,74,0.28);
  background: linear-gradient(165deg, rgba(28,30,40,0.98), rgba(10,12,18,0.99));
  margin-bottom: 20px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.news-featured:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.cover {
  background-color: #0a0c12;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.news-featured .cover {
  min-height: 280px;
  position: relative;
  background-size: contain;
}
.news-featured .body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.news-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.news-featured h3 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.news-featured .excerpt {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(165deg, rgba(28,30,40,0.95), rgba(10,12,18,0.98));
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}
.news-card .cover {
  height: 140px;
}
.news-card .body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 {
  font-family: Syne, sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 8px 0 8px;
}
.news-card .excerpt {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  flex: 1;
}
.cover-fallback {
  background:
    radial-gradient(circle at 30% 40%, rgba(232,180,74,0.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(60,80,140,0.4), transparent 45%),
    linear-gradient(145deg, #1a1e2e, #0a0c14);
}
.cover-fallback.makro {
  background:
    radial-gradient(circle at 70% 30%, rgba(61,214,140,0.25), transparent 45%),
    linear-gradient(145deg, #121820, #080a10);
}
.cover-fallback.tanulas {
  background:
    radial-gradient(circle at 40% 60%, rgba(120,140,255,0.3), transparent 50%),
    linear-gradient(145deg, #14141f, #080810);
}
.cover-fallback.desk {
  background:
    radial-gradient(circle at 50% 40%, rgba(232,180,74,0.28), transparent 55%),
    linear-gradient(145deg, #1c1810, #0a0806);
}
@media (max-width: 960px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured .cover { min-height: 200px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* cikk */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 24px 0 60px; }
.article-back { margin-bottom: 22px; }
.article-cover {
  width: 100%;
  min-height: 200px;
  max-height: 420px;
  border-radius: 20px;
  background-color: #0a0c12;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(232,180,74,0.22);
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
}
.article-wrap h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.12;
  margin: 12px 0 18px;
}
.article-body {
  color: #d6d2c8;
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-body p { margin-bottom: 1.1em; }
.article-body .article-fig {
  margin: 1.25em 0 1.4em;
  padding: 0;
}
.article-body .article-fig img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(232, 180, 74, 0.18);
  background: rgba(0, 0, 0, 0.25);
}

/* admin */
.admin-shell { max-width: 980px; margin: 0 auto; padding: 20px 0 60px; }
.admin-login {
  max-width: 380px;
  margin: 60px auto;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(16,18,26,0.9);
}
.admin-login h1 {
  font-family: Syne, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.admin-login p { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: #3b82f6;
}
.field textarea { min-height: 120px; resize: vertical; }
.err { color: var(--danger); font-size: 0.85rem; margin-top: 8px; }
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-tabs button {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
}
.admin-tabs button.active {
  border-color: var(--line);
  color: var(--gold2);
  background: rgba(232,180,74,0.1);
}
.panel {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(16,18,26,0.75);
  padding: 20px;
  margin-bottom: 16px;
}
.panel h2 {
  font-family: Syne, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--gold2);
}
.api-row, .news-row {
  display: grid;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: center;
}
.api-row {
  grid-template-columns: 1fr 1.4fr 1.3fr 0.9fr;
  font-size: 0.88rem;
}
.api-head {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.news-row {
  grid-template-columns: 1fr auto;
}
.news-row .meta { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hidden { display: none !important; }
.ok-msg { color: var(--ok); font-size: 0.85rem; margin-top: 8px; }
@media (max-width: 720px) {
  .api-row { grid-template-columns: 1fr 1fr; }
}
