/* ==================================================================
   Road Vibe Culture – Base Styles
   ================================================================== */

/* ==================================================================
   1. CSS Variables (Design Tokens)
   ================================================================== */
:root {
  /* Color palette */
  --color-bg-body: #050608; /* deep near-black */
  --color-bg-elevated: #0c0f14; /* dark graphite */
  --color-bg-elevated-soft: #10141c; /* subtle card background */

  --color-text: #f7f7fb; /* soft white */
  --color-text-soft: #c0c4d0; /* muted gray text */
  --color-text-muted: #8a8fa0;

  --color-primary: #a6ff3b; /* bright lime accent */
  --color-primary-soft: rgba(166, 255, 59, 0.16);
  --color-primary-strong: #c8ff62;

  --color-success: #4cd964;
  --color-warning: #ffd666;
  --color-danger: #ff4c4c;

  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #4b5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2933;
  --color-neutral-900: #111827;

  --color-border-subtle: rgba(255, 255, 255, 0.04);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-glass-dark: rgba(8, 10, 15, 0.78);

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

  /* Font sizes (clamp for responsiveness) */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Line heights */
  --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: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Shadows (neon / glass) */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 18px 55px rgba(0, 0, 0, 0.85);
  --shadow-lime-glow: 0 0 12px rgba(166, 255, 59, 0.65), 0 0 32px rgba(166, 255, 59, 0.4);
  --shadow-focus-outline: 0 0 0 1px rgba(9, 12, 19, 0.4), 0 0 0 3px rgba(166, 255, 59, 0.85);

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

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

  /* Z-index scale */
  --z-base: 1;
  --z-header: 20;
  --z-overlay: 40;
  --z-modal: 60;
}

/* Dark mode preference (optional tuning) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-body: #050509;
    --color-bg-elevated: #090c12;
  }
}

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

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

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

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

img {
  height: auto;
}

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

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

/* ==================================================================
   3. Base Typography & Layout
   ================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #121520 0, #050608 52%, #020306 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 2.2rem + 1vw, 3.2rem);
  margin-bottom: var(--space-4);
}

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

h3 {
  font-size: clamp(1.5rem, 1.4rem + 0.4vw, 1.9rem);
  margin-bottom: var(--space-2);
}

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

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

strong {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

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

/* Links – subtle underline + neon hover */
a {
  position: relative;
  cursor: pointer;
  transition: color var(--transition-normal), text-shadow var(--transition-normal);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.4;
  transform-origin: center;
  transform: scaleX(0.4);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 12px rgba(166, 255, 59, 0.7);
}

/* Lists */
ul, ol {
  list-style: none;
}

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

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

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

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

/* ==================================================================
   5. Layout Utilities
   ================================================================== */
.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding-right: var(--layout-gutter);
  padding-left: var(--layout-gutter);
}

.container--wide {
  max-width: var(--layout-max-width-wide);
}

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

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

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

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

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

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

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

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

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

.justify-end {
  justify-content: flex-end;
}

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

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

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

/* Grid utilities */
.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: 1fr;
  }
}

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

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

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

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

.uppercase {
  text-transform: uppercase;
}

/* Spacing utilities (margin / padding) */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

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

/* Width & layout helpers */
.w-full {
  width: 100%;
}

/* Background helpers */
.bg-elevated {
  background-color: var(--color-bg-elevated);
}

.bg-elevated-soft {
  background-color: var(--color-bg-elevated-soft);
}

