/* ==================================================================
   STACKAARA Base Styles
   Modern, lively, social, energetic, upscale, vibrant
   ================================================================== */

/* ==================================================================
   1. CSS Variables
   ================================================================== */
:root {
  /* Brand Colors */
  --color-background: #050608; /* deep, cinematic background */
  --color-surface: #101119; /* card / panel surface */
  --color-elevated: #181a24;

  --color-text: #f7f7fb;
  --color-text-muted: #a5a7b8;

  --color-primary: #ff315f; /* vibrant accent for CTAs */
  --color-primary-soft: rgba(255, 49, 95, 0.12);
  --color-primary-strong: #ff5579;

  --color-success: #1eca7b;
  --color-warning: #ffb347;
  --color-danger: #ff4757;

  /* Neutral Grays */
  --gray-50: #f7f7fb;
  --gray-100: #e4e6f0;
  --gray-200: #c9ccdd;
  --gray-300: #a5a7b8;
  --gray-400: #7a7d91;
  --gray-500: #5a5d72;
  --gray-600: #3e4153;
  --gray-700: #272838;
  --gray-800: #181a24;
  --gray-900: #050608;

  /* Semantic Backgrounds */
  --bg-body: var(--color-background);
  --bg-card: var(--color-surface);
  --bg-highlight: linear-gradient(135deg, rgba(255, 49, 95, 0.16), rgba(92, 98, 255, 0.16));

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Font Sizes (clamp for responsiveness) */
  --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: clamp(2.5rem, 4vw, 3.25rem); /* hero */

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 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-5: 0.625rem; /* 10px */
  --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-32: 4rem;    /* 64px */
  --space-40: 5rem;    /* 80px */
  --space-48: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows (subtle neon / glow suitable for nightlife) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.65);
  --shadow-focus: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 3px rgba(255, 49, 95, 0.7);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease;
}

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

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

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

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

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

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

a {
  background-color: transparent;
}

/* Remove animations/transitions for people who prefer 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;
  }
}

/* ==================================================================
   3. Base Typography & Layout
   ================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #181a24 0, #050608 55%, #010103 100%);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-16);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  margin-top: var(--space-24);
  margin-bottom: var(--space-10);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-top: var(--space-20);
  margin-bottom: var(--space-8);
}

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

h5 {
  font-size: var(--font-size-lg);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

h6 {
  font-size: var(--font-size-md);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

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

p + p {
  margin-top: -0.25rem;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

code, pre {
  font-family: var(--font-mono);
}

/* Links - modern, subtle underline on hover */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 14px rgba(255, 49, 95, 0.7);
}

a:active {
  color: var(--color-primary);
}

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

/* ==================================================================
   4. Accessibility & Focus Management
   ================================================================== */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

/* More generous focus ring for interactive elements */
button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* 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
   ================================================================== */
/* Layout Containers */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1200px;
}

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

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

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

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

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

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

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

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

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

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--space-16);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

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

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

/* Spacing helpers (limited set for base) */
.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-4) !important; }
.mt-sm { margin-top: var(--space-8) !important; }
.mt-md { margin-top: var(--space-16) !important; }
.mt-lg { margin-top: var(--space-24) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-4) !important; }
.mb-sm { margin-bottom: var(--space-8) !important; }
.mb-md { margin-bottom: var(--space-16) !important; }
.mb-lg { margin-bottom: var(--space-24) !important; }

.pt-md { padding-top: var(--space-16) !important; }
.pb-md { padding-bottom: var(--space-16) !important; }

/* Visually separated section (for theme blocks like poker / sport / gastro) */
.block-highlight {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.block-highlight::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at top, rgba(255, 49, 95, 0.32), transparent 65%);
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.block-highlight:hover::before {
  opacity: 1;
}

/* ==================================================================
   6. Components
   ================================================================== */
/* Buttons */
.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  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;
  cursor: pointer;
  background-image: linear-gradient(135deg, #ff315f, #ff8a4a);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 49, 95, 0.65);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast),
    background-position var(--transition-slow),
    opacity var(--transition-fast);
  background-size: 160% 160%;
  background-position: 0% 50%;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  transform: translateY(-1px) scale(1.02);
  color: #fff !important;
  background-position: 100% 50%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 49, 95, 0.9);
}

.button:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 49, 95, 0.75);
}

.button:disabled,
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

/* Outline / ghost variant for secondary actions (e.g. menu, rezerwacja stolika) */
.button--ghost {
  background: rgba(15, 16, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.button--ghost:hover {
  background: rgba(30, 32, 60, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(8, 9, 18, 0.92);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(165, 167, 184, 0.7);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 49, 95, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 49, 95, 0.4);
  background-color: rgba(12, 13, 24, 1);
  transform: translateY(-1px);
}

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

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

label {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* Cards - for menu items, events, poker nights, match listings */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(255, 49, 95, 0.08), rgba(15, 16, 30, 0.98));
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-slow);
}

.card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top right, rgba(92, 98, 255, 0.28), transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 255, 255, 0.16);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

.card__subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: var(--space-6);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Tag / pill (for “Poker”, “Live Sport”, “Happy Hour”) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 9, 18, 0.9);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tag--accent {
  border-color: rgba(255, 49, 95, 0.7);
  color: #ffe9ef;
  background: linear-gradient(135deg, rgba(255, 49, 95, 0.22), rgba(92, 98, 255, 0.2));
}

/* Chips / badges for status */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-2xs, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

.badge--success {
  background-color: rgba(30, 202, 123, 0.16);
  color: #b4ffe0;
}

.badge--warning {
  background-color: rgba(255, 179, 71, 0.18);
  color: #ffe4ba;
}

.badge--danger {
  background-color: rgba(255, 71, 87, 0.18);
  color: #ffd0d4;
}

/* Hero overlay utility for strong STACKAARA top sections */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 49, 95, 0.36), transparent 50%),
    radial-gradient(circle at 90% 0%, rgba(92, 98, 255, 0.4), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), #050608 85%);
  opacity: 0.95;
  z-index: -1;
}

/* Basic table styling (for schedules / tournaments) */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-16);
}

thead {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75em;
  color: var(--color-text-muted);
}

th, td {
  padding: 0.75rem 0.5rem;
  text-align: left;
}

tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.02);
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.04);
}

/* ==================================================================
   7. Forms: small helper layout
   ================================================================== */
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==================================================================
   8. Media helpers
   ================================================================== */
.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.responsive-embed iframe,
.responsive-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================================================================
   9. Misc
   ================================================================== */
.hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-16) 0;
}

.badge-language {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
}

/* End of STACKAARA base.css */
