/* legjobbmagyaronlinekaszinooldalak.com — midnight hub theme */
:root {
  --bg: #08070d;
  --surface: #12101c;
  --surface-2: #1c1829;
  --surface-3: #252036;
  --text: #eceaf4;
  --text-dim: #9b96ad;
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.14);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.12);
  --line: rgba(255, 255, 255, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --max: 1140px;
  --nav-h: 76px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.65rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(139, 92, 246, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(249, 115, 22, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: #fdba74; }

.container {
  width: min(100% - 2.8rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header — floating pill */
.site-header {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0;
  z-index: 300;
  pointer-events: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: rgba(18, 16, 28, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 36px; width: auto; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--orange-soft);
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* Hero — split */
.hero {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 1.4rem;
}

.hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 1.08;
  margin: 0 0 1.6rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--orange), #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.75rem;
  color: var(--text-dim);
  margin: 0 0 2rem;
  max-width: 540px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card span { font-size: 1.3rem; color: var(--text-dim); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  background: linear-gradient(135deg, var(--orange), #fb923c);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

/* Jump nav — horizontal chips */
.jump-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1.2rem 0 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.jump-nav::-webkit-scrollbar { display: none; }

.jump-nav a {
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.jump-nav a:hover { color: var(--orange); border-color: rgba(249, 115, 22, 0.35); }

/* Sections */
.section {
  padding: 4.8rem 0;
  border-top: 1px solid var(--line);
}

.section--alt { background: var(--surface); }

.section__label {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin: 0 0 0.8rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin: 0 0 1.6rem;
  letter-spacing: -0.02em;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 2.4rem 0 1rem;
  color: var(--text);
}

.section h4 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 1.6rem 0 0.6rem;
  color: var(--text-dim);
}

.section p { margin: 0 0 1.3rem; color: var(--text-dim); }
.section p strong { color: var(--text); }

.section ul, .section ol {
  margin: 0 0 1.4rem;
  padding-left: 2rem;
  color: var(--text-dim);
}

.section li { margin-bottom: 0.5rem; }

/* Prose block */
.prose { max-width: 780px; }
.prose--wide { max-width: none; }

/* Author strip */
.author-strip {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 1.8rem;
  margin: 2rem 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}

.author-strip__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}

.author-strip__name { font-weight: 700; font-size: 1.5rem; }
.author-strip__role { font-size: 1.3rem; color: var(--orange); }
.author-strip__meta { font-size: 1.2rem; color: var(--text-dim); margin: 0.3rem 0 0; }

/* Widget */
.widget-panel {
  margin: 2rem 0;
  padding: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.widget-hint {
  display: none;
  width: 100%;
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: var(--orange);
  color: #111;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
}

.widget-panel iframe {
  width: 100%;
  border: none;
  display: block;
  min-height: 400px;
}

.callout {
  padding: 1.4rem 1.8rem;
  background: var(--violet-soft);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.6rem 0;
}

.callout p { margin: 0; }

.content-figure {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.content-figure img {
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: var(--bg);
}

.content-figure--photo img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  padding: 0.35rem;
  box-sizing: content-box;
}

.content-figure--wide {
  width: 100%;
  max-width: 640px;
  margin: 1.6rem auto;
}

.content-figure--wide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.content-figure--wide figcaption {
  max-width: none;
  padding: 0.65rem 0.9rem;
  font-size: 1.2rem;
}

.content-figure--icon img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  margin: 0.4rem auto;
  padding: 0;
}

.content-figure figcaption {
  padding: 0.35rem 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  text-align: center;
  max-width: 140px;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.45rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.data-table thead {
  background: linear-gradient(90deg, var(--orange), #ea580c);
  color: #111;
}

.data-table th,
.data-table td {
  padding: 1.1rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr { background: var(--surface); }
.data-table tbody tr:nth-child(even) { background: var(--surface-2); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.bento-card {
  padding: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.bento-card:hover { border-color: rgba(249, 115, 22, 0.35); }

.bento-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  filter: brightness(1.2);
}

.bento-card h3 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.bento-card p { margin: 0; font-size: 1.45rem; }

.bento-card--wide { grid-column: span 2; }

/* Hub links */
.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.hub-link {
  display: block;
  padding: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.hub-link:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  color: var(--text);
}

.hub-link__tag {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.hub-link h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hub-link p { margin: 0; font-size: 1.4rem; color: var(--text-dim); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.team-card {
  padding: 2.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.2rem;
}

.team-card__avatar--zs { background: linear-gradient(135deg, var(--orange), #fbbf24); }
.team-card__avatar--bb { background: linear-gradient(135deg, var(--violet), #c4b5fd); }

.team-card h3 { font-size: 1.8rem; margin: 0 0 0.3rem; }
.team-card__role { font-size: 1.3rem; color: var(--orange); margin: 0 0 1rem; font-weight: 600; }
.team-card p { margin: 0; font-size: 1.45rem; }

/* FAQ */
.faq { margin-top: 1.6rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  padding: 1.3rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary { color: var(--orange); }

.faq p {
  padding: 0 1.6rem 1.3rem;
  margin: 0;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0; counter-reset: s; }

.steps li {
  counter-increment: s;
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.8rem;
  margin-bottom: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 1.4rem;
  top: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--orange);
  color: #111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.steps h3 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.steps p { margin: 0; }

/* Page hero (inner pages) */
.page-head {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 0 0 1rem;
}

.page-head p { margin: 0; color: var(--text-dim); font-size: 1.75rem; }

/* Profile */
.profile-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.profile-hero__photo {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid var(--orange);
}

.profile-hero__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.profile-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--orange);
}

.profile-stats span { font-size: 1.2rem; color: var(--text-dim); }

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.contact-box {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-box__label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.contact-box__value { font-size: 1.7rem; font-weight: 600; margin: 0; }

/* Forms */
.form-grid { display: grid; gap: 1rem; max-width: 520px; }

.form-grid label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dim);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1.5rem;
}

.form-grid textarea { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  background: var(--surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 0.8rem; }
.footer-text { font-size: 1.4rem; color: var(--text-dim); margin: 0; line-height: 1.6; }

.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 1.4rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--orange); }

.footer-contact p { font-size: 1.4rem; color: var(--text-dim); margin: 0 0 0.5rem; }

.responsible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 1.35rem;
  color: var(--text-dim);
}

.footer-copy {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-dim);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 400;
  max-width: 640px;
  margin-inline: auto;
  padding: 1.4rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.cookie-banner p { margin: 0; flex: 1; font-size: 1.35rem; color: var(--text-dim); min-width: 200px; }
.cookie-banner__actions { display: flex; gap: 0.6rem; }

/* 404 */
.error-wrap {
  text-align: center;
  padding: calc(var(--nav-h) + 6rem) 0 8rem;
}

.error-wrap__num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 12rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--orange), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.error-wrap p { font-size: 1.8rem; color: var(--text-dim); margin: 1.2rem 0 2rem; }

/* Mobile */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-hero__photo { margin: 0 auto; }
  .contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: calc(var(--nav-h) + 0.5rem);
    left: 1.4rem;
    right: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul { flex-direction: column; }
  .widget-hint { display: block; }
  .widget-panel iframe { pointer-events: none; }
  .widget-panel.is-active iframe { pointer-events: auto; }
}

@media (max-width: 480px) {
  html { font-size: 58%; }
  .hero-stats { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
  .content-figure--photo img { width: 64px; height: 64px; max-width: 64px; max-height: 64px; }
  .content-figure--wide { max-width: 100%; }
  .content-figure--icon img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; }
}
