/* ============================================
   KORONA KIELCE — Galeria Kibiców
   Paleta: żółty #FEC601, czerwony #E1001B,
   ciemny #32302A / #1a1605, tekst #1D1A1B
   Typografia: Barlow (tekst) + Barlow Condensed (nagłówki/nav)
   ============================================ */

:root {
  --k-yellow: #FEC601;
  --k-yellow-hover: #FFDA00;
  --k-red: #E1001B;
  --k-dark: #32302A;
  --k-dark-hero: #1a1605;
  --k-on-yellow: #000000;
  --k-text: #1D1A1B;
  --k-muted: #5C5254;
  --k-label: #8A7F81;
  --k-border: #EDE8E9;
  --k-bg-soft: #FBF8F3;
  --k-hero-muted: #CDBFC1;
  --font-head: 'Martel Sans', -apple-system, sans-serif;
}

html { overflow-x: hidden; }
body {
  font-family: 'Martel Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--k-text);
  background: #fff;
  overflow-x: hidden;
}

a        { color: #B7890A; }
a:hover  { color: #8F6B08; }
::selection { background: var(--k-yellow); color: var(--k-on-yellow); }

.btn-primary, .bg-primary {
  color: #fff;
  background-color: var(--k-dark) !important;
  border-color:     var(--k-dark) !important;
}

/* ============================================
   Topbar + biały header (wzór: oficjalna strona klubu)
   ============================================ */
.topbar {
  background: var(--k-dark);
  color: #fff;
  font-size: .8rem;
}
.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-left { padding-left: 150px; } /* miejsce na nachodzący herb */
.topbar-left a {
  color: #CFCBC3;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
}
.topbar-left a:hover { color: var(--k-yellow); }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.topbar-social .lbl { color: #CFCBC3; margin-right: 2px; }
.topbar-social a { color: #fff; font-size: 1rem; line-height: 1; }
.topbar-social a:hover { color: var(--k-yellow); }

.main-header { background: #fff; }
.main-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 15px 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
/* Herb — nachodzi na ciemny topbar, jak na oficjalnej */
.header-crest {
  position: absolute;
  top: -42px;
  left: 15px;
  height: 132px;
  width: auto;
  z-index: 20;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.28));
  transition: transform .2s;
}
.header-crest-link:hover .header-crest { transform: scale(1.03); }
.header-brand { padding-left: 138px; min-width: 0; }
.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #A3854D;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 2px;
}
.main-nav {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  color: var(--k-text);
  text-transform: uppercase;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  padding: 8px 0 12px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover  { color: #000; border-bottom-color: rgba(225,0,27,.35); }
.main-nav a.active { border-bottom-color: var(--k-red); }
.header-actions {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  flex-shrink: 0;
}
.btn-shop, .btn-tickets {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .03em;
  padding: 11px 18px;
  border-radius: 3px;
  text-decoration: none;
  transition: filter .15s, transform .15s;
}
.btn-shop    { background: var(--k-yellow); color: #000; }
.btn-tickets { background: var(--k-red); color: #fff; }
.btn-shop:hover    { background: var(--k-yellow-hover); color: #000; text-decoration: none; transform: translateY(-1px); }
.btn-tickets:hover { filter: brightness(1.12); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* Treść strony */
.page-container {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 260px);
}
.content-alert { margin-top: .75rem; margin-bottom: 1.25rem; }

/* ============================================
   Stopka
   ============================================ */
.site-footer {
  /* jak na oficjalnej stronie klubu: żółta stopka, czarny tekst */
  background: #FBD23F;
  color: #000;
  padding: 1.6rem 0;
  margin-top: 3rem;
  font-size: .9rem;
}
.site-footer a       { color: #000; text-decoration: none; font-weight: 800; }
.site-footer a:hover { color: #32302A; text-decoration: underline; }
.site-footer .btn-outline-light {
  border: 2px solid #000;
  color: #000;
  font-weight: 800;
  border-radius: 6px;
}
.site-footer .btn-outline-light:hover {
  background: #000;
  border-color: #000;
  color: #FBD23F;
}

/* ============================================
   Karty i przyciski
   ============================================ */
.card-modern {
  border: 1px solid var(--k-border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(29,26,27,.06);
  background: #fff;
  overflow: hidden;
}

.btn-accent {
  display: inline-block;
  font-family: var(--font-head);
  background-color: var(--k-yellow);
  border: 2px solid var(--k-yellow);
  color: var(--k-on-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 6px;
  padding: .8rem 1.6rem;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  transition: background .2s, transform .15s, box-shadow .2s;
  min-height: 52px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--k-yellow-hover);
  border-color:     var(--k-yellow-hover);
  color: var(--k-on-yellow);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
  text-decoration: none;
}
.btn-accent:active { transform: translateY(0); }

/* ============================================
   INDEX — Hero (pełna szerokość, zlane z nagłówkiem)
   ============================================ */
.index-hero {
  background:
    radial-gradient(circle at 82% 30%, rgba(225,0,27,.20) 0%, transparent 44%),
    radial-gradient(circle at 8% 88%, rgba(254,198,1,.12) 0%, transparent 40%),
    var(--k-dark-hero);
  color: #fff;
  /* full-bleed: wychodzi poza .container na całą szerokość okna */
  margin: -1.25rem calc(50% - 50vw) 3rem;
  padding: 4.5rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* „Szalik" — ukośne pasy klubowe po prawej */
.index-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 420px; height: 130%;
  background: repeating-linear-gradient(
    115deg,
    rgba(254,198,1,.16) 0 16px,
    transparent 16px 44px,
    rgba(225,0,27,.20) 44px 60px,
    transparent 60px 104px
  );
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 95%);
          mask-image: linear-gradient(to left, #000 30%, transparent 95%);
  pointer-events: none;
}
/* delikatna żółta poświata dole po lewej */
.index-hero::after {
  content: '';
  position: absolute;
  bottom: -140px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254,198,1,.10), transparent 65%);
  pointer-events: none;
}
.index-hero > .position-relative { z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  background: var(--k-red);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 22px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 18px rgba(225,0,27,.4);
}
.hero-badge .live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--k-yellow);
  display: inline-block;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(254,198,1,.6); }
  50%      { opacity: .5; box-shadow: 0 0 0 5px rgba(254,198,1,0); }
}
.hero-badge--closed {
  background: rgba(58,46,48,.85);
  color: #E8DFE0;
  box-shadow: none;
}
.hero-badge--closed .live-dot { animation: none; background: var(--k-label); }

.index-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 auto .9rem;
  color: #fff;
  max-width: 680px;
}
.index-hero h1 .accent { color: var(--k-yellow); }
.hero-lead {
  font-size: 1.12rem;
  color: var(--k-hero-muted);
  max-width: 460px;
  margin: 0 auto 1.7rem;
  line-height: 1.65;
}
.hero-lead strong { color: #fff; }

.index-hero .btn-accent {
  font-size: 1.1rem;
  padding: .9rem 2.4rem;
  box-shadow: 0 10px 30px rgba(254,198,1,.35);
}
.index-hero .btn-accent:hover { box-shadow: 0 14px 36px rgba(254,198,1,.45); }

/* CTA nieaktywne (poza meczem) */
.hero-cta-disabled {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(58,46,48,.9);
  color: #9C8D8F;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 6px;
  cursor: not-allowed;
  white-space: nowrap;
}
.hero-cta-note {
  display: block;
  margin-top: .7rem;
  font-size: .9rem;
  color: var(--k-hero-muted);
}

/* ============================================
   Sekcja kroków
   ============================================ */
.steps-section { margin-bottom: 2.5rem; }
.steps-section .row { row-gap: 1.25rem; }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--k-label);
  text-align: center;
  margin-bottom: .3rem;
}
.steps-section h2 {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--k-text);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: .8rem;
}
.steps-section h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 54px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--k-yellow) 60%, var(--k-red) 60%);
}
.step-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--k-border);
  border-left: 5px solid var(--k-yellow);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(29,26,27,.06);
  padding: 1.35rem 1.5rem;
  transition: box-shadow .2s, transform .2s, border-left-color .2s;
  height: 100%;
}
.step-card:hover {
  box-shadow: 0 10px 28px rgba(29,26,27,.12);
  transform: translateY(-2px);
  border-left-color: var(--k-red);
}
.step-num {
  flex-shrink: 0;
  font-family: var(--font-head);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--k-dark-hero);
  color: var(--k-yellow);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: .9rem;
  margin-top: 2px;
}
.step-body h5 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--k-text);
  margin-bottom: .25rem;
}
.step-body p {
  font-size: .92rem;
  color: var(--k-muted);
  margin: 0;
  line-height: 1.6;
}

