/* Online Kaszinó Oldalak — red · green · white (HU-inspired) */
:root {
  --red: #dc2626;
  --red-mid: #e11d48;
  --red-dark: #9f1239;
  --red-darker: #4c0519;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #22c55e;
  --white: #ffffff;
  --color-bg: #faf7f5;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-heading: #0c0a09;
  --color-primary: var(--red);
  --color-primary-dark: var(--red-dark);
  --color-accent: var(--green);
  --color-accent-hover: var(--green-light);
  --color-highlight: var(--red);
  --color-header: var(--red-dark);
  --color-footer: var(--red-darker);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 4px 24px rgba(159, 18, 57, 0.12);
  --shadow-card: 0 2px 14px rgba(76, 5, 25, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(220, 38, 38, 0.06), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 10%, rgba(22, 163, 74, 0.07), transparent 45%),
    var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4, .heading {
  line-height: 1.3;
  color: var(--color-heading);
  margin: 1.4em 0 0.55em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 2.5rem); margin-top: 0; }
h2, .heading { font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--red-dark); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { border: 1px solid #e7e5e4; padding: 0.6rem 0.8rem; text-align: left; }
th { background: var(--red-dark); color: var(--white); font-weight: 600; }
tr:nth-child(even) { background: #f5f5f4; }
.table--alt tr:first-child td,
.table--alt tr:first-child th {
  background: var(--red-dark);
  color: var(--white);
  font-weight: 600;
}
.table--alt tr:first-child td strong,
.table--alt tr:first-child th strong,
.table--alt tr:first-child td p,
.table--alt tr:first-child th p { color: inherit; margin: 0; }
.table td p, .table th p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2rem, 1140px); margin-inline: auto; }

/* Header — red with HU tricolor stripe */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--red-mid) 0%, var(--red-dark) 100%);
  box-shadow: 0 4px 20px rgba(76, 5, 25, 0.25);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--red) 0%, var(--red) 33.33%,
    var(--white) 33.33%, var(--white) 66.66%,
    var(--green) 66.66%, var(--green) 100%
  );
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 0;
}
.site-logo {
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0; text-decoration: none;
}
.site-logo img {
  height: 44px; width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}
.site-logo__text {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.site-logo__text span { color: #bbf7d0; }

.site-nav { display: none; }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem;
  list-style: none; margin: 0; padding: 0;
  justify-content: flex-end;
}
.site-nav a {
  display: block; padding: 0.45rem 0.75rem;
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  border-radius: var(--radius-sm); white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: rgba(255,255,255,0.14); color: var(--white); }
.site-nav a.is-active {
  background: var(--green);
  color: var(--white);
}

.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: rgba(255,255,255,0.12); border: none;
  border-radius: var(--radius-sm); cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .site-nav { display: block; flex: 1; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--red-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 0 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block; padding: 0.7rem 0; color: var(--white);
  font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover { color: var(--green-light); }

/* Hero */
.page-hero {
  background: linear-gradient(125deg, var(--red-darker) 0%, var(--red-dark) 45%, var(--red) 100%);
  color: var(--white);
  padding: 2.5rem 0 2.75rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 88%, rgba(22, 163, 74, 0.28), transparent 42%),
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.1), transparent 36%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,0.03) 18px,
      rgba(255,255,255,0.03) 19px
    );
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  max-width: 18ch;
}
.page-hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0.85rem 0 0;
  line-height: 1.65;
}

/* Layout */
.page-layout { display: grid; gap: 2rem; padding: 2rem 0 3rem; }
@media (min-width: 1024px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; }
  .page-layout--reverse { grid-template-columns: 270px minmax(0, 1fr); }
  .page-layout--reverse .toc { order: -1; }
}

.article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #e7e5e4;
  min-width: 0; overflow-wrap: break-word;
}
@media (min-width: 640px) { .article { padding: 2rem 2.25rem; } }

/* TOC */
.toc {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #e7e5e4;
  position: sticky; top: 5.75rem;
  max-height: calc(100vh - 7.5rem); overflow-y: auto;
}
.toc__title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--red-dark); margin: 0 0 0.75rem;
}
.toc nav ul { list-style: none; margin: 0; padding: 0; }
.toc nav a {
  display: block; padding: 0.38rem 0 0.38rem 0.8rem;
  font-size: 0.88rem; color: var(--color-text);
  border-left: 3px solid transparent; line-height: 1.4;
  border-radius: 0 6px 6px 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toc nav a:hover,
.toc nav a.is-active {
  color: var(--red-dark);
  border-left-color: var(--green);
  background: #f0fdf4;
}
.toc nav .toc-h3 a { padding-left: 1.4rem; font-size: 0.82rem; color: var(--color-text-muted); }
@media (max-width: 1023px) { .toc { position: static; max-height: none; } }

/* Meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e7e5e4;
}
.meta-date strong { color: var(--color-heading); font-weight: 700; }

/* Content blocks */
.info-blocks { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .info-blocks { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.info-blocks__item {
  background: var(--white);
  border: 1px solid #e7e5e4;
  border-top: 3px solid var(--green);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}
.info-blocks__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.info-blocks__head img { width: 38px; height: 38px; flex-shrink: 0; }

.check-list ul { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li {
  background: #fafaf9;
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.table {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 1rem 0; border-radius: var(--radius-sm);
  border: 1px solid #e7e5e4;
}
.table table { margin: 0; }

/* Casino widget */
.widget-section { margin: 1.25rem 0 1.75rem; }
.widget-section .top-title {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin: 0 0 1rem;
  text-align: left;
}
.widget-section .top-title span { font-weight: 700; }
.widget-wrap {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; background: var(--white);
  border: 1px solid #e7e5e4;
  box-shadow: var(--shadow-card);
}
.widget-wrap iframe { width: 100%; border: none; display: block; min-height: 200px; }

/* FAQ */
.faq { margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.faq__card {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq__card:has(.faq__input:checked) {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: var(--shadow-card);
}
.faq__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
  cursor: pointer;
  margin: 0;
}
.faq__label::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.faq__input:checked + .faq__label::after {
  content: "–";
  background: var(--green);
  color: var(--white);
  transform: none;
}
.faq__body {
  display: none;
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.faq__input:checked ~ .faq__body { display: block; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--red-darker) 0%, #1c0a0e 100%);
  color: #d6d3d1; padding: 2.5rem 0 1.5rem; margin-top: auto;
}
.site-footer a { color: #e7e5e4; }
.site-footer a:hover { color: var(--green-light); }
.footer-subtitle {
  color: var(--green-light);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}
.footer-badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin: 0 0 1.5rem;
}
.footer-badges img { height: 40px; width: auto; object-fit: contain; }
.footer-badges a { display: inline-flex; }
.footer-desc {
  font-size: 0.84rem; line-height: 1.6; margin: 0 0 1rem; color: #a8a29e;
}
.footer-desc b { color: #e7e5e4; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  list-style: none; margin: 0; padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem;
}

.btn {
  display: inline-block; padding: 0.8rem 1.6rem;
  background: var(--green); color: var(--white);
  font-weight: 700; border-radius: var(--radius-md);
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); }

.intro-text { font-size: 1.05rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* Motion */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-hero h1 { animation: hero-in 0.55s ease-out both; }
.page-hero__lead { animation: hero-in 0.55s ease-out 0.12s both; }
.article { animation: hero-in 0.5s ease-out 0.08s both; }

@media (prefers-reduced-motion: reduce) {
  .page-hero h1,
  .page-hero__lead,
  .article { animation: none; }
}
