/* ========================================================================
   Buda Gastro Hub – Base Styles
   ======================================================================== */

/* ========================================================================
   1. CSS Variables (Design Tokens)
   ======================================================================== */
:root {
  /* Color Palette */
  --color-bg: #050608; /* deep, immersive background */
  --color-surface: #101218; /* card / surface */
  --color-surface-soft: #181b22;
  --color-text: #f6f6f7;
  --color-text-muted: #a1a5b3;

  --color-primary: #d4af37; /* warm gold for premium feel */
  --color-primary-soft: rgba(212, 175, 55, 0.12);
  --color-primary-strong: #f0c94a;

  --color-success: #35c48b;
  --color-warning: #f5b046;
  --color-danger: #ff5c5c;

  --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: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 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 (px) */
  --space-0: 0;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

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

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-outline: 0 0 0 2px rgba(212, 175, 55, 0.65);

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

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

@media (min-width: 1280px) {
  :root {
    --container-max-width: 1320px;
  }
}

/* ========================================================================
   2. 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[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

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

/* Better text rendering */
body,
input,
button,
textarea,
select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================================
   3. Base Styles
   ======================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
}

main {
  display: block;
}

/* Headings */

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

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

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

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

strong {
  font-weight: 600;
}

/* Links */

a {
  cursor: pointer;
  transition: color var(--transition-normal),
              opacity var(--transition-fast),
              text-shadow var(--transition-normal);
}

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

a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
  border-radius: var(--radius-xs);
}

/* Lists */
ul, ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-16);
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-24) 0;
}

/* ========================================================================
   4. Accessibility & Motion
   ======================================================================== */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

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

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

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

/* ========================================================================
   5. Layout Utilities
   ======================================================================== */

.container {
  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 {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

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

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

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

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

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

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

/* Grid utilities */
.grid {
  display: grid;
}

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

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

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

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

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

.m-auto {
  margin: auto;
}

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-32 { margin-bottom: var(--space-32); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ========================================================================
   6. Components
   ======================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b68b2f 45%, #f0dc8b 100%);
  color: #151515;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              filter var(--transition-fast),
              background var(--transition-normal);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline), var(--shadow-soft);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.7);
  color: var(--color-primary-strong);
  box-shadow: none;
}

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

.btn--outline {
  background: rgba(15, 17, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--color-text);
}

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

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

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

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

/* Form Controls */
.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(8, 9, 12, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-fast);
}

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

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

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

label {
  display: block;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.form-row {
  margin-bottom: var(--space-20);
}

.form-helper {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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

/* Cards (for menu highlights, poker events, testimonials, etc.) */
.card {
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card--soft {
  background: var(--color-surface-soft);
  box-shadow: none;
}

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

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

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

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

/* Tag / Pill (for tournament types, seasonal menus, offers) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.tag--accent {
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--color-primary-strong);
  background-color: rgba(212, 175, 55, 0.12);
}

/* Media wrapper for immersive gallery */
.media-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.media-shadow {
  box-shadow: var(--shadow-strong);
}

/* Tables (for tournament calendar / opening hours) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

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

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

.table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Badges for status (pl. "Ma", "Új", "Teltház") */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.badge--success {
  background-color: rgba(53, 196, 139, 0.18);
  color: var(--color-success);
}

.badge--warning {
  background-color: rgba(245, 176, 70, 0.18);
  color: var(--color-warning);
}

.badge--danger {
  background-color: rgba(255, 92, 92, 0.18);
  color: var(--color-danger);
}

/* Hero overlay helper (for immersive Főoldal / Galéria banners) */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.5), #050608 80%);
  z-index: -1;
}

/* Chips-like accent (poker themed) */
.chip-ring {
  position: relative;
}

.chip-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px dashed rgba(212, 175, 55, 0.55);
  pointer-events: none;
}

/* ========================================================================
   7. Helper classes for text tone
   ======================================================================== */

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

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

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

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

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

/* ========================================================================
   8. Scrollbar (subtle, modern) – WebKit only
   ======================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050608;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}