/* RODO notice */
.rodo-notice {
  background: var(--k-bg-soft);
  border: 1px solid var(--k-border);
  border-left: 5px solid var(--k-yellow);
  border-radius: 6px;
  padding: 1rem 1.4rem;
  font-size: .9rem;
  color: var(--k-muted);
  line-height: 1.6;
  margin-top: 1rem;
}
.rodo-notice strong  { color: var(--k-text); }
.rodo-notice a       { color: #B7890A; font-weight: 700; text-decoration: underline; }
.rodo-notice a:hover { color: #8F6B08; }

/* ============================================
   Pływający CTA na mobile (tylko podczas meczu)
   ============================================ */
.mobile-cta { display: none; }
@media (max-width: 767.98px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 14px; right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    background: var(--k-yellow);
    color: var(--k-on-yellow);
    font-weight: 800;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 15px 18px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    text-decoration: none;
  }
  .mobile-cta:hover, .mobile-cta:focus { color: var(--k-on-yellow); text-decoration: none; }
  /* miejsce nad stopką, żeby przycisk nie zasłaniał treści */
  body:has(.mobile-cta) .site-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================
   WIZARD — dodawanie selfie (2 kroki)
   ============================================ */
h1.page-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--k-text);
}
.wizard-container { max-width: 560px; margin: 0 auto; }

