/*
======================================================================
  Adrian Łubkowski QAZ Base Styles (base.css)
  modern, vibrant, energetic, social, stylish, welcoming
======================================================================*/

/*
======================================================================
  1. CSS Variables
======================================================================*/
:root {
  /* Color Palette - dark elegant base, vibrant accents */
  --color-background: #05060a;           /* overall page background: deep night */
  --color-surface: #101320;              /* cards / sections */
  --color-surface-soft: #181c2a;         /* softer panels */

  --color-text: #f5f5f7;                 /* main text on dark */
  --color-text-muted: #a5a8b8;           /* secondary text */

  --color-primary: #ff3366;              /* energetic highlight (poker/chips/neon) */
  --color-primary-soft: rgba(255, 51, 102, 0.16);

  --color-success: #3dd68c;              /* wins / confirmations */
  --color-warning: #ffb020;              /* upcoming matches / caution */
  --color-danger: #ff4b4b;               /* errors / cancellations */

  /* Neutral grays for borders / subtle UI on dark backgrounds */
  --gray-50: #f9fafb;
  --gray-100: #f2f4f8;
  --gray-200: #e1e4f0;
  --gray-300: #c3c7da;
  --gray-400: #a0a4ba;
  --gray-500: #7a7f94;
  --gray-600: #54586b;
  --gray-700: #3a3e50;
  --gray-800: #222637;
  --gray-900: #111320;

  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  /* Overlays / effects */
  --color-overlay: rgba(0, 0, 0, 0.65);
  --color-focus-ring: rgba(255, 51, 102, 0.55);

  /* 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-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.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px in 4px steps) */
  --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-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - glow for energetic nightlife ambience */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow-primary: 0 0 25px rgba(255, 51, 102, 0.6);

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms linear;
    --transition-base: 0.01ms linear;
    --transition-slow: 0.01ms linear;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*
======================================================================
  2. 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-left: 0;
}

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

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

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

textarea {
  resize: vertical;
}

/* Remove default link underlines, managed in base styles */
a {
  text-decoration: none;
  color: inherit;
}

/*
======================================================================
  3. Base Typography & Layout
======================================================================*/
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);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
}

/* Headings - strong, modern hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 2.4vw + 1rem, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 1.8vw + 0.9rem, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

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

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

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

strong {
  font-weight: 600;
}

/* Links - vibrant accent for interactive elements */
a {
  color: var(--color-primary);
  transition: color var(--transition-base),
              opacity var(--transition-fast),
              text-shadow var(--transition-base);
}

a:hover {
  color: #ff4f7b;
  text-shadow: 0 0 12px rgba(255, 79, 123, 0.6);
}

a:active {
  opacity: 0.85;
}

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

/* Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-6) 0;
}

/*
======================================================================
  4. Accessibility & Focus Management
======================================================================*/
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

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

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

/*
======================================================================
  5. Utilities
======================================================================*/
/* Container for centered page sections */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-4);
  max-width: 1200px;
}

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

/* Simple layout 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-column {
  display: flex;
  flex-direction: column;
}

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

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

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

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

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

.badge--live {
  background: rgba(255, 51, 102, 0.18);
  color: var(--color-primary);
}

.badge--success {
  background: rgba(61, 214, 140, 0.16);
  color: var(--color-success);
}

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

/***** Spacing utilities (vertical rhythm for sections) *****/
.section {
  padding-block: var(--space-10);
}

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

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

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

/*
======================================================================
  6. Components
======================================================================*/
/* Buttons - primary CTAs for foglalás, események, akciók */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-color: var(--color-text);
  --btn-border: 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);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 500;
  font-size: var(--font-size-sm);
  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:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

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

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

.btn--primary {
  --btn-bg: linear-gradient(135deg, #ff3366, #ff784e);
  --btn-color: #ffffff;
  --btn-border: transparent;
  box-shadow: var(--shadow-glow-primary);
}

.btn--primary:hover {
  box-shadow: 0 0 35px rgba(255, 51, 102, 0.8);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: rgba(255, 255, 255, 0.28);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--color-primary);
  --btn-border: rgba(255, 51, 102, 0.7);
}

.btn--block {
  width: 100%;
}

/* Inputs & form controls - reservations, event booking */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(8, 10, 18, 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);
}

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

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(255, 51, 102, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 51, 102, 0.6);
  background-color: #101320;
}

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

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

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

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

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

/* Card - used for menu highlights, tournaments, events, info */
.card {
  background: radial-gradient(circle at top left, rgba(255, 51, 102, 0.14), transparent 55%),
              radial-gradient(circle at bottom right, rgba(15, 180, 255, 0.12), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

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

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

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

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

.card-footer {
  margin-top: var(--space-4);
}

/* Highlight strip for live events, promotions, specials */
.pill-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.pill-banner--live {
  border-color: rgba(255, 51, 102, 0.7);
  color: var(--color-primary);
}

/* Tag-style chips for cuisine types, poker limits, sports leagues */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Media framing for gallery images / match screens */
.media-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Simple table styling for schedules & calendars */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table thead {
  background: rgba(255, 255, 255, 0.02);
}

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

.table th {
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-xs);
}

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

/* Testimonials - social proof */
.testimonial {
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  padding-left: var(--space-4);
}

.testimonial-quote {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.testimonial-author {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Labels for status (open/closed, available/limited) */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.status-indicator-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--gray-600);
}

.status-indicator--live .status-indicator-dot {
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.8);
}

.status-indicator--open .status-indicator-dot {
  background: var(--color-success);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.7);
}

/* Toast-style promotional banner (akcók, happy hour) */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.22), rgba(255, 176, 32, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.promo-banner__title {
  font-weight: 600;
}

.promo-banner__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
