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

:root {
  /* Colors - Dark, premium, social-club atmosphere */
  --color-bg: #05060a;                /* main background: near-black */
  --color-bg-elevated: #111321;       /* elevated panels */
  --color-bg-soft: #181b2a;           /* soft sections */
  --color-text: #f5f5f7;              /* primary text */
  --color-text-muted: #a5a8b5;        /* muted text */

  /* Accent colors inspired by poker / lounge style */
  --color-primary: #d4af37;           /* gold accent */
  --color-primary-soft: rgba(212, 175, 55, 0.16);
  --color-primary-strong: #f1cd53;

  --color-success: #3fbf7f;           /* for confirmations */
  --color-warning: #ffb347;           /* subtle amber */
  --color-danger: #e85a5a;            /* errors */

  /* Burgundy & navy accents for borders / tags / chips */
  --color-burgundy: #7a1a33;
  --color-navy: #141c3b;

  /* Neutral grays for borders, dividers */
  --gray-50: #f7f7fb;
  --gray-100: #e3e4eb;
  --gray-200: #c7c9d5;
  --gray-300: #a1a4b5;
  --gray-400: #7a7f95;
  --gray-500: #555b73;
  --gray-600: #3b4054;
  --gray-700: #272b3a;
  --gray-800: #181b26;
  --gray-900: #0c0e14;

  /* Borders & outlines */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);
  --focus-ring: 0 0 0 2px rgba(212, 175, 55, 0.7);

  /* 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-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px, comfortable reading */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 1.875rem; /* 30px */
  --font-size-3xl: 2.25rem;  /* 36px */
  --font-size-4xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 56px;
  --space-13: 64px;
  --space-14: 80px;
  --space-15: 96px;

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - soft, directional light like lounge lighting */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-soft-lg: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-inset-glow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 30px rgba(212, 175, 55, 0.08);

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

@media (min-width: 768px) {
  :root {
    --font-size-base: 1rem;
    --font-size-md: 1.1rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.25rem;
  }
}

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

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

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

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ol,
ul,
li,
dl,
dt,
dd {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

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

img {
  height: auto;
}

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

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

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus {
  outline: none;
}

/* 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-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top, #14172b 0, #05060a 50%, #000000 100%);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 { font-size: var(--font-size-4xl); line-height: var(--line-height-tight); margin-bottom: var(--space-4); }
 h2 { font-size: var(--font-size-3xl); line-height: var(--line-height-tight); margin-bottom: var(--space-4); }
 h3 { font-size: var(--font-size-2xl); line-height: var(--line-height-snug); margin-bottom: var(--space-3); }
 h4 { font-size: var(--font-size-xl); line-height: var(--line-height-snug); margin-bottom: var(--space-3); }
 h5 { font-size: var(--font-size-lg); line-height: var(--line-height-snug); margin-bottom: var(--space-2); }
 h6 { font-size: var(--font-size-base); line-height: var(--line-height-snug); margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.08em; }

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

strong {
  font-weight: 600;
  color: #ffffff;
}

em {
  font-style: italic;
}

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

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

a:active {
  opacity: 0.8;
}

/* Body text helpers for Hungarian copy blocks */
.lead {
  font-size: var(--font-size-lg);
  color: #ffffff;
  line-height: 1.7;
}

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

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

/* ==========================================================================
   Accessibility / Focus
   ========================================================================== */

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

[tabindex="-1"]:focus {
  outline: none !important;
}

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

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

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

/* Layout container for main content sections */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-4);
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.section {
  padding-block: var(--space-11);
}

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

.section--accent {
  background: radial-gradient(circle at top left, rgba(122, 26, 51, 0.25) 0, transparent 55%),
              radial-gradient(circle at bottom right, rgba(20, 28, 59, 0.4) 0, transparent 60%),
              var(--color-bg-elevated);
}

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

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

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

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

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

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

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

.gap-xs { gap: var(--space-2); }
.gap-sm { gap: var(--space-3); }
.gap-md { gap: var(--space-4); }
.gap-lg { gap: var(--space-6); }
.gap-xl { gap: var(--space-8); }

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-5);
}

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Alignment & spacing utilities for quick layout tuning */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-5); }
.mt-lg { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-5); }
.mb-lg { margin-bottom: var(--space-8); }

.pt-md { padding-top: var(--space-5); }
.pb-md { padding-bottom: var(--space-5); }

/* Pill labels for event tags (e.g., "póker est", "céges események") */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(120deg, rgba(122, 26, 51, 0.7), rgba(20, 28, 59, 0.7));
  color: #ffffff;
}

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

/* Buttons - prominent CTAs for booking/contact (Hungarian labels) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  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);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: radial-gradient(circle at 10% 0, #f1cd53 0, #d4af37 35%, #8f7420 100%);
  color: #1b1405;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.btn-outline {
  background: rgba(8, 9, 16, 0.9);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-inset-glow);
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(122, 26, 51, 0.7), rgba(20, 28, 59, 0.7));
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: var(--font-size-xs);
}

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

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

.btn-icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
}

/* Inputs & forms - consistent and trustworthy look */

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

.label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--gray-100);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(9, 10, 18, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-400);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
  outline: none;
}

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

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.form-help {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--gray-300);
}

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

/* Cards - for event highlights, poker evenings, testimonials */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.12) 0, transparent 55%),
              radial-gradient(circle at bottom, rgba(122, 26, 51, 0.3) 0, transparent 60%),
              rgba(10, 11, 20, 0.95);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card--soft {
  background: rgba(10, 11, 20, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--gray-300);
}

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

/* Simple glowing border variation for premium callouts */
.card--glow {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 22px 45px rgba(0, 0, 0, 0.9);
}

/* Hero overlay / poker table style panel */
.hero-panel {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at 10% 0, rgba(212, 175, 55, 0.22) 0, transparent 50%),
              radial-gradient(circle at 90% 100%, rgba(122, 26, 51, 0.35) 0, transparent 60%),
              rgba(9, 11, 20, 0.9);
  box-shadow: var(--shadow-soft-lg);
  backdrop-filter: blur(20px);
}

/* Badge for non-gambling clarification */
.badge-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(63, 191, 127, 0.14);
  border: 1px solid rgba(63, 191, 127, 0.6);
  font-size: var(--font-size-xs);
  color: #e6fff3;
}

/* ==========================================================================
   Navigation (basic shell - can be extended per-page)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.8), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-size: var(--font-size-sm);
  color: var(--gray-100);
  position: relative;
  padding-block: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #7a1a33);
  transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

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

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

  .navbar-menu {
    display: flex;
  }
}

/* ==========================================================================
   Media / Imagery helpers (gallery, hero images)
   ========================================================================== */

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-soft);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.15) 0, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(122, 26, 51, 0.2) 0, transparent 55%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle hover lift for interactive cards/media */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   Helper: subtle gradient text for premium headings
   ========================================================================== */

.gradient-gold {
  background: linear-gradient(120deg, #f1cd53, #d4af37, #f5e6a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-burgundy {
  background: linear-gradient(135deg, #ffb347, #d4af37, #7a1a33);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
