/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-background: #f9fafb;
  --color-surface: #ffffff;
  --color-surface-muted: #f3f4f6;

  --color-text: #111827;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;

  /* Brand & accents (modern luxury, pastel turquoise & pale blue) */
  --color-primary: #37b3b8; /* pastel turquoise */
  --color-primary-soft: rgba(55, 179, 184, 0.14);
  --color-primary-strong: #0891b2;

  --color-accent: #9ac6ff; /* pale blue details */

  /* Sand / beige neutrals for blocks */
  --color-sand: #f5eee4;
  --color-sand-soft: #f9f2e8;

  /* Status colors */
  --color-success: #16a34a;
  --color-warning: #eab308;
  --color-danger: #dc2626;

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

  /* Glassmorphism helpers */
  --glass-background: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  --glass-blur: 18px;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "SF Mono", ui-monospace, 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.2;
  --line-height-snug: 1.35;
  --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 */

  /* Radii */
  --radius-xs: 0.25rem;  /* 4px */
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-2xl: 2rem;    /* 32px - large rounded cards */
  --radius-full: 9999px;

  /* Shadows (soft premium look) */
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 55px rgba(15, 23, 42, 0.16);

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

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

  /* Z-indices */
  --z-header: 40;
  --z-overlay: 50;
  --z-modal: 60;
  --z-toast: 70;
}

/* 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 {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

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

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

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

textarea {
  resize: vertical;
}

/* Remove default link underline while keeping accessibility */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background: radial-gradient(circle at top, #ffffff 0, #f6fbff 36%, var(--color-background) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-gray-900);
}

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

h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  margin-bottom: var(--space-2);
}

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

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

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

strong {
  font-weight: 600;
}

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

code, pre {
  font-family: var(--font-mono);
}

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

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

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

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

/* Layout containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.container--wide {
  max-width: 1280px;
}

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

.section--alt {
  background: linear-gradient(135deg, var(--color-sand-soft), #fdfdfd);
}

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

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

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

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

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

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

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

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

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

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

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

/* Spacing utilities (common) */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.pt-6 { padding-top: var(--space-6); }
.pb-6 { padding-bottom: var(--space-6); }

/* Elevation & surfaces */
.surface-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

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

/* Glassmorphism utility (for hero cards, info blocks, etc.) */
.glass-card {
  background: var(--glass-background);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Sticky CTA (e.g. Asztalfoglalás) */
.sticky-cta {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-overlay);
}

/* Media aspect ratios for hero, gallery, etc. */
.aspect-hero {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.aspect-hero > * {
  position: absolute;
  inset: 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.5rem;
  padding-block: 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  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);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.4);
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.65);
}

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

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

/* Inputs & form controls */

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 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: var(--color-text-muted);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(55, 179, 184, 0.5), 0 14px 30px rgba(15, 23, 42, 0.12);
}

.field-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text-soft);
}

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

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

.input--error,
.textarea--error,
.select--error {
  border-color: var(--color-danger);
}

/* Cards (for séf ajánlatai, events, poker info, etc.) */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card--glass {
  composes: glass-card;
}

.card--lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.card__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* Hero slider helper */
.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero-overlay-soft {
  background: radial-gradient(circle at top, rgba(249, 250, 251, 0.15), rgba(0, 0, 0, 0.72));
}

/* Badges / tags (e.g. offline poker, gasztronómiai élmény) */
.badge {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.75rem;
  padding-block: 0.25rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--color-text-muted);
}

.badge--primary {
  border-color: rgba(55, 179, 184, 0.4);
  background-color: rgba(55, 179, 184, 0.08);
  color: var(--color-primary-strong);
}

/* Pills for filters (e.g. galéria, étlap categories) */
.pill {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.9rem;
  padding-block: 0.35rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-soft);
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.pill--active {
  border-color: rgba(55, 179, 184, 0.5);
  background: rgba(55, 179, 184, 0.1);
  color: var(--color-primary-strong);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* Footer base styles */
footer {
  background: #020617;
  color: rgba(226, 232, 240, 0.9);
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
}

footer a {
  color: inherit;
}

footer a:hover {
  color: #e5e7eb;
}

.footer-disclaimer {
  font-size: var(--font-size-xs);
  color: rgba(148, 163, 184, 0.9);
  margin-top: var(--space-4);
  max-width: 60rem;
}

/* ==========================================================================
   Motion Preferences
   ========================================================================== */

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