/* ---- Wskaźnik kroków ---- */
.wizard-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.step-ind {
  display: flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--k-label);
}
.step-ind .step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--k-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-right: 7px;
  flex-shrink: 0;
  transition: all .25s;
}
.step-ind.active              { color: var(--k-text); }
.step-ind.active .step-circle { background: var(--k-dark-hero); border-color: var(--k-dark-hero); color: var(--k-yellow); }
.step-ind.done  .step-circle  { background: #28a745; border-color: #28a745; color: #fff; }
.step-divider {
  flex: 1; height: 2px;
  background: var(--k-border);
  margin: 0 12px;
  max-width: 52px;
}

/* ---- Obszar wyboru zdjęcia ---- */
.photo-picker-area {
  border: 3px dashed #D8D0D1;
  border-radius: 6px;
  padding: 2.75rem 1.5rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.photo-picker-area:hover,
.photo-picker-area:active { border-color: var(--k-yellow); background: var(--k-bg-soft); }
.photo-picker-area .picker-icon {
  font-size: 3.8rem;
  color: var(--k-dark-hero);
  opacity: .7;
  margin-bottom: .75rem;
}
.photo-picker-area h4 { font-family: var(--font-head); color: var(--k-text); font-weight: 700; margin-bottom: .4rem; }
.photo-picker-area p  { color: var(--k-muted); font-size: .9rem; margin: 0; line-height: 1.5; }

/* ---- Cropper inline ---- */
.cropper-section          { display: none; background: #111; border-radius: 6px; overflow: hidden; }
.cropper-section.visible  { display: block; }

.cropper-wrap {
  width: 100%;
  height: 56vw;
  min-height: 240px;
  max-height: 420px;
  position: relative;
}
.cropper-wrap img { display: block; max-width: 100%; }

.cropper-toolbar {
  background: var(--k-dark-hero);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cropper-toolbar .btn-rot {
  flex: 1;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 11px 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  min-height: 50px;
}
.cropper-toolbar .btn-rot:hover { background: rgba(255,255,255,.22); }
.cropper-toolbar .btn-go {
  flex: 1.5;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--k-yellow);
  color: var(--k-on-yellow);
  border: none;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s;
  min-height: 50px;
}
.cropper-toolbar .btn-go:hover    { background: var(--k-yellow-hover); }
.cropper-toolbar .btn-go:disabled { opacity: .6; cursor: not-allowed; }

/* ---- Pasek postępu ---- */
.upload-progress {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  background: #fff;
  border-radius: 6px;
}
.upload-progress .spinner-border { width: 3rem; height: 3rem; color: var(--k-dark-hero); }
.upload-progress p { margin-top: 1rem; color: var(--k-muted); font-weight: 600; margin-bottom: 0; }

/* ---- Krok 2 — formularz ---- */
.form-step            { display: none; }
.form-step.visible    { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.preview-thumb {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
  margin-bottom: 1.25rem;
  position: relative;
}
.preview-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}
.preview-thumb .thumb-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #28a745;
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 700;
}

.oswiadczenie-box {
  background: var(--k-bg-soft);
  border-left: 4px solid var(--k-yellow);
  border-radius: 0 6px 6px 0;
  padding: .9rem 1.1rem;
  font-size: .82rem;
  color: var(--k-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* ---- Strona sukcesu ---- */
.success-hero              { text-align: center; padding: 1.5rem 0 1rem; }
.success-hero .check-icon  { font-size: 5rem; color: #28a745; margin-bottom: .75rem; }
.success-photo             { border-radius: 6px; overflow: hidden; box-shadow: 0 6px 32px rgba(0,0,0,.18); margin-bottom: 1.5rem; }
.success-photo img         { width: 100%; max-height: 55vw; object-fit: cover; display: block; }

.info-row             { display: flex; padding: .55rem 0; border-bottom: 1px solid var(--k-border); }
.info-row:last-child  { border-bottom: none; }
.info-label           { flex: 0 0 44%; font-size: .78rem; color: var(--k-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.info-value           { flex: 1; font-weight: 500; }

/* ============================================
   Responsywność
   ============================================ */
@media (max-width: 991.98px) {
  .main-header-inner { flex-wrap: wrap; }
  .header-actions { padding-top: 4px; }
}

@media (max-width: 768px) {
  .wizard-container              { max-width: 100%; padding: 0 .5rem; }
  .info-label                    { flex: 0 0 38%; }

  /* header: układ pionowy, wyśrodkowany */
  .topbar-inner                  { justify-content: center; height: 38px; }
  .topbar-left                   { display: none !important; }
  .main-header-inner             { flex-direction: column; align-items: center; padding-top: 0; gap: 4px; }
  .header-crest                  { position: relative; top: auto; left: auto; height: 72px; margin-top: -22px; }
  .header-crest-link             { z-index: 20; }
  .header-brand                  { padding-left: 0; text-align: center; max-width: 100%; }
  .brand-title                   { font-size: 1rem; margin-top: 4px; letter-spacing: .08em; }
  .main-nav                      { justify-content: center; gap: 16px; max-width: 100vw; padding: 0 6px; }
  .main-nav a                    { font-size: .82rem; padding: 5px 0 9px; }
  /* na mobile przyciski headera znikają — CTA przejmuje pływający przycisk */
  .header-actions                { display: none; }
  .index-hero                    { padding: 3.25rem 1.25rem 3.75rem; margin-bottom: 2.25rem; }
  .index-hero::before            { width: 300px; right: -110px; opacity: .8; }
  .hero-badge                    { font-size: .88rem; letter-spacing: .09em; padding: 6px 16px; white-space: normal; }
  .steps-section h2              { font-size: 1.45rem; }
}

@media (max-width: 576px) {
  h1.page-title                  { font-size: 1.35rem; }
  .page-container                { padding-top: .75rem; }
  .step-ind span                 { display: none; }
  .step-divider                  { max-width: 28px; }
  .cropper-wrap                  { height: 64vw; min-height: 200px; }
  .photo-picker-area             { padding: 2rem 1rem; }
  .photo-picker-area .picker-icon{ font-size: 3rem; }
  .site-footer .col-sm-6         { text-align: center !important; }

  .index-hero                    { padding: 2.75rem 1rem 3.25rem; }
  .index-hero h1                 { font-size: clamp(27px, 7.6vw, 34px); }
  .hero-lead                     { font-size: 1rem; }
  .index-hero .btn-accent        { font-size: 1rem; padding: .8rem 1.6rem; }
  .hero-cta-disabled             { font-size: 1.05rem; padding: 12px 20px; white-space: normal; text-align: center; }
  .step-card                     { padding: 1.1rem 1.15rem; }
  .step-num                      { width: 38px; height: 38px; font-size: 1.15rem; }
}