/* ==================================================================
   6. Core Components
   ================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #1b1f2a 0, #11141f 45%, #141923 100%);
  color: var(--color-text);
  transition:
    background var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    text-shadow var(--transition-fast);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(166, 255, 59, 0.18) 0, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn > span {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(135deg, #81ff1f 0, #a6ff3b 40%, #caff6a 100%);
  color: #050608 !important;
  border-color: rgba(0, 0, 0, 0.8);
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
  box-shadow: var(--shadow-lime-glow);
}

.btn--outline {
  background: transparent;
  border-color: rgba(166, 255, 59, 0.6);
  color: var(--color-primary-strong);
}

.btn--ghost {
  background: rgba(8, 10, 16, 0.6);
  border-color: var(--color-border-subtle);
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

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

.btn--primary:hover {
  box-shadow: var(--shadow-lime-glow);
}

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

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

.btn:focus-visible {
  box-shadow: var(--shadow-focus-outline);
}

/* Inputs & textareas */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background-color: var(--color-glass-dark);
  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),
    transform var(--transition-fast);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
}

.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: var(--shadow-focus-outline);
  transform: translateY(-1px);
}

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

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

/* Labels & field grouping */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

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

/* Card – dark glass, used for sections, event tiles, FAQ, etc. */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: radial-gradient(circle at top left, rgba(166, 255, 59, 0.09) 0, rgba(11, 13, 20, 0.98) 40%, rgba(5, 6, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%, rgba(166, 255, 59, 0.04));
  opacity: 0.5;
  pointer-events: none;
}

.card__content {
  position: relative;
  z-index: 1;
}

.card--outlined {
  background: rgba(8, 10, 15, 0.9);
  border-style: solid;
  border-width: 1px;
  border-image: linear-gradient(135deg, rgba(166, 255, 59, 0.7), rgba(166, 255, 59, 0.15)) 1;
}

.card--hoverable {
  cursor: pointer;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.card--hoverable:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong), 0 0 40px rgba(166, 255, 59, 0.25);
}

/* Simple "card-table" visual panel (for poker / casino-style imagery blocks) */
.table-panel {
  position: relative;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 20%, #2bbf66 0, #0a4a25 35%, #02130a 65%, transparent 75%);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(10, 255, 130, 0.45);
  border: 1px solid rgba(244, 255, 255, 0.12);
}

/* Tag / pill element (e.g. "Offline", "Poker", "Bez hazardu") */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(166, 255, 59, 0.4);
  background: rgba(10, 12, 18, 0.8);
  color: var(--color-primary-strong);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ==================================================================
   7. Navigation & Header Basics
   ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.95), rgba(5, 6, 10, 0.75), transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem var(--layout-gutter);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav__link {
  position: relative;
  padding-bottom: 0.25rem;
  color: var(--color-text-soft);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6aff1f, #a6ff3b);
  transition: width var(--transition-normal);
}

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

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-primary-strong);
}

/* ==================================================================
   8. Footer Basics
   ================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(166, 255, 59, 0.08), transparent 55%), #050608;
  padding: var(--space-8) 0 var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}

/* ==================================================================
   9. Helper Classes Specific to Road Vibe Culture
   ================================================================== */

/* Geometric section split – used for sharp layouts */
.section-split {
  position: relative;
  background: linear-gradient(135deg, #050608 0, #050608 46%, #0f1729 46.1%, #020306 100%);
}

.section-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(166, 255, 59, 0.16), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

/* Neon border helper */
.neon-border {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(166, 255, 59, 0.7);
  box-shadow: 0 0 0 1px rgba(166, 255, 59, 0.2), 0 0 24px rgba(166, 255, 59, 0.4);
}

/* Disclaimer block for "informacyjny tylko / brak hazardu" */
.disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 14, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.disclaimer__label {
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary-strong);
  margin-bottom: 0.35rem;
}

/* FAQ accordion basics (structure only) */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(7, 9, 15, 0.96);
  padding: var(--space-4);
}

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

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
}

.faq-item__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-item__answer {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* ==================================================================
   10. Responsive Tweaks
   ================================================================== */
@media (max-width: 960px) {
  .site-header__inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .nav {
    gap: 1.2rem;
    font-size: 0.75rem;
  }

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

@media (max-width: 640px) {
  h1 {
    letter-spacing: 0.02em;
  }

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

  .card {
    padding: var(--space-4);
  }

  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

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


h1,
h2,
h3,
.section-title,
.arenas-section-header h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.btn{
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.35;
}