/* ============================================
   Variables
   ============================================ */
:root {
  /* Colors */
  --color-background: #05040a;
  --color-surface: #111018;
  --color-surface-soft: #191824;
  --color-text: #f8f5ff;
  --color-text-muted: #b4b0c7;
  --color-primary: #ff595a; /* energetic accent */
  --color-primary-soft: rgba(255, 89, 90, 0.12);
  --color-primary-dark: #e04849;
  --color-success: #32d17a;
  --color-warning: #ffb74d;
  --color-danger: #ff4b5c;

  /* Neutral grays / borders */
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-soft: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-overlay: rgba(5, 4, 10, 0.82);

  /* Poker & sports accent hints (optional utility use) */
  --color-poker-green: #1c7f4b;
  --color-sports-blue: #2962ff;

  /* 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-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.35rem;   /* ~22px */
  --font-size-2xl: 1.8rem;   /* ~29px */
  --font-size-3xl: 2.4rem;   /* ~38px */
  --font-size-4xl: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.125rem; /* 2px */
  --space-2: 0.25rem;  /* 4px */
  --space-3: 0.375rem; /* 6px */
  --space-4: 0.5rem;   /* 8px */
  --space-6: 0.75rem;  /* 12px */
  --space-8: 1rem;     /* 16px */
  --space-10: 1.25rem; /* 20px */
  --space-12: 1.5rem;  /* 24px */
  --space-16: 2rem;    /* 32px */
  --space-20: 2.5rem;  /* 40px */
  --space-24: 3rem;    /* 48px */
  --space-28: 3.5rem;  /* 56px */
  --space-32: 4rem;    /* 64px */
  --space-40: 5rem;    /* 80px */
  --space-48: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --radius-card: 18px;

  /* Shadows */
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 18px 55px rgba(0, 0, 0, 0.55);
  --shadow-sharp: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.75);

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

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

/* ============================================
   Reset / Normalize
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}
a.button:hover {
    color: #fff !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: inherit;
}

/* Remove default list styles when using role=list for custom styling */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Remove animations if user prefers 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;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-snug);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
  margin-bottom: var(--space-12);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
  margin-bottom: var(--space-10);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
}

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

strong,
b {
  font-weight: 600;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Spacing utilities (margin-bottom only to keep base slim) */
.mb-0 {
  margin-bottom: 0 !important;
}

.mb-xs {
  margin-bottom: var(--space-4) !important;
}

.mb-sm {
  margin-bottom: var(--space-6) !important;
}

.mb-md {
  margin-bottom: var(--space-10) !important;
}

.mb-lg {
  margin-bottom: var(--space-16) !important;
}

.mb-xl {
  margin-bottom: var(--space-24) !important;
}

/* Badge-like utility for small highlight labels */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

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

/* Buttons */
.button,
button.button,
input[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast),
              border-color var(--transition-base),
              color var(--transition-base);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

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

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

.button--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}

.button--outline:hover {
  background: var(--color-primary-soft);
}

.button--subtle {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-soft);
  color: var(--color-text);
  box-shadow: none;
}

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

/* Inputs & form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background-color: rgba(12, 10, 20, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  outline: none;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 244, 255, 0.4);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-dark), 0 0 0 6px rgba(255, 89, 90, 0.15);
}

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

label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
}

/* Cards: for menu highlights, poker nights, sports events, etc. */
.card {
  position: relative;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at top left, rgba(255, 89, 90, 0.08) 0, transparent 52%),
              radial-gradient(circle at bottom right, rgba(41, 98, 255, 0.1) 0, transparent 55%),
              var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-16);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

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

/* Tag chips for categories like "Poker night", "Transmisja na żywo" */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-soft);
}

.chip--poker {
  border-color: rgba(28, 127, 75, 0.6);
  background-color: rgba(28, 127, 75, 0.16);
  color: #b7f5d5;
}

.chip--sports {
  border-color: rgba(41, 98, 255, 0.7);
  background-color: rgba(41, 98, 255, 0.16);
  color: #c5d8ff;
}

/* Simple pill for opening hours / location detail */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border-soft);
  font-size: var(--font-size-xs);
}

/* ============================================
   Media-specific helpers
   ============================================ */

/* Helper for dark image overlays (hero sections) */
.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 4, 10, 0.35) 0%, rgba(5, 4, 10, 0.9) 100%);
  pointer-events: none;
}

.overlay-dark > * {
  position: relative;
}

/* Utility for subtle glassmorphism effects on navigation / sticky bars */
.glass-panel {
  background: linear-gradient(to right, rgba(10, 8, 20, 0.82), rgba(10, 8, 20, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* End of base.css */
