/* Shared tokens, reset, header/footer — matches euforiabiegacza.pl's own stylesheet
   (asphalt/chalk/track-red/flag-yellow, Anton/Inter/JetBrains Mono, self-hosted fonts). */

@font-face { font-family: 'Anton'; src: url('../fonts/anton-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --asphalt: #14181C;
  --asphalt-2: #1D2329;
  --asphalt-3: #262E36;
  --chalk: #F5F3EE;
  --chalk-dim: #D8D5CC;
  --track-red: #C8102E;
  --track-red-dark: #8E0B20;
  --flag-yellow: #FFC63C;
  --steel: #8A96A3;
  --steel-dark: #5B6570;
  --radius: 2px;
  --danger-soft: #E8748A;
  --success: #3FA65C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--chalk);
  color: var(--asphalt);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
input::placeholder { color: rgba(20, 24, 28, .38); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--flag-yellow);
  outline-offset: 2px;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.display { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }

@keyframes ebpop {
  0% { transform: scale(.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* Eyebrow — small red mono label with a dash, matches the site's section-kicker style */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--track-red);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--track-red); display: inline-block; }

.eb-page { min-height: 100vh; padding-bottom: 80px; }
.eb-container { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---- Header / nav — copied verbatim from euforiabiegacza.pl (same class names: .wrap, .nav,
   .logo, .nav-links, .nav-cta, .nav-toggle, .nav-live-dot), so this module's header is the same
   component as the main site's, not a lookalike. The main-site links point back to
   euforiabiegacza.pl (absolute URLs — this is a different subdomain); "Zapisy" and "Moje konto"
   point within this module instead, since that's the context the visitor is already in. ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 24, 28, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 243, 238, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 58px; width: auto; display: block; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--chalk-dim); font-size: 14px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a.active, .nav-links a:hover { color: var(--chalk); border-color: var(--track-red); }

.nav-cta {
  background: var(--track-red); color: var(--chalk); font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: var(--radius); letter-spacing: .03em; text-transform: uppercase;
  transition: background .2s;
}
.nav-cta:hover { background: var(--track-red-dark); }

.nav-toggle { display: none; background: none; border: 0; color: var(--chalk); font-size: 26px; cursor: pointer; }
.nav-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--track-red);
  margin-right: 6px; animation: pulse 1.4s infinite; vertical-align: middle;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--asphalt);
    border-bottom: 1px solid rgba(245, 243, 238, .1);
    padding: 6px 28px 18px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(245, 243, 238, .08); width: 100%; }
  .nav-toggle { display: block; }
}

/* Footer — full-bleed asphalt bar, matches the site's <footer> */
.eb-footer {
  background: var(--asphalt);
  border-top: 1px solid rgba(245, 243, 238, .1);
  color: var(--steel);
  padding: 26px 0;
  margin-top: 48px;
}
.eb-footer__row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  font-size: 12.5px;
  font-family: 'JetBrains Mono', monospace;
}
.eb-footer__row a { color: var(--chalk-dim); text-decoration: underline; text-underline-offset: 2px; }
.eb-footer__row a:hover { color: var(--chalk); }

/* Toast */
.eb-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--asphalt);
  color: var(--chalk);
  font: 700 13px/1 Inter, sans-serif;
  padding: 14px 20px;
  border-radius: var(--radius);
  animation: ebpop .2s ease;
  white-space: nowrap;
}
.eb-toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flag-yellow); flex: none; }

/* ---- Shared component primitives, copied verbatim from euforiabiegacza.pl's
   design-system.css so this module reads as the same site, not a lookalike. ---- */

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
  text-transform: uppercase; background: var(--track-red); color: #fff; border: 1px solid transparent;
  transition: background .2s, transform .15s; cursor: pointer; text-decoration: none;
}
.btn-primary:hover { background: var(--track-red-dark); transform: translateY(-1px); }
.btn-primary:disabled, .btn-primary.disabled { background: var(--chalk-dim); color: var(--steel-dark); cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
  text-transform: uppercase; border: 1px solid rgba(20, 24, 28, .2); color: var(--asphalt);
  background: transparent; transition: border-color .2s, background .2s; cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--asphalt); background: rgba(20, 24, 28, .05); }
/* Variant for a .btn-ghost sitting on a dark surface (e.g. the header) */
.btn-ghost--on-dark { border-color: rgba(245, 243, 238, .25); color: var(--chalk); }
.btn-ghost--on-dark:hover { border-color: var(--chalk); background: rgba(245, 243, 238, .08); }

.card {
  background: #fff; border: 1px solid rgba(20, 24, 28, .1); border-radius: var(--radius);
}

.status-badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 20px;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.open { background: rgba(46, 158, 91, .12); color: #2E9E5B; border: 1px solid rgba(46, 158, 91, .3); }
.status-badge.closed { background: rgba(138, 150, 163, .15); color: var(--steel-dark); border: 1px solid rgba(138, 150, 163, .3); }
.status-badge.soon { background: rgba(255, 198, 60, .18); color: #8A6300; border: 1px solid rgba(255, 198, 60, .45); }
.status-badge.live { background: rgba(200, 16, 46, .12); color: var(--track-red); border: 1px solid rgba(200, 16, 46, .3); }

/* Form fields — text-like inputs only; checkboxes/radios keep native sizing (chips style them separately) */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; border: 1px solid rgba(20, 24, 28, .16); border-radius: var(--radius);
  padding: 12px 14px; font-size: 14px; font-family: 'Inter', sans-serif; background: var(--chalk);
  color: var(--asphalt); outline: none;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  border-color: var(--track-red); background: #fff;
}
label {
  display: block; font-size: 11px; font-weight: 700; color: var(--steel-dark);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; font-family: 'Inter', sans-serif;
}

/* Diagonal finish-tape accent — decorative only, matches the hero/live-card signature stripe */
.tape-stripe-bg { position: relative; overflow: hidden; }
.tape-stripe-bg::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 38%; height: 160%;
  background: linear-gradient(115deg, transparent 46%, var(--track-red) 46%, var(--track-red) 48.5%,
    transparent 48.5%, transparent 52%, var(--flag-yellow) 52%, var(--flag-yellow) 53.5%, transparent 53.5%);
  opacity: .85; pointer-events: none;
}
.tape-divider { height: 8px; background: repeating-linear-gradient(115deg, var(--track-red) 0 26px, var(--flag-yellow) 26px 52px); }

.eb-stub-page {
  max-width: 560px;
  margin: 80px auto 0;
  text-align: center;
  padding: 0 20px;
}
.eb-stub-page h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: .01em;
}
.eb-stub-page p {
  font: 500 14px/1.6 Inter, sans-serif;
  color: var(--steel-dark);
}
