/* =========================================
   Midnight Circle Hub - Base Styles
   Modern, premium, black / neon / glossy / elegant
   ============================================== */

/* =========================================
   Variables
   ========================================== */
:root {
  /* Brand Colors */
  --color-bg: #050509; /* deep cinematic black */
  --color-bg-elevated: #0b0c12; /* graphite / card surface */
  --color-bg-overlay: rgba(5, 5, 9, 0.85);

  --color-text: #f5f5f7;
  --color-text-muted: #a0a3b2;
  --color-border-subtle: #252637;

  --color-primary: #28a0ff; /* electric blue */
  --color-primary-soft: rgba(40, 160, 255, 0.12);
  --color-primary-strong: #4fc3ff;

  --color-accent-gold: #f6d68a; /* champagne gold */
  --color-accent-gold-soft: rgba(246, 214, 138, 0.12);

  --color-success: #34c759;
  --color-warning: #ffd60a;
  --color-danger: #ff4b5c;

  /* Neutral Grays (on dark) */
  --gray-50: #f8fafc;
  --gray-100: #e5e7eb;
  --gray-200: #d1d5db;
  --gray-300: #9ca3af;
  --gray-400: #6b7280;
  --gray-500: #4b5563;
  --gray-600: #374151;
  --gray-700: #1f2937;
  --gray-800: #111827;
  --gray-900: #020617;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing Scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.75rem;    /* 12px, card corners */
  --radius-lg: 1.25rem;    /* 20px */
  --radius-pill: 999px;

  /* Shadows (glossy / neon) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.9);
  --shadow-glow-blue: 0 0 18px rgba(40, 160, 255, 0.6);
  --shadow-glow-gold: 0 0 18px rgba(246, 214, 138, 0.55);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease;

  /* Layout */
  --layout-max-width: 1120px;
  --layout-max-width-wide: 1320px;
  --layout-page-padding-x: var(--space-4);

  /* Z-index */
  --z-header: 50;
  --z-overlay: 60;
  --z-modal: 70;
}

/* Large screens: slightly wider gutters */
@media (min-width: 1024px) {
  :root {
    --layout-page-padding-x: var(--space-8);
  }
}

/* =========================================
   Reset / Normalize
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

a:focus {
  outline: none;
}

img,
svg,
video,
canvas,
audio,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

button[disabled],
input[disabled] {
  cursor: not-allowed;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   Base Styles
   ========================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top, #141623 0, #050509 55%, #000 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  /* subtle poker / casino neon vignette */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(40, 160, 255, 0.18) 0, transparent 55%),
    radial-gradient(circle at 86% 82%, rgba(246, 214, 138, 0.12) 0, transparent 55%);
  mix-blend-mode: screen;
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 2rem + 1vw, 3rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.875rem, 1.6rem + 0.6vw, 2.25rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

a {
  color: var(--color-primary-strong);
  text-decoration: none;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-accent-gold);
  text-shadow: 0 0 10px rgba(40, 160, 255, 0.6);
}

a:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

code,
pre {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-6) 0;
}

/* =========================================
   Accessibility
   ========================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   Layout Utilities
   ========================================== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-page-padding-x);
  padding-right: var(--layout-page-padding-x);
  max-width: var(--layout-max-width);
}

.container--wide {
  max-width: var(--layout-max-width-wide);
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section--dense {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 767.98px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Width helpers */
.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Spacing utilities (vertical margins) */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* =========================================
   Components
   ========================================== */

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn-primary {
  color: #050509 !important;
  background: radial-gradient(circle at 10% 0, #7dd3ff 0, #28a0ff 40%, #0055ff 100%);
  border-color: rgba(79, 195, 255, 0.9);
  box-shadow: var(--shadow-soft), var(--shadow-glow-blue);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong), var(--shadow-glow-blue);
  background: radial-gradient(circle at 0 0, #a5e3ff 0, #4fc3ff 35%, #1d4ed8 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(40, 160, 255, 0.1), rgba(246, 214, 138, 0.07));
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.btn-outline:hover {
  border-color: var(--color-primary-strong);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(40, 160, 255, 0.7);
}

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

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.8);
}

