/* Prímszámok design tokens ---------------------------------------------- */
:root {
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #eef0f3;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);

  --text: #14161a;
  --text-muted: #50535c;
  --text-dim: #82858e;

  /* text/links/icons need AA contrast on a light page */
  --accent: #96630c;
  --accent-hover: #7a4f09;
  /* buttons, badges, filled bars: brighter, paired with dark ink text */
  --accent-strong: #e7ab3c;
  --accent-strong-hover: #f4bd58;
  --accent-ink: #1c1608;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);

  --max-width: 1180px;
  --header-height: 68px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.casino-popup-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent-strong);
  color: var(--accent-ink) !important;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-strong-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text) !important;
}

.btn--ghost:hover {
  background: var(--surface-hover);
}

/* Site header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 8px 20px -16px rgba(15, 23, 42, 0.25);
}

.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong), #f0c877, var(--accent-strong));
}

.site-header__bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand__word {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.primary-nav > a,
.nav-dropdown__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.15rem;
  border: 0;
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.primary-nav > a::after,
.nav-dropdown__trigger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.15rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent-strong);
  transition: right 0.2s ease;
}

.primary-nav > a:hover,
.nav-dropdown__trigger:hover,
.nav-dropdown.is-open .nav-dropdown__trigger {
  color: var(--text);
}

.primary-nav > a:hover::after,
.nav-dropdown__trigger:hover::after,
.nav-dropdown.is-open .nav-dropdown__trigger::after {
  right: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 120;
  display: none;
  min-width: 17rem;
  max-width: min(22rem, 70vw);
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface, #fff);
  box-shadow: 0 12px 32px rgba(28, 22, 8, 0.12);
}

.nav-dropdown.is-open .nav-dropdown__panel {
  display: block;
}

.nav-dropdown__panel a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: calc(var(--radius-sm) - 2px);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--text);
  white-space: normal;
}

.nav-dropdown__panel a:hover {
  background: color-mix(in srgb, var(--accent-strong) 16%, transparent);
  color: var(--text);
}

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
  }
}

.burger-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .burger-button {
    display: none;
  }
}

.burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Mobile sidebar -------------------------------------------------------- */
.sidebar--backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.sidebar--panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 340px);
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 5rem 1.25rem 2rem;
  overflow-y: auto;
}

.nav-list {
  margin-bottom: 1.75rem;
}

.nav-list__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.nav-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.nav-accordion__trigger .nav-list__title {
  color: var(--text-dim);
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  color: var(--text-muted);
}

.site-footer__top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.site-footer__tagline {
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__disclaimer {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Article layout ----------------------------------------------------------- */
.page-main {
  padding: 2rem 0 4rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: stretch;
  }
}

.article__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  margin-bottom: 1rem;
}

.article__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.article__meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.article__meta-name {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.article__share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
}

.article__share:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.article-body {
  font-size: 1.04rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.article-body h2 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.9rem;
}

.article-body h3 {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body strong {
  color: var(--text);
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

.article-body blockquote p {
  margin: 0;
}

/* Sidebar widgets ----------------------------------------------------------- */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .sidebar-stack {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    max-height: calc(100vh - var(--header-height) - 3rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.widget__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.widget-form__intro {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.widget-form {
  display: flex;
  flex-direction: column;
}

.widget-form__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.widget-form__input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.widget-form__input::placeholder {
  color: var(--text-dim);
}

.widget-form__input:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
  border-color: var(--accent-strong);
}

.widget-form__submit {
  width: 100%;
}

.widget-form__note {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.widget-form__success {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(150, 99, 12, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

.bonus-banner {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(160deg, var(--bg-elevated), var(--surface));
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.bonus-banner + .bonus-banner {
  margin-top: 0.85rem;
}

.bonus-banner:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.bonus-banner__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.bonus-banner__logo {
  width: 56px;
  height: 40px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
}

.bonus-banner__name {
  font-weight: 800;
  color: var(--text);
  font-size: 0.98rem;
}

.bonus-banner__rating {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.bonus-banner__offer {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.bonus-banner__cta {
  display: block;
  text-align: center;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.85rem;
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.widget-list li a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

.widget-list li a:hover {
  color: var(--accent);
}

.widget--notice {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.widget--notice strong {
  color: var(--text-muted);
}

/* Related articles grid ------------------------------------------------- */
.related {
  margin: 3.5rem 0 1rem;
}

.related__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem 1.3rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.related__card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.related__card-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(150, 99, 12, 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.related__card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.related__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: auto;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-dim);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.related__card:hover .related__card-arrow {
  background: var(--accent-strong);
  color: var(--accent-ink);
  transform: translateX(3px);
}

/* Tag chip ------------------------------------------------------------------ */
.tag {
  display: inline-block;
  text-decoration: none;
}
