/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Colors - refined, modern, atmospheric */
  --color-background: #080a0e;
  --color-surface: #11141b;
  --color-surface-alt: #181c25;
  --color-text: #f7f7f9;
  --color-text-muted: #a1a5b5;
  --color-border-subtle: #2a2f3d;

  /* Brand & accent tones (slightly premium, poker / restaurant feel) */
  --color-primary: #d4a45a;     /* warm gold for key actions */
  --color-primary-soft: rgba(212, 164, 90, 0.1);
  --color-primary-hover: #e0b76e;

  --color-success: #4caf50;
  --color-warning: #ffb74d;
  --color-danger:  #ef5350;

  /* Neutral grays for subtle UI accents */
  --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-display: "Playfair Display", "Times New Roman", 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 */

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

  /* 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-pill: 999px;

  /* Shadows (soft, atmospheric) */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.65);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

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

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

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

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

/* Remove default list styles */
ul, ol {
  list-style: none;
}

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

/* Headings: modern + slightly premium for main titles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif-display);
  font-weight: 500;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

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

h2 {
  font-size: clamp(1.875rem, 2.4vw, 2.25rem);
  margin-bottom: var(--space-3);
}

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

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

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

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Links: understated, refined */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-fast);
}

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

a:active {
  opacity: 0.85;
}

/* ==================================================================
   Accessibility & Focus
   ================================================================== */
:focus {
  outline: none;
}

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

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

/* ==================================================================
   Layout Utilities
   ================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

/* Spacing utility helpers (y-axis) */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

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

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

/* Flexbox utilities */
.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-column {
  display: flex;
  flex-direction: column;
}

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

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

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

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

/* Text alignment helpers */
.text-center {
  text-align: center;
}

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

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

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

/* Buttons: subtle glow, premium gold accent */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  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);
}

.btn-primary {
  background: linear-gradient(135deg, #e0b76e, #c58d3b);
  color: #1b1207 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(212, 164, 90, 0.7);
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  border-radius: var(--radius-pill);
}

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

/* Inputs & form controls */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: #0c0f16;
  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);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* Cards: for sections like Étlap, Poker info, Vélemények */
.card {
  background: radial-gradient(circle at top left, rgba(212, 164, 90, 0.12), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

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

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

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

/* Tag / pill: for labels like "Kezdőlap", "Poker Est" */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

.tag--accent {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Simple badge-like count (for table availability, etc.) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ==================================================================
   Media & Imagery
   ================================================================== */

.figure-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.figure-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(212, 164, 90, 0.28), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.figure-overlay:hover img {
  transform: scale(1.06);
  filter: brightness(1.02);
}

/* ==================================================================
   Helpers specific to the restaurant + poker atmosphere
   ================================================================== */

/* Dimmed section background for atmospheric blocks */
.section-ambient {
  background: radial-gradient(circle at top, rgba(212, 164, 90, 0.14), transparent 55%),
              radial-gradient(circle at bottom, rgba(0, 0, 0, 0.65), #05060a);
}

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

/* Highlight text for key details like nyitvatartás, dress code */
.text-highlight {
  color: var(--color-primary);
}

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

/* Simple responsive table wrapper (for poker schedule, etc.) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* Generic table styling */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

th, td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
}

tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.02);
}

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