.btn-gold {
  color: #050509 !important;
  background: radial-gradient(circle at 0 0, #fff7db 0, #f6d68a 38%, #f5b200 100%);
  border-color: rgba(246, 214, 138, 0.9);
  box-shadow: var(--shadow-soft), var(--shadow-glow-gold);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong), var(--shadow-glow-gold);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

/* Inputs / Form Controls */
.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: radial-gradient(circle at 0 0, rgba(40, 160, 255, 0.08) 0, rgba(5, 5, 9, 0.98) 42%, rgba(5, 5, 9, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow:
    0 0 0 1px rgba(40, 160, 255, 0.8),
    0 0 0 4px rgba(40, 160, 255, 0.16);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-helper {
  margin-top: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Cards - glossy glass casino slabs */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)) border-box,
    radial-gradient(circle at top left, rgba(40, 160, 255, 0.32), transparent 55%),
    radial-gradient(circle at bottom right, rgba(246, 214, 138, 0.22), transparent 60%),
    linear-gradient(145deg, #050509, #0b0c12);
  background-clip: padding-box, border-box, border-box, padding-box;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  /* glossy corner highlight like a casino chip */
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 65%);
  opacity: 0.6;
  transform: rotate(18deg);
  pointer-events: none;
}

.card--subtle {
  background:
    radial-gradient(circle at top left, rgba(40, 160, 255, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(246, 214, 138, 0.12), transparent 65%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border-color: rgba(51, 65, 85, 0.9);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Tag / chip label (for game types, event themes) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--blue {
  border-color: rgba(40, 160, 255, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-primary-strong);
}

.badge--gold {
  border-color: rgba(246, 214, 138, 0.75);
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-accent-gold);
}

/* Image wrapper for cinematic event photography */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #020617, #0b0c12);
  box-shadow: var(--shadow-soft);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 9, 0.8), transparent 45%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.media-frame:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

/* Stat / highlight pill (for SEO-ready key points like "Nem valódi pénzes szerencsejáték") */
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.highlight-pill--safe {
  border-color: rgba(52, 199, 89, 0.75);
  color: #bbf7d0;
}

/* FAQ accordion base shell (behavior to be added via JS) */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: radial-gradient(circle at top left, rgba(40, 160, 255, 0.1), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.99));
  padding: var(--space-4);
}

.faq-question {
  font-size: var(--font-size-lg);
  cursor: pointer;
}

.faq-answer {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

/* =========================================
   Thematic helpers (poker / casino motif)
   ========================================== */

.suit-heart,
.suit-diamond {
  color: var(--color-danger);
}

.suit-club,
.suit-spade {
  color: var(--color-accent-gold);
}

.neon-ring {
  position: relative;
}

.neon-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(40, 160, 255, 0.6);
  box-shadow: 0 0 18px rgba(40, 160, 255, 0.55);
  opacity: 0.4;
  pointer-events: none;
}

.chip-outline {
  border-radius: 999px;
  border: 2px dashed rgba(246, 214, 138, 0.6);
}

/* =========================================
   Header / Navigation shell (minimal)
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 5, 9, 0.95), rgba(5, 5, 9, 0.78));
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-logo span {
  color: var(--color-accent-gold);
}

.nav-list {
  display: none;
  gap: var(--space-4);
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  padding-bottom: 0.2rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary-strong), var(--color-accent-gold));
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
}

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

  .nav-toggle {
    display: none;
  }
}

/* =========================================
   Footer shell (minimal)
   ========================================== */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top, rgba(40, 160, 255, 0.08), transparent 55%),
    linear-gradient(to bottom, #020617, #050509);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  font-size: var(--font-size-sm);
}

.site-footer-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  color: var(--color-text-muted);
}

/* =========================================
   Helper classes for SEO / content blocks
   ========================================== */

.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

.kicker {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-2);
}

.subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

.list-dash {
  list-style: none;
  padding-left: 0;
}

.list-dash li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}

.list-dash li::before {
  content: "\2022";
  position: absolute;
  left: 0.2rem;
  top: 0;
  color: var(--color-primary-strong);
}

.badge-safe-play {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 46, 22, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.8);
  color: #bbf7d0;
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================
   End of base.css
   ========================================== */
