/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Color Palette - Dark, Elegant, Casino-inspired */
  --color-bg: #050608; /* Main background - near black */
  --color-bg-elevated: #101217; /* Elevated surfaces (cards, sections) */
  --color-bg-soft: #181b22; /* Softer dark area backgrounds */

  --color-text: #f6f7fb; /* Primary text */
  --color-text-muted: #a7acb8; /* Muted text */
  --color-border-subtle: #252836; /* Subtle borders */

  --color-primary: #16b67f; /* Hungarian-friendly, modern casino green */
  --color-primary-soft: rgba(22, 182, 127, 0.16);
  --color-primary-dark: #0f8a60;

  --color-accent-gold: #f4c770; /* Gold accent for premium feel */
  --color-accent-burgundy: #7a1231; /* Deep burgundy highlight */

  --color-success: #2ecc71;
  --color-warning: #f1c40f;
  --color-danger: #e74c3c;

  --color-neutral-50: #0d0f15;
  --color-neutral-100: #181b22;
  --color-neutral-200: #252836;
  --color-neutral-300: #35384a;
  --color-neutral-400: #4d5165;
  --color-neutral-500: #6e7389;
  --color-neutral-600: #9095aa;
  --color-neutral-700: #bcc1d0;
  --color-neutral-800: #e1e4f0;
  --color-neutral-900: #f7f8ff;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --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: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows - subtle glossy casino look */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.7);
  --shadow-focus: 0 0 0 2px rgba(9, 9, 11, 0.8),
    0 0 0 4px rgba(22, 182, 127, 0.75);

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

  /* Layout */
  --container-max-width: 1200px;
  --container-padding-x: 1.25rem;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

picture {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

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

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

legend {
  padding: 0;
}

textarea {
  resize: vertical;
}

/* Remove tap highlight on mobile for a smoother feel */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

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

/* Heading sizes tuned for Hungarian hero headlines and section titles */

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

h2 {
  font-size: clamp(1.75rem, 3vw, 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-normal);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

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

strong,
 b {
  font-weight: 600;
}

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

::selection {
  background-color: rgba(22, 182, 127, 0.35);
  color: var(--color-neutral-900);
}

/* Links - subtle default, pronounced on hover */

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

a:hover {
  color: var(--color-accent-gold);
  text-shadow: 0 0 12px rgba(244, 199, 112, 0.4);
}

a:active {
  opacity: 0.8;
}

/* ========================================================================== 
   Accessibility & Focus Styles
   ========================================================================== */

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Focus utility for elements that cannot reasonably take box-shadow */

.focus-visible-outline:focus-visible {
  outline: 2px solid rgba(22, 182, 127, 0.9);
  outline-offset: 3px;
}

/* Respect reduced motion preferences */

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

/* ========================================================================== 
   Utilities
   ========================================================================== */

/* Layout: Container */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

/* Section spacing helpers for multi-page layout */

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

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

.section--hero {
  padding-top: clamp(4rem, 10vh, 6rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

/* Flex Utilities */

.flex {
  display: flex;
}

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

.flex-row {
  flex-direction: row;
}

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

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.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 Utilities */

.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: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Text alignment & color helpers */

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

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

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

.text-accent-gold {
  color: var(--color-accent-gold);
}

.text-accent-green {
  color: var(--color-primary);
}

/* Background helpers */

.bg-elevated {
  background-color: var(--color-bg-elevated);
}

.bg-soft {
  background-color: var(--color-bg-soft);
}

/* Spacing utilities (margin / padding blocks) */

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

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

.mb-6 {
  margin-bottom: var(--space-6);
}

.mt-4 {
  margin-top: var(--space-4);
}

.pt-4 {
  padding-top: var(--space-4);
}

.pb-4 {
  padding-bottom: var(--space-4);
}

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

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

.p-4 {
  padding: var(--space-4);
}

/* Display helpers */

.hidden {
  display: none !important;
}

.block {
  display: block;
}

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

/* Screen reader only utility */

.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;
}

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

/* Buttons - primary CTAs for Hungarian hero, product, and contact actions */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: radial-gradient(circle at 10% 0%, #2af598 0%, #16b67f 45%, #0f8a60 100%);
  color: var(--color-neutral-900);
  box-shadow: 0 14px 40px rgba(22, 182, 127, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(22, 182, 127, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(22, 182, 127, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(244, 199, 112, 0.5);
  box-shadow: 0 0 0 1px rgba(244, 199, 112, 0.2);
}

.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(244, 199, 112, 0.16), transparent);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(22, 182, 127, 0.7);
}

.btn-outline:hover {
  background: rgba(22, 182, 127, 0.08);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: var(--font-size-base);
}

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

.btn:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* Form Inputs */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg-soft);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-neutral-500);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: rgba(22, 182, 127, 0.9);
  box-shadow: 0 0 0 1px rgba(22, 182, 127, 0.4),
    0 18px 35px rgba(0, 0, 0, 0.65);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Basic label styling */

.label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-neutral-800);
}

/* Cards - used for product tiles, testimonials, FAQ items, etc. */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(22, 182, 127, 0.06), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 199, 112, 0.09), transparent 52%),
    var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.card--ghost {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.45));
}

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

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

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

.card-body {
  font-size: var(--font-size-sm);
}

.card-footer {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Hover lift for interactive product cards */

.card--hover {
  transition: transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  cursor: pointer;
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 199, 112, 0.45);
  box-shadow: var(--shadow-medium);
}

/* Image wrappers for product & gallery visuals */

.image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at top, #22252f 0, #050608 60%);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.image-frame--hover img {
  transform-origin: center;
}

.image-frame--hover:hover img {
  transform: scale(1.05);
}

/* Hero tagline / chip quality badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 199, 112, 0.5);
  background: radial-gradient(circle at 0 0, rgba(244, 199, 112, 0.24), transparent 70%),
    rgba(5, 6, 8, 0.9);
  color: var(--color-accent-gold);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

/* Simple tag for product chips categories (e.g., póker zsetonok, prémium szettek) */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: rgba(22, 182, 127, 0.1);
  color: var(--color-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Glossy separator line (use in sections to mirror casino table edges) */

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 199, 112, 0.5), transparent);
  opacity: 0.7;
}

/* Subtle glow halo behind important elements (CTAs, key icons) */

.glow-halo {
  position: relative;
  z-index: 1;
}

.glow-halo::before {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(22, 182, 127, 0.5), transparent 60%);
  opacity: 0.4;
  filter: blur(20px);
  z-index: -1;
}

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