/* ===================================================================
   Pectus Football Team — alternatywny landing
   Retro polski football: plakat PRL/lata 90, papier, sepia, czerwień
   =================================================================== */

/* ----------- Tailwind theme extension via plugin --------------------- */
/* Tailwind CDN allows config via window.tailwind.config (not used here);
   we expose tokens through CSS custom properties + utility classes. */

:root {
  --paper:  #f4ead5;   /* kremowy beż */
  --cream:  #ece1c2;   /* drugi ton papieru */
  --sepia:  #8b6f47;   /* sepia średnia */
  --rust:   #b53728;   /* czerwień plakatu */
  --rust-d: #8b201a;   /* czerwień ciemniejsza, atrament */
  --ink:    #1a1614;   /* czerń atramentu, lekko ciepła */
  --grass:  #3d5a2e;   /* akcent murawy */
}

html { scroll-behavior: smooth; }
body { font-family: 'Playfair Display', serif; background-color: var(--paper); color: var(--ink); }

/* shorthand utility-style classes used across markup */
.bg-paper { background-color: var(--paper); }
.bg-cream { background-color: var(--cream); }
.bg-rust  { background-color: var(--rust); }
.bg-ink   { background-color: var(--ink); }
.text-paper { color: var(--paper); }
.text-cream { color: var(--cream); }
.text-ink   { color: var(--ink); }
.text-rust  { color: var(--rust); }
.border-ink { border-color: var(--ink); }
.border-rust { border-color: var(--rust); }

.font-bebas   { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.01em; }
.font-oswald  { font-family: 'Oswald', sans-serif; }
.font-playfair{ font-family: 'Playfair Display', serif; }
.font-typewriter { font-family: 'Special Elite', monospace; }

/* paper grain — subtle CSS noise via gradients */
.paper-grain {
  background-image:
    radial-gradient(rgba(139,111,71,0.08) 1px, transparent 1px),
    radial-gradient(rgba(26,22,20,0.05) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0%, rgba(139,111,71,0.08) 100%);
  background-size: 4px 4px, 7px 7px, 100% 100%;
  background-position: 0 0, 2px 3px, 0 0;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* ===================== TICKER ===================== */
.ticker-track {
  animation: ticker 38s linear infinite;
  will-change: transform;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ===================== HERO ACCENTS ===================== */
.text-stroke {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  display: inline-block;
}
@supports not (-webkit-text-stroke: 1px black) {
  .text-stroke { color: var(--ink); }
}

.poster-frame {
  position: relative;
  filter: drop-shadow(0 22px 30px rgba(26,22,20,0.25));
}

/* sepia / vintage filter on photos */
.sepia-image {
  filter: sepia(0.45) contrast(1.05) saturate(0.85) hue-rotate(-12deg);
}

/* "scotch tape" pieces over poster corners */
.tape {
  position: absolute;
  width: 92px;
  height: 26px;
  background: rgba(244,234,213,0.65);
  border: 1px dashed rgba(26,22,20,0.18);
  box-shadow: 0 2px 4px rgba(26,22,20,0.18);
  backdrop-filter: blur(1px);
}
.tape-1 { top: -10px; left: 12%;  transform: rotate(-8deg); }
.tape-2 { top: -10px; right: 12%; transform: rotate(7deg); }
.tape-3 { top: -10px; left: 50%;  transform: translateX(-50%) rotate(-3deg); }

/* ===================== STAMP BUTTON ===================== */
.btn-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.85rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 4px 4px 0 var(--rust);
}
.btn-stamp:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rust);
  background: var(--rust-d);
}
.btn-stamp:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--rust);
}
.btn-stamp--inverse {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--rust-d);
}
.btn-stamp--inverse:hover {
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--rust-d);
  color: var(--ink);
}

/* ===================== PLAYER CARDS ===================== */
.player-card {
  --rot: 0deg;
  list-style: none;
  transform: rotate(var(--rot));
  transition: transform 0.2s ease;
}
.player-card:hover {
  transform: rotate(0deg) translateY(-4px);
  z-index: 5;
}
.player-card-inner {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  padding: 0.75rem 0.75rem 1rem;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.player-card-inner img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: sepia(0.55) contrast(1.05) saturate(0.85) hue-rotate(-12deg);
  display: block;
}
.player-num {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  line-height: 0.85;
  color: var(--rust);
  text-shadow:
     1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
     0 1px 0 var(--paper),
     0 -1px 0 var(--paper);
}
.player-meta {
  border-top: 1px solid var(--ink);
  padding-top: 0.5rem;
}
.player-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.player-role {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: rgba(26,22,20,0.7);
  margin-top: 0.25rem;
}

/* ===================== EVENT CARDS (rust section) ===================== */
.event-card {
  position: relative;
  border-top: 4px solid var(--paper);
  padding-top: 1.2rem;
}
.event-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: rgba(244,234,213,0.6);
}
.event-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  line-height: 0.95;
  margin-top: 0.4rem;
}
.event-card-body {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 0.9rem;
  color: rgba(244,234,213,0.92);
}
.event-card-tag {
  margin-top: 1.2rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: rgba(244,234,213,0.7);
}

/* ===================== FIXTURE LIST (newspaper) ===================== */
.fixture-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}
.fixture {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.fixture::before {
  content: '★';
  position: absolute;
  left: -1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rust);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.fixture:hover::before { opacity: 1; }

.fixture-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 2px solid var(--ink);
  padding-right: 1rem;
  line-height: 0.95;
}
.fixture-day {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  color: var(--rust);
}
.fixture-month {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}
.fixture-year {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: rgba(26,22,20,0.55);
  margin-top: 0.15rem;
}

.fixture-event {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: rgba(26,22,20,0.6);
}
.fixture-match {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  margin-top: 0.35rem;
}
.fixture-place {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.4rem;
  color: rgba(26,22,20,0.75);
}

.fixture-status {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--ink);
  display: inline-block;
}
.status-confirmed { background: var(--paper); color: var(--ink); }
.status-charity   { background: var(--rust); color: var(--paper); border-color: var(--rust); }
.status-private   { background: var(--ink); color: var(--paper); }

@media (max-width: 640px) {
  .fixture {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .fixture-cta {
    grid-column: 2 / -1;
    margin-top: 0.4rem;
  }
  .fixture-day { font-size: 2.4rem; }
  .fixture-match { font-size: 1.4rem; }
}

/* ===================== GALLERY (taped polaroids) ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.4rem 1.6rem;
  margin-top: 1rem;
}
.gallery-item {
  --rot: 0deg;
  position: relative;
  background: var(--paper);
  border: 8px solid var(--ink);
  padding: 0.75rem 0.75rem 1.4rem;
  transform: rotate(var(--rot));
  box-shadow: 6px 6px 0 rgba(26,22,20,0.4);
  transition: transform 0.25s ease;
  margin: 0;
}
.gallery-item:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.03);
  z-index: 4;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: sepia(0.55) contrast(1.05) saturate(0.85) hue-rotate(-12deg);
  display: block;
}
.gallery-item figcaption {
  font-family: 'Special Elite', monospace;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.7rem;
  color: rgba(26,22,20,0.85);
}

/* ===================== FORM ===================== */
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row > span {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: rgba(244,234,213,0.7);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(244,234,213,0.4);
  padding: 0.6rem 0.2rem;
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(244,234,213,0.4); font-style: italic; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-bottom-color: var(--rust);
}
.form-row select option { background: var(--ink); color: var(--paper); }

/* ===================== MISC ===================== */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .player-card, .gallery-item, .btn-stamp { transition: none; }
}
