/* Legjobb Magyar Online Kaszinó — green · red · white (HU) */
:root {
  --green: #16a34a;
  --green-mid: #15803d;
  --green-dark: #14532d;
  --green-darker: #052e16;
  --green-light: #22c55e;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;
  --white: #ffffff;
  --color-bg: #f4f7f5;
  --color-surface: #ffffff;
  --color-text: #1c2b22;
  --color-text-muted: #4a6354;
  --color-heading: #0a1f12;
  --color-primary: var(--green-mid);
  --color-primary-dark: var(--green-dark);
  --color-accent: var(--green);
  --color-accent-hover: var(--green-light);
  --color-highlight: var(--red);
  --color-header: var(--green-dark);
  --color-footer: var(--green-darker);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 4px 24px rgba(20, 83, 45, 0.12);
  --shadow-card: 0 2px 14px rgba(20, 83, 45, 0.08);
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-width: 0;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-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.55rem); margin-top: 0; }
h2, .heading { font-size: clamp(1.3rem, 2.6vw, 1.65rem); color: var(--green-dark); }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--green-mid); }
h4 { font-size: 1.05rem; color: var(--color-heading); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
strong { font-weight: 700; }

.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 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 4px 20px rgba(5, 46, 22, 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.65rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);
}
.site-logo img {
  height: 44px;
  width: auto;
  max-width: min(72px, 18vw);
  object-fit: contain;
}
.site-logo__text {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  max-width: 14rem;
}
.site-logo__text span {
  display: block;
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.85;
}

.site-nav { display: none; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  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(--red);
  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.14);
  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: 960px) {
  .site-nav { display: block; flex: 1; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--green-darker);
  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); }
.mobile-nav a.is-active { color: #fecaca; }

/* —— Hero —— */
.page-hero {
  background: linear-gradient(125deg, var(--green-darker) 0%, var(--green-dark) 45%, var(--green-mid) 100%);
  color: var(--white);
  padding: 2.4rem 0 2.75rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 88%, rgba(220, 38, 38, 0.28), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.35), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 55%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}
.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.05rem;
  color: #e8f5ec;
  max-width: 720px;
  margin: 0.9rem 0 0;
  line-height: 1.65;
  opacity: 0.95;
}

/* —— 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 #d8e8de;
  min-width: 0;
  overflow-wrap: break-word;
}
@media (min-width: 640px) { .article { padding: 2rem 2.25rem; } }

.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 #e2efe6;
}
.meta-date strong { color: var(--green-dark); }

/* —— TOC —— */
.toc {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #d8e8de;
  position: sticky;
  top: 5.75rem;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
}
.toc__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  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: #f0fdf4;
}
@media (max-width: 1023px) {
  .toc { position: static; max-height: none; }
}

/* —— Tables —— */
.table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid #d8e8de;
}
.table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}
.table th,
.table td,
.table--alt table th,
.table--alt table td {
  border: 1px solid #d8e8de;
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.table th,
.table--alt table th,
.table table tr:first-child td {
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
}
.table table tr:first-child td p,
.table table tr:first-child td strong {
  color: var(--white);
  margin: 0;
}
.table tr:nth-child(even) { background: #f3faf5; }
.table td p { margin: 0; }

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

.top-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* —— FAQ —— */
.faq { margin: 1.5rem 0 0; }
.faq__card {
  padding: 0;
  background: var(--white);
  border: 1px solid #d8e8de;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq__card:nth-child(n+2) { margin-top: 0.75rem; }
.faq__card:hover { border-color: var(--green); box-shadow: var(--shadow-card); }
.faq__label {
  position: relative;
  display: block;
  padding: 1rem 3.25rem 1rem 1.15rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-heading);
  transition: color 0.2s;
}
.faq__label:hover { color: var(--red); }
.faq__label::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.65rem;
  height: 0.65rem;
  border-top: 2px solid var(--green-mid);
  border-right: 2px solid var(--green-mid);
  transform: translateY(-60%) rotate(135deg);
  transition: transform 0.2s, border-color 0.2s;
}
.faq__input:checked + .faq__label { color: var(--red); }
.faq__input:checked + .faq__label::before {
  border-color: var(--red);
  transform: translateY(-30%) rotate(-45deg);
}
.faq__body {
  max-height: 0;
  margin: 0;
  padding: 0 1.15rem;
  opacity: 0;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: max-height 0.25s, opacity 0.2s, padding 0.2s;
}
.faq__input:checked ~ .faq__body {
  max-height: 40rem;
  padding: 0 1.15rem 1.15rem;
  opacity: 1;
}

/* —— Footer —— */
.site-footer {
  background: linear-gradient(180deg, var(--green-darker) 0%, #021a0c 100%);
  color: #b7d4c2;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.site-footer a { color: #e8f5ec; }
.site-footer a:hover { color: #fecaca; }
.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;
  filter: brightness(1.05);
}
.footer-badges a { display: inline-flex; }
.footer-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  color: #8fb39a;
}
.footer-desc b { color: #e8f5ec; }
.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;
}

/* —— Misc content polish —— */
.article > p:first-of-type,
.intro-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.article ul li,
.article ol li {
  margin-bottom: 0.35rem;
}

.article h2.heading {
  scroll-margin-top: 6rem;
  padding-top: 0.25rem;
}

/* Soft entrance */
.page-hero h1,
.page-hero__lead {
  animation: fadeUp 0.7s ease both;
}
.page-hero__lead { animation-delay: 0.12s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.article {
  animation: fadeIn 0.55s ease 0.1s both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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