/* ============================================
   PSIA ZGRAJA Z BUGAJA - STRONA WWW
   Paleta: złoto-zielona, ciepła, akwarelowa
   ============================================ */

:root {
  --gold: #c8a45c;
  --gold-light: #f5e6c8;
  --gold-dark: #8b6f3a;
  --green: #5a7a52;
  --green-light: #e8f0e4;
  --green-dark: #3d5436;
  --cream: #fdf8f0;
  --cream-dark: #f0e8d8;
  --brown: #6b4c3b;
  --brown-light: #8b6b56;
  --text: #2c2416;
  --text-soft: #5c4f3d;
  --text-muted: #8a7d6b;
  --white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(44, 36, 22, 0.08);
  --shadow-medium: 0 8px 40px rgba(44, 36, 22, 0.12);
  --shadow-strong: 0 16px 60px rgba(44, 36, 22, 0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAWIGACJA
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(253, 248, 240, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 164, 92, 0.15);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-soft); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'Caveat', cursive; font-size: 1.6rem; font-weight: 600;
  color: var(--brown);
}
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft);
  transition: var(--transition); letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-cta {
  background: var(--green); color: var(--white) !important;
  padding: 10px 24px; border-radius: 100px;
}
.nav-cta:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--brown);
  margin: 5px 0; transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 180vh; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; text-align: center;
  padding: 0 24px 60px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 10%;
  filter: brightness(0.97);
  position: sticky; top: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 50%,
      rgba(44, 36, 22, 0.35) 65%,
      rgba(44, 36, 22, 0.6) 75%,
      rgba(253, 248, 240, 0.85) 85%,
      rgba(253, 248, 240, 1) 92%
    );
}
.hero-content {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-content.visible {
  opacity: 1; transform: translateY(0);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-kicker {
  font-family: 'Caveat', cursive; font-size: 1.3rem; color: #ffffff;
  margin-bottom: 16px; letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.15);
}
.hero-title-line { display: block; }
.hero-title-line.accent {
  font-style: italic; color: rgba(255,255,255,0.9);
  font-size: 0.85em;
}
.hero-subtitle {
  font-size: 1.2rem; color: #ffffff; max-width: 560px;
  margin: 0 auto 40px; line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px; font-weight: 500;
  font-size: 0.95rem; transition: var(--transition); cursor: pointer;
  border: none; font-family: inherit;
}
.btn-primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 4px 16px rgba(90, 122, 82, 0.3);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.15); color: #ffffff;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.25); }
.btn-spotify {
  background: #1DB954; color: var(--white);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.3);
}
.btn-spotify:hover { background: #1aa34a; transform: translateY(-2px); }
.btn-spotify svg { flex-shrink: 0; }
.hero-quote {
  margin-top: 80px; padding: 24px 24px 40px; position: relative;
  font-family: 'Playfair Display', serif; font-style: italic;
  color: var(--text-muted); font-size: 1.1rem;
  text-shadow: none;
}
.hero-quote cite { display: block; font-size: 0.85rem; margin-top: 8px; font-style: normal; color: var(--text-muted); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 40px; background: var(--gold);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SEKCJA O CZYM
   ============================================ */
.about-section { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 24px;
  color: var(--brown);
}
.section-title.center { text-align: center; }
.section-subtitle {
  text-align: center; color: var(--text-muted); font-size: 1.1rem;
  margin-bottom: 64px; font-family: 'Caveat', cursive; font-size: 1.3rem;
}
.about-lead { font-size: 1.15rem; line-height: 1.8; margin-bottom: 16px; color: var(--text-soft); }
.about-text p { margin-bottom: 16px; color: var(--text-soft); }
.about-text em { color: var(--gold-dark); font-style: italic; }
.about-stats { display: flex; flex-direction: column; gap: 32px; }
.stat {
  background: var(--white); padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); border-left: 4px solid var(--gold);
}
.stat-number {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 3rem; color: var(--green); font-weight: 700;
}
.stat-label { font-size: 0.95rem; color: var(--text-muted); }

/* ============================================
   BOHATEROWIE
   ============================================ */
.characters-section {
  padding: 120px 0; background: var(--white);
}
.characters-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.character-card {
  background: var(--cream); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.character-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.character-img {
  aspect-ratio: 3/4; overflow: hidden; background: var(--cream-dark);
}
.character-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.character-card:hover .character-img img { transform: scale(1.05); }
.character-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.character-info h3 {
  font-size: 1.5rem; margin-bottom: 4px; color: var(--brown);
}
.character-breed {
  font-family: 'Caveat', cursive; font-size: 1.1rem; color: var(--gold-dark);
  display: block; margin-bottom: 12px;
}
.character-method {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 12px;
}
.character-desc { font-size: 0.9rem; color: var(--text-soft); flex: 1; margin-bottom: 16px; }
.character-quote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 0.95rem; color: var(--text-muted);
  border-top: 1px solid var(--cream-dark); padding-top: 12px;
}

/* ============================================
   MĄDROŚCI STOIKA
   ============================================ */
.wisdom-section {
  padding: 100px 0;
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
}
.wisdom-carousel { position: relative; min-height: 180px; }
.wisdom-quote {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.8s ease;
  border: none; margin: 0; padding: 0 20px;
}
.wisdom-quote.active { opacity: 1; }
.wisdom-quote p {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem); max-width: 700px;
  line-height: 1.6; color: var(--gold-light);
}
.wisdom-quote cite {
  display: block; margin-top: 16px; font-style: normal;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
}
.wisdom-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 32px;
}
.wisdom-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: var(--transition);
}
.wisdom-dot.active { background: var(--gold); transform: scale(1.3); }

