/* ========================================================================== 
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-bg-body: #050608; /* deep black */
  --color-bg-elevated: #101218; /* charcoal */
  --color-bg-muted: #161923;
  --color-bg-accent: #0d412d; /* dark emerald */
  --color-bg-accent-soft: #145a3b; /* softer emerald */

  --color-text: #e3e3e3; /* light gray / soft cream */
  --color-text-muted: #b6b6b6;
  --color-text-soft: #d8d3c4; /* cream tint */

  --color-primary: #10b981; /* emerald primary */
  --color-primary-soft: rgba(16, 185, 129, 0.12);
  --color-primary-strong: #059669;

  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-danger: #ef4444;

  --color-gold: #b38a45; /* subtle dark gold */
  --color-gold-soft: rgba(179, 138, 69, 0.25);

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, 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-md: 1.0625rem; /* 17px */
  --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 */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --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-7: 1.75rem;  /* 28px */
  --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.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;

  /* Shadows (subtle, atmospheric) */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-inner-glow: 0 0 0 1px rgba(16, 185, 129, 0.18), 0 0 34px rgba(16, 185, 129, 0.18);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1100px;
  --container-padding-x: var(--space-4);

  /* Focus outline */
  --focus-ring-color: rgba(16, 185, 129, 0.9);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
}

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

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

body,
 h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 p,
 figure,
 blockquote,
 dl,
 dd {
  margin: 0;
}

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  border: none;
  padding: 0;
  background: none;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

textarea {
  resize: vertical;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================================================== 
   Base
   ========================================================================== */
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-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: #f5f5f5;
}

h1 {
  font-size: clamp(2.25rem, 2.4vw + 1.8rem, 3rem);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.75rem, 2vw + 1.4rem, 2.25rem);
}

h3 {
  font-size: clamp(1.5rem, 1.5vw + 1.2rem, 1.9rem);
}

h4 {
  font-size: 1.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-soft);
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

a {
  position: relative;
  transition: color var(--transition-base),
    opacity var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

a:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Muted separator for sections (optional helper) */
hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin: var(--space-6) 0;
}

/* ========================================================================== 
   Accessibility & Motion
   ========================================================================== */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

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

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

/* 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);
}

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

/* 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;
}

/* Simple spacing utilities for layout tuning */
.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); }
.mb-8 { margin-bottom: var(--space-8); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }

/* Text helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }

/* Thematic utility: soft poker table glow background */
.bg-felt {
  background: radial-gradient(circle at 20% 20%, #166534 0, #052e16 40%, #020617 100%);
}

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

/* Buttons */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-strong);
  --btn-color: #0b1112;
  --btn-border-color: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border-color);
  background: linear-gradient(135deg, var(--btn-bg) 0%, #16a34a 100%);
  color: var(--btn-color) !important;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.35);
}

.btn:hover {
  background: linear-gradient(135deg, var(--btn-bg-hover) 0%, #16a34a 100%);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.55);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

.btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 3px;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(15, 23, 42, 0.9);
  --btn-color: var(--color-text);
  --btn-border-color: rgba(148, 163, 184, 0.4);

  background: radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.22) 0, transparent 48%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.95) 0, transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.btn--ghost:hover {
  background: radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.26) 0, transparent 48%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 1) 0, transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(209, 213, 219, 0.7);
}

.btn--gold {
  --btn-bg: #b38a45;
  --btn-bg-hover: #c49b52;
  --btn-color: #050608;

  background: linear-gradient(135deg, #b38a45 0%, #d9b269 50%, #b38a45 100%);
  box-shadow: 0 14px 30px rgba(179, 138, 69, 0.45);
}

.btn--gold:hover {
  background: linear-gradient(135deg, #c49b52 0%, #e2c276 50%, #c49b52 100%);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Inputs */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background-color: 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-color var(--transition-base),
    transform var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.9), 0 0 18px rgba(16, 185, 129, 0.5);
  background-color: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

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

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

/* Cards (e.g., poker evenings, menu sections, reviews) */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.16) 0, transparent 50%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.28);
  overflow: hidden;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), rgba(179, 138, 69, 0.5));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  mix-blend-mode: screen;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(16, 185, 129, 0.8);
}

.card:hover::before {
  opacity: 0.18;
}

.card--felt {
  background: radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.3) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #052e16 0, #020617 52%);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(16, 185, 129, 0.35);
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  color: #f9fafb;
  margin-bottom: var(--space-1);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-gold);
}

/* Tag / pill (e.g. "Offline póker", "Privát esték") */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.5);
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--color-text-soft);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag--gold {
  border-color: rgba(179, 138, 69, 0.7);
  background-color: rgba(24, 20, 12, 0.9);
  color: #fef3c7;
}

/* Badges for suitability messaging (e.g., "Csak offline", "Nem online szerencsejáték") */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.badge--outline {
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-text-muted);
}

.badge--offline {
  border: 1px solid rgba(16, 185, 129, 0.7);
  background-color: rgba(5, 46, 22, 0.85);
  color: #bbf7d0;
}

.badge--disclaimer {
  border: 1px solid rgba(239, 68, 68, 0.7);
  background-color: rgba(127, 29, 29, 0.8);
  color: #fee2e2;
}

/* Navigation skeleton (for headers) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.82));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-link {
  position: relative;
  padding-bottom: 0.3rem;
  color: var(--color-text-muted);
}

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

.nav-link:hover {
  color: #f9fafb;
}

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

/* Hero overlay style (for atmospheric restaurant / lounge visuals) */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(16, 185, 129, 0.38) 0, transparent 52%),
    radial-gradient(circle at 80% 100%, rgba(179, 138, 69, 0.6) 0, transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.8;
  pointer-events: none;
}

.hero-overlay > * {
  position: relative;
  z-index: 1;
}

/* Disclaimer block specifically for emphasizing offline poker */
.disclaimer {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 250, 252, 0.08);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.06) 0, transparent 45%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(24, 24, 27, 0.98));
  padding: var(--space-4);
  color: var(--color-text-soft);
  font-size: var(--font-size-sm);
}

.disclaimer-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fecaca;
  margin-bottom: var(--space-2);
}

/* FAQ accordion basics (for GYIK) */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: rgba(15, 23, 42, 0.96);
  padding: var(--space-4);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: var(--font-size-md);
}

.faq-answer {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* Review stars (for Vélemények) */
.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: #fbbf24;
  font-size: 0.9rem;
}

/* Table-like layout for poker nights details */
.poker-table-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 0, rgba(16, 185, 129, 0.32) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #052e16 0, #020617 52%);
  border: 1px solid rgba(16, 185, 129, 0.6);
}

.poker-table-info-item-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(209, 213, 219, 0.8);
  margin-bottom: 0.25rem;
}

.poker-table-info-item-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #ecfdf5;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.24) 0, transparent 45%),
    linear-gradient(to bottom, #020617, #020617 40%, #000 100%);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  font-size: var(--font-size-sm);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.footer-link:hover {
  color: #e5e7eb;
}

@media (max-width: 640px) {
  .navbar-inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .nav-links {
    gap: 1.2rem;
    font-size: 0.7rem;
  }
}
