/* Az eredeti proba4.html palettája és formanyelve a Modernist tipográfiájával */
:root {
  --color-bg: #f4f7f6;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-ink: #1a252f;
  --color-accent: #0055a5;
  --color-accent-100: #eef4fa;
  --color-accent-200: #d6e6f4;
  --color-accent-300: #a9cbe9;
  --color-accent-400: #4dabf7;
  --color-accent-500: #0055a5;
  --color-accent-600: #004484;
  --color-accent-700: #003366;
  --color-accent-800: #002347;
  --color-accent-900: #001a33;
  --color-go: #28a745;
  --color-go-dark: #218838;
  --color-neutral-100: #f4f7f6;
  --color-neutral-200: #eeeeee;
  --color-neutral-300: #cccccc;
  --color-neutral-400: #bdc3c7;
  --color-neutral-500: #999999;
  --color-neutral-600: #777777;
  --color-neutral-700: #666666;
  --color-neutral-800: #444444;
  --color-neutral-900: #222222;
  --color-divider: #e2e8ea;
  --radius-card: 8px;
  --radius-btn: 5px;
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}
body { margin: 0; background: #f4f7f6; }
input, textarea, select { box-sizing: border-box; max-width: 100%; }
a { color: #0055a5; }
a:hover { color: #003366; }
:focus-visible { outline: 2px solid #0055a5; outline-offset: 2px; }
#termekek, #ajanlat, #jo-tudni, #kapcsolat { scroll-margin-top: 84px; }
[id^="cikk-"] { scroll-margin-top: 96px; }

/* A terv style-hover jelölései. !important kell, mert a hatás beágyazott style="…" értékeket ír felül. */
.nav-link:hover { color: #0055a5 !important; }
.btn-primary:hover { background: #003366 !important; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.24) !important; }
.btn-secondary:hover { background: #ccc !important; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover) !important; }

/* Űrlap-visszajelzés */
.message-bar { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-btn); font-size: 0.9rem; }
.message-success { background: #eaf6ed; border-left: 4px solid var(--color-go); color: var(--color-go-dark); }
.message-error { background: #fdeceb; border-left: 4px solid #c0392b; color: #c0392b; }
.message-info { background: var(--color-accent-100); border-left: 4px solid var(--color-accent); color: var(--color-accent-700); }
.field-error { display: block; margin-top: 5px; font-size: 0.82rem; font-weight: 600; color: #c0392b; }
.field-invalid { border-color: #c0392b !important; }
.btn-submit:disabled { background: var(--color-neutral-300); cursor: not-allowed; }
.btn-loading::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: middle;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.hidden-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-hint { display: block; margin-top: 5px; font-size: 0.82rem; color: #777; }

/* Robotok elől takart e-mail cím */
.email-decoy { display: none; }
.email-link { cursor: pointer; text-decoration: none; }

@media (max-width: 1060px) {
  /* Tabletig egy hasáb: a cikkek egymás alatt, teljes szélességben */
  [data-article-grid] { grid-template-columns: minmax(0, 1fr) !important; }
}
/* Tablet és mobil: a fejléc nem ragad, hogy ne vegye el a magasságot */
@media (max-width: 760px) {
  [data-sticky-nav] { position: static !important; }
  #termekek, #ajanlat, #jo-tudni, #kapcsolat { scroll-margin-top: 12px; }
  [id^="cikk-"] { scroll-margin-top: 12px; }
  [data-footer-grid] { grid-template-columns: minmax(0, 1fr) !important; }
}
/* Tablettől három egyenlő impresszum-sáv, hogy egy blokk ne törjön a másik kettő alá */
@media (min-width: 761px) {
  [data-footer-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
/* Tablet finomítások */
@media (min-width: 761px) and (max-width: 1060px) {
  /* Két hasáb: a 3. cikk mellé a „További tudnivalók" doboz kerül */
  [data-articles] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* „Nem vagyok robot" widget */
.pow-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.pow-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
}
.pow-checkbox:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pow-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #b8c2c6;
  border-radius: 3px;
  background: #fff;
  transition: border-color 0.2s;
}
.pow-checkbox:hover .pow-box { border-color: var(--color-accent); }
.pow-status {
  min-height: 1.1em;
  font-size: 0.82rem;
  color: #777;
}

.pow-running .pow-checkbox { cursor: progress; }
.pow-running .pow-box {
  border-color: var(--color-accent-300);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: pow-spin 0.8s linear infinite;
}
@keyframes pow-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pow-running .pow-box { animation: pow-pulse 1.2s ease-in-out infinite; }
  @keyframes pow-pulse { 50% { opacity: 0.35; } }
  .btn-loading::before { animation-duration: 1.6s; }
}

.pow-done .pow-checkbox { cursor: default; }
.pow-done .pow-box {
  position: relative;
  border-color: #28a745;
  background: #28a745;
}
.pow-done .pow-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pow-done .pow-status { color: #1e7e34; font-weight: 600; }

@media (max-width: 760px) {
  .pow-widget { flex-wrap: wrap; }
}

/* Adatkezelési tájékoztató modal */
.privacy-modal {
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 0;
  border: none;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: #555;
  font-family: var(--font-body);
  line-height: 1.6;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.privacy-modal::backdrop { background: rgba(0, 20, 40, 0.62); }
.privacy-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 16px 28px;
  border-bottom: 1px solid var(--color-divider);
}
.privacy-modal-header h2 {
  flex: 1;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #003366;
  line-height: 1.25;
}
.privacy-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-btn);
  background: #fff;
  color: #003366;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.privacy-modal-close:hover { background: var(--color-accent-100); }
.privacy-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 24px 28px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.privacy-modal-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--color-divider);
  font-size: 0.9rem;
  font-weight: 600;
}
@media (max-width: 760px) {
  .privacy-modal { width: calc(100% - 16px); max-height: calc(100vh - 24px); }
  .privacy-modal-header { padding: 16px 12px 14px 18px; }
  .privacy-modal-body { max-height: calc(100vh - 190px); padding: 18px; }
  .privacy-modal-footer { padding: 14px 18px 16px; }
}

.embed-launch { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #1a252f center / cover no-repeat; }
.embed-launch-button { position: absolute; top: 50%; left: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 12px; background: rgba(0, 51, 102, 0.85); transition: background-color 0.2s; }
.embed-launch-button::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -7px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.embed-launch:hover .embed-launch-button, .embed-launch:focus-visible .embed-launch-button { background: #0055a5; }
.embed-launch:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.embed-launch-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; font-size: 0.8rem; color: #ecf0f1; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }

@media (max-width: 760px) {
  .contact-game { order: 2; }
}

@media (max-width: 760px) {
  .header-cta { flex: 1 1 100%; text-align: center; padding: 14px 18px !important; font-size: 1.05rem; }
}
@media (max-width: 760px) {
  .mobile-full { display: block !important; width: 100% !important; align-self: stretch !important; text-align: center; box-sizing: border-box; }
}
.form-locked input:not([type="checkbox"]), .form-locked textarea { background: #f4f7f6; color: #666; }
.form-locked [data-cart-change] { pointer-events: none; opacity: 0.5; }