/* ============================================
   ODCINKI
   ============================================ */
.episodes-section { padding: 120px 0; }
.episodes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.episode-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 28px; transition: var(--transition);
  border: 1px solid rgba(200, 164, 92, 0.15);
  position: relative; overflow: hidden;
}
.episode-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--green);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s ease;
}
.episode-card:hover::before { transform: scaleY(1); }
.episode-card:hover { box-shadow: var(--shadow-medium); transform: translateY(-4px); }
.episode-card.special { border-color: var(--gold); }
.episode-card.special .episode-num { color: var(--gold-dark); }
.episode-num {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  color: var(--green); font-weight: 700; display: block; margin-bottom: 8px;
}
.episode-card h3 {
  font-size: 1.05rem; margin-bottom: 8px; color: var(--brown);
  line-height: 1.4;
}
.episode-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.episode-lead {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-dark);
}

/* ============================================
   GALERIA
   ============================================ */
.gallery-section { padding: 120px 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; cursor: pointer;
  transition: var(--transition);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-strong); }
.gallery-item:hover img { transform: scale(1.08); }

/* ============================================
   SŁUCHAJ / SPOTIFY
   ============================================ */
.listen-section { padding: 120px 0; background: var(--cream-dark); }
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.listen-lead { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 16px; line-height: 1.8; }
.listen-text p { color: var(--text-soft); margin-bottom: 24px; }
.listen-player {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-medium);
}
.listen-album-art {
  border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: 20px; aspect-ratio: 16/9;
}
.listen-album-art img { width: 100%; height: 100%; object-fit: cover; }
.listen-now-playing {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #1DB954; font-weight: 600; display: block; margin-bottom: 4px;
}
.listen-info strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.listen-author { font-size: 0.85rem; color: var(--text-muted); }
.listen-embed { margin-top: 24px; border-radius: 12px; overflow: hidden; }
.listen-illustration {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.listen-illustration img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s ease;
}
.listen-illustration:hover img { transform: scale(1.03); }
.listen-waveform {
  display: flex; align-items: end; gap: 3px; height: 32px; margin-top: 20px;
  justify-content: center;
}
.listen-waveform span {
  width: 4px; background: #1DB954; border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.listen-waveform span:nth-child(1)  { height: 40%; animation-delay: 0s; }
.listen-waveform span:nth-child(2)  { height: 70%; animation-delay: 0.1s; }
.listen-waveform span:nth-child(3)  { height: 50%; animation-delay: 0.2s; }
.listen-waveform span:nth-child(4)  { height: 90%; animation-delay: 0.3s; }
.listen-waveform span:nth-child(5)  { height: 60%; animation-delay: 0.4s; }
.listen-waveform span:nth-child(6)  { height: 80%; animation-delay: 0.15s; }
.listen-waveform span:nth-child(7)  { height: 45%; animation-delay: 0.25s; }
.listen-waveform span:nth-child(8)  { height: 100%; animation-delay: 0.35s; }
.listen-waveform span:nth-child(9)  { height: 55%; animation-delay: 0.45s; }
.listen-waveform span:nth-child(10) { height: 75%; animation-delay: 0.05s; }
.listen-waveform span:nth-child(11) { height: 40%; animation-delay: 0.2s; }
.listen-waveform span:nth-child(12) { height: 65%; animation-delay: 0.3s; }
.listen-waveform span:nth-child(13) { height: 85%; animation-delay: 0.1s; }
.listen-waveform span:nth-child(14) { height: 50%; animation-delay: 0.4s; }
.listen-waveform span:nth-child(15) { height: 35%; animation-delay: 0.25s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* ============================================
   AUTOR
   ============================================ */
.author-section { padding: 120px 0; }
.author-grid { max-width: 680px; margin: 0 auto; text-align: center; }
.author-lead {
  font-family: 'Caveat', cursive; font-size: 1.4rem;
  color: var(--gold-dark); margin-bottom: 24px;
}
.author-text p { color: var(--text-soft); margin-bottom: 16px; }

/* ============================================
   STOPKA
   ============================================ */
.footer {
  background: var(--brown); color: rgba(255,255,255,0.7);
  padding: 60px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 48px; align-items: center;
}
.footer-brand h3 {
  font-family: 'Caveat', cursive; font-size: 1.4rem;
  color: var(--gold-light); margin-bottom: 8px;
}
.footer-brand p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-quote {
  text-align: right; font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 0.9rem; color: rgba(255,255,255,0.5);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); display: none;
  justify-content: center; align-items: center;
  cursor: zoom-out; padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm);
  object-fit: contain;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 140px; }
  .listen-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-links { justify-content: center; }
  .footer-quote { text-align: center; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--cream); flex-direction: column;
    padding: 24px; gap: 16px; box-shadow: var(--shadow-medium);
    transform: translateY(-120%); transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .characters-grid { grid-template-columns: 1fr; }
  .episodes-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 24px 60px; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
}

/* ============================================
   ANIMACJE POJAWIANIA
   ============================================ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
