/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-background: #05060a;
  --color-surface: #0b0e16;
  --color-surface-elevated: #121626;
  --color-text: #f5f5f7;
  --color-text-muted: #a3a7b5;
  --color-border-subtle: #242736;

  --color-primary: #ff3366; /* energetic accent */
  --color-primary-soft: rgba(255, 51, 102, 0.14);
  --color-primary-strong: #ff1650;

  --color-success: #1dbf73;
  --color-warning: #ffb547;
  --color-danger: #ff4d4f;

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

  /* Accent overlays for sports / poker vibe */
  --color-accent-green: #00c896;
  --color-accent-blue: #2f5bff;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

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

  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–24 => 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 */

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows (subtle neon / glow options) */
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow-primary: 0 0 0 1px rgba(255, 51, 102, 0.6), 0 0 25px rgba(255, 51, 102, 0.45);

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

  /* Layout */
  --layout-max-width: 1120px;
  --layout-gutter: var(--space-4);

  /* Z-index scale */
  --z-header: 40;
  --z-overlay: 50;
  --z-modal: 60;
}

/* Responsive root font-size for Polish copy-heavy layout */
html {
  font-size: 100%;
}

@media (max-width: 768px) {
  html {
    font-size: 93.75%; /* 15px base */
  }
}

/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

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

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

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

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

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

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

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #111527 0, #05060a 55%, #02030a 100%);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: #ffffff;
  letter-spacing: 0.02em;
}

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

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

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

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

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

strong,
b {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

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

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

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

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

::selection {
  background: rgba(255, 51, 102, 0.24);
  color: #ffffff;
}

/* ========================================================================== 
   Accessibility Helpers
   ========================================================================== */

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

/* Screen-reader only content */
.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 container for main site content (Riveenso pages) */
.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

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

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

.section--flush-top {
  padding-top: 0;
}

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

.flex-inline {
  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-xs {
  gap: var(--space-2);
}

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

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

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

/* Grid utilities for schedules, menus, gallery */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

@media (max-width: 900px) {
  .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);
}

.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-2) !important; }
.mt-sm { margin-top: var(--space-3) !important; }
.mt-md { margin-top: var(--space-4) !important; }
.mt-lg { margin-top: var(--space-6) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-2) !important; }
.mb-sm { margin-bottom: var(--space-3) !important; }
.mb-md { margin-bottom: var(--space-4) !important; }
.mb-lg { margin-bottom: var(--space-6) !important; }

.hidden {
  display: none !important;
}

/* Simple badges for offers, tournaments, etc. */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
}

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

.badge--success {
  background: rgba(0, 200, 150, 0.16);
  color: var(--color-accent-green);
}

.badge--live {
  background: rgba(255, 61, 87, 0.2);
  color: #ff6b81;
}

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

/* Buttons: use for rezerwacja, promocje, turnieje, etc. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 51, 102, 0.35);
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.button:hover {
  background: var(--color-primary-strong);
  box-shadow: 0 16px 32px rgba(255, 51, 102, 0.45);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.button:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-glow-primary);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
}

.button--subtle {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.button--subtle:hover {
  background: rgba(255, 255, 255, 0.11);
}

.button--full {
  width: 100%;
}

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

/* Input fields: rezerwacja stolika, kalendarz turniejów filters, etc. */

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: rgba(5, 6, 12, 0.9);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(163, 167, 181, 0.7);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(255, 51, 102, 0.7);
}

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

.textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row + .form-row {
  margin-top: var(--space-3);
}

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

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

/* Cards: menu sekcje, poker lounge, promocje, wydarzenia na żywo */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(145deg, rgba(13, 16, 28, 0.96), rgba(6, 7, 15, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
}

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

.card--highlight {
  border-color: rgba(255, 51, 102, 0.6);
  box-shadow: var(--shadow-glow-primary);
}

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

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

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

/* Media card variant for interior gallery / events */

.card-media {
  overflow: hidden;
  padding: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 65%);
}

/* Tagline / pill for live events (e.g., "Dziś na żywo", "Poker Night") */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-text-muted);
}

.pill--primary {
  background: rgba(255, 51, 102, 0.16);
  color: var(--color-primary);
}

.pill--live {
  background: linear-gradient(120deg, #ff3366, #ffb547);
  color: #ffffff;
}

/* Simple tag list for categories: "Poker", "Sport", "Grill" */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.7rem;
  font-size: var(--font-size-xs);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
}

/* Status dots: open / closed, live / offline */

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-right: 0.3rem;
  background: var(--color-gray-500);
}

.status-dot--live {
  background: #ff4d4f;
}

.status-dot--open {
  background: #1dbf73;
}

/* Panels for info: godziny otwarcia, lokalizacja, parking */

.info-panel {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: rgba(7, 9, 17, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-panel-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.info-panel-content {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Schedule list for tournaments & sports broadcasts */

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

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.schedule-item-title {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.schedule-item-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.schedule-item-badge {
  font-size: var(--font-size-xs);
}

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

/* Testimonial snippet cards */

.testimonial {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: rgba(14, 16, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.testimonial-quote {
  font-style: italic;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.testimonial-author {
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Simple chip-style filter for menu categories or calendar filters */

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.9rem;
  font-size: var(--font-size-xs);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.chip--active,
.chip:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Footer base styles */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-6);
  background: radial-gradient(circle at top, rgba(255, 51, 102, 0.18), transparent 65%), #05060a;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: var(--font-size-xs);
}

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

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