/* ========================================================================
   SportView Lounge Base Styles
   ======================================================================== */

/* ========================================================================
   1. CSS Variables
   ======================================================================== */
:root {
  /* Color Palette - Sporty, vibrant, modern */
  --color-background: #050814;
  --color-surface: #0b1020;
  --color-surface-alt: #111729;
  --color-surface-elevated: #161e33;

  --color-text: #f5f7ff;
  --color-text-muted: #a6b0d8;
  --color-border-subtle: #242b40;

  --color-primary: #00d47b; /* sporty neon green */
  --color-primary-soft: rgba(0, 212, 123, 0.15);
  --color-primary-hover: #00b66a;
  --color-primary-strong: #00ff92;

  --color-accent: #ff375f; /* highlight for promos and key CTAs */
  --color-accent-soft: rgba(255, 55, 95, 0.15);

  --color-success: #1ec96b;
  --color-warning: #ffb020;
  --color-danger: #ff4a4a;

  --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", Roboto, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, 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.1;
  --line-height-snug: 1.3;
  --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-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: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows - subtle neon + depth for lounge feel */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow-primary: 0 0 18px rgba(0, 212, 123, 0.6);
  --shadow-glow-accent: 0 0 18px rgba(255, 55, 95, 0.6);

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

/* ========================================================================
   2. 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,
figure, blockquote, dl, dd,
ul, ol, p {
  margin: 0;
}

ul, ol {
  padding-left: 1.25rem;
}

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

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

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

textarea {
  resize: vertical;
}

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

/* Improve text rendering */
body {
  -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-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-snug);
  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-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

strong, b {
  font-weight: 600;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal),
              opacity var(--transition-fast);
}

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

a:active {
  opacity: 0.85;
}

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

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

/* ========================================================================
   4. Accessibility & Motion
   ======================================================================== */

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

*:focus {
  outline: none;
}

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

/* 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 - main layout wrapper suitable for wide screens & TVs */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

/* Section spacing */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--dense {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

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

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

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

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

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

/* Grid helpers */
.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);
  }
}

/* Alignment & text utilities */
.text-center {
  text-align: center;
}

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

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

/* Spacing utilities (common ones) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pb-4 { padding-bottom: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

/* Width utilities */
.w-full { width: 100%; }
/* ========================================================================
   6. Components
   ======================================================================== */

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-normal),
              color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast),
              opacity var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #020308;
  box-shadow: var(--shadow-sm), var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

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

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

.btn-outline:hover {
  border-color: var(--color-primary);
  background-color: rgba(0, 212, 123, 0.06);
}

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

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

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #ff6b8e);
  color: #050308;
  box-shadow: var(--shadow-sm), var(--shadow-glow-accent);
}

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

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

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

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

/* Form Elements --------------------------------------------------------- */

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

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-normal);
}

.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 var(--color-primary-soft), var(--shadow-sm);
}

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

.textarea {
  min-height: 120px;
}

/* Inline form feedback */
.form-help {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  color: var(--color-danger);
}

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

/* Card Component -------------------------------------------------------- */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(0, 212, 123, 0.09), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 55, 95, 0.08), transparent 55%),
              var(--color-surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  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-1);
}

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

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

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

/* Tag / pill - useful for tournament levels, promos, statuses ----------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge--success {
  color: var(--color-success);
  background-color: rgba(30, 201, 107, 0.15);
}

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

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

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

/* Media / Gallery helpers ----------------------------------------------- */

.media-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.media-frame--zoom:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* Chips / list pills for menu highlights, sports tags, poker variants --- */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.chip--highlight {
  background-color: var(--color-primary-soft);
  color: var(--color-primary-strong);
  border-color: rgba(0, 212, 123, 0.35);
}

/* ========================================================================
   7. Helpers for SportView Lounge-specific sections
   ======================================================================== */

/* Section headers for Polish content like "Menu", "Turnieje", etc. */

.section-heading {
  margin-bottom: var(--space-4);
}

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

.section-heading__title {
  font-size: var(--font-size-3xl);
}

.section-heading__subtitle {
  margin-top: var(--space-2);
  max-width: 40rem;
  color: var(--color-text-muted);
}

/* Schedule / calendar style base (tournaments, sports events) ---------- */

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background-color: rgba(8, 12, 28, 0.9);
  border: 1px solid var(--color-border-subtle);
}

.schedule-item + .schedule-item {
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .schedule-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }
}

.schedule-item__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.schedule-item__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

.schedule-item__info {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Info blocks for location, opening hours, parking, dress code --------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.info-tile {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: rgba(10, 16, 38, 0.95);
  border: 1px solid var(--color-border-subtle);
}

.info-tile__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-400);
  margin-bottom: var(--space-1);
}

.info-tile__value {
  font-size: var(--font-size-lg);
}

/* Testimonials base card ----------------------------------------------- */

.testimonial {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 212, 123, 0.08), rgba(11, 16, 38, 0.96));
  border: 1px solid rgba(0, 212, 123, 0.25);
}

.testimonial__quote {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.testimonial__author {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.testimonial__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Promo banner for special offers / themed nights ---------------------- */

.promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  background: radial-gradient(circle at top left, rgba(255, 55, 95, 0.35), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0, 212, 123, 0.25), transparent 55%),
              #16162e;
  box-shadow: var(--shadow-md);
}

.promo-banner__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray-100);
  opacity: 0.9;
}

.promo-banner__title {
  font-size: var(--font-size-2xl);
  margin-top: var(--space-2);
}

.promo-banner__subtitle {
  margin-top: var(--space-2);
  color: var(--gray-100);
}

/* Reservation highlight for online table booking ----------------------- */

.reservation-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  background-color: rgba(5, 12, 32, 0.96);
  border: 1px solid rgba(0, 212, 123, 0.35);
}

@media (max-width: 768px) {
  .reservation-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.reservation-strip__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========================================================================
   End base.css
   ======================================================================== */
