/* Online Kaszinó Magyarország — white · red · green · gold */
:root {
  --red: #ce1126;
  --red-dark: #9f0f1e;
  --red-light: #e63946;
  --green: #438a52;
  --green-dark: #2f6b3c;
  --green-deeper: #1e4228;
  --green-light: #5aad6a;
  --gold: #d4af37;
  --gold-bright: #e8c547;
  --gold-dark: #b8922a;
  --gold-deeper: #6e5614;
  --gold-ink: #1f1808;
  --white: #ffffff;
  --color-bg: #f4f6f4;
  --color-surface: #ffffff;
  --color-text: #1f2a24;
  --color-text-muted: #4a5a50;
  --color-heading: #142018;
  --color-primary: var(--green-dark);
  --color-primary-dark: var(--green-deeper);
  --color-accent: var(--red);
  --color-accent-hover: var(--red-light);
  --color-highlight: var(--red);
  --color-header: var(--gold-dark);
  --color-footer: var(--gold-deeper);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 4px 24px rgba(110, 86, 20, 0.14);
  --shadow-card: 0 2px 14px rgba(26, 51, 32, 0.07);
  --font: "Outfit", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(206, 17, 38, 0.05), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 20%, rgba(61, 122, 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, h2.heading { font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
h3, h3.heading { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--green-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 #dce5de; padding: 0.6rem 0.8rem; text-align: left; }
th { background: var(--green-dark); color: var(--white); font-weight: 600; }
tr:nth-child(even) { background: #f0f5f1; }
tr:first-child td { background: var(--green-dark); color: var(--white); font-weight: 600; }

.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 — gold with Hungarian tricolor stripe */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  box-shadow: 0 4px 20px rgba(110, 86, 20, 0.28);
}
.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; color: var(--gold-ink);
}
.site-logo img {
  height: 48px; width: 48px; object-fit: contain;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px rgba(31, 24, 8, 0.2);
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__name {
  font-size: 1rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--gold-ink);
}
.site-logo__tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(31, 24, 8, 0.72);
}
@media (max-width: 420px) {
  .site-logo__tag { display: none; }
}

.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.65rem;
  font-size: 0.8rem; font-weight: 600; color: var(--gold-ink);
  border-radius: var(--radius-sm); white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.site-nav a:hover { background: rgba(31, 24, 8, 0.1); color: var(--gold-ink); }
.site-nav a.is-active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(206, 17, 38, 0.35);
}

.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: rgba(31, 24, 8, 0.1); border: none;
  border-radius: var(--radius-sm); cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--gold-ink);
  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: 960px) {
  .site-nav { display: block; flex: 1; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--gold-deeper);
  border-top: 1px solid rgba(255,255,255,0.12);
  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: #f7ecd0;
  font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:hover { color: var(--gold-bright); }

/* Hero */
.page-hero {
  background: linear-gradient(125deg, var(--green-deeper) 0%, var(--green-dark) 45%, #3d6b48 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 8% 85%, rgba(206, 17, 38, 0.28), transparent 42%),
    radial-gradient(circle at 94% 12%, rgba(255, 255, 255, 0.12), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(79, 154, 94, 0.25), transparent 40%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 42%;
  height: 160%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  transform: rotate(12deg);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); text-shadow: 0 1px 3px rgba(0,0,0,0.2); max-width: 18ch; }
.page-hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin-top: 0.85rem;
  line-height: 1.65;
}

/* Layout */
#main-content { flex: 1 0 auto; }
.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 #dce5de;
  min-width: 0; overflow-wrap: break-word;
  animation: rise-in 0.55s ease both;
}
@media (min-width: 640px) { .article { padding: 2rem 2.25rem; } }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TOC */
.toc {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #dce5de;
  position: sticky; top: 5.75rem;
  max-height: calc(100vh - 7.5rem); overflow-y: auto;
  animation: rise-in 0.55s ease 0.08s both;
}
.toc__title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green-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(--green-dark);
  border-left-color: var(--red);
  background: #f0f7f2;
}
.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.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5ebe6;
}
.meta-date strong { color: var(--color-heading); }

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

/* Casino widget */
.widget-section { margin: 1.5rem 0 2rem; }
.widget-wrap {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; background: var(--white);
  border: 1px solid #dce5de;
  box-shadow: var(--shadow-card);
}
.widget-wrap iframe { width: 100%; border: none; display: block; min-height: 200px; }

.top-title {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  margin: 0 0 1rem;
  text-align: left;
}
.top-title span { font-weight: 700; }

/* FAQ */
.faq { margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.faq__card {
  background: #f7faf8;
  border: 1px solid #dce5de;
  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(206, 17, 38, 0.35);
  box-shadow: 0 2px 12px rgba(206, 17, 38, 0.08);
}
.faq__label {
  display: block;
  padding: 1rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-heading);
  position: relative;
  padding-right: 2.5rem;
}
.faq__label::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 700;
}
.faq__input:checked + .faq__label::after { content: "–"; }
.faq__body {
  display: none;
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--color-text-muted);
}
.faq__input:checked ~ .faq__body { display: block; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--gold-deeper) 0%, #3a2d0c 55%, #241c08 100%);
  color: #e8d9a8;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  position: relative;
}
.site-footer::before {
  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%
  );
  position: absolute;
  top: 0; left: 0; right: 0;
}
.site-footer a { color: #f7ecd0; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-subtitle {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1rem;
  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;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  padding: 4px 6px;
}
.footer-badges a { display: inline-flex; }
.footer-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: #c4b07a;
}
.footer-desc b { color: #f7ecd0; }
.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(232, 197, 71, 0.2);
  font-size: 0.82rem;
}

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

.play-btn {
  display: inline-block;
  text-align: center;
  padding: 0.9rem 1.2rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.play-btn:hover { background: var(--red-dark); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
