/* Bohaterowie page styles */
.bohaterowie-page {
  --page-section-gap: var(--space-48);
  --page-section-gap-tablet: var(--space-64);
  --page-section-gap-desktop: var(--space-96);
}

.bohaterowie-page .chapter-intro {
  background-color: var(--color-vanilla-cream);
  padding-block: var(--space-48) var(--space-32);
}

.bohaterowie-page .chapter-intro__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
}

.bohaterowie-page .chapter-intro__tag {
  align-self: flex-start;
}

.bohaterowie-page .chapter-intro__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  font-weight: var(--weight-heading);
  color: var(--color-blueberry-violet);
  letter-spacing: -0.02em;
}

.bohaterowie-page .chapter-intro__title {
  font-size: var(--text-display-l);
  line-height: var(--leading-display-l);
  margin-block-end: 0;
  max-width: 18ch;
}

.bohaterowie-page .chapter-intro__deck {
  font-size: var(--text-body-l);
  line-height: var(--leading-body-l);
  max-width: 65ch;
  margin-block-end: 0;
}

.bohaterowie-page .section {
  padding-block: var(--page-section-gap);
}

.bohaterowie-page .section--cream {
  background-color: var(--color-vanilla-cream);
}

.bohaterowie-page .section--peach {
  background-color: var(--color-soft-peach);
}

.bohaterowie-page .section--pistachio {
  background-color: var(--color-pistachio-green);
}

.bohaterowie-page .section__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
  margin-block-end: var(--space-24);
}

.bohaterowie-page .section__tag {
  align-self: flex-start;
}

.bohaterowie-page .section__header h2 {
  margin-block-end: 0;
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
}

.bohaterowie-page .section__lead {
  font-size: var(--text-body-l);
  line-height: var(--leading-body-l);
  max-width: 70ch;
  margin-block-end: var(--space-24);
}

.bohaterowie-page .section__intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  align-items: start;
  margin-block-end: var(--space-32);
}

.bohaterowie-page .section__intro-copy {
  min-width: 0;
}

.bohaterowie-page .section__intro-copy p {
  max-width: 65ch;
}

.bohaterowie-page .section__intro-copy h3 {
  margin-block-end: var(--space-12);
}

.bohaterowie-page .section__intro-media {
  min-width: 0;
  margin-block-end: 0;
}

.bohaterowie-page .section__intro-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-24);
  border: 1px solid rgba(62, 42, 35, var(--border-opacity-subtle));
}

.bohaterowie-page .section__intro-media figcaption {
  margin-block-start: var(--space-8);
}

.bohaterowie-page .role-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.bohaterowie-page .role-card {
  background-color: var(--color-sugar-white);
  border: 1px solid rgba(62, 42, 35, var(--border-opacity-subtle));
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-card);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  min-width: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bohaterowie-page .role-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.bohaterowie-page .role-card__tag {
  align-self: flex-start;
}

.bohaterowie-page .role-card h3 {
  margin-block-end: 0;
}

.bohaterowie-page .role-card p {
  margin-block-end: 0;
}

.bohaterowie-page .character-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.bohaterowie-page .character-card {
  background-color: var(--color-sugar-white);
  border: 1px solid rgba(62, 42, 35, var(--border-opacity-subtle));
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bohaterowie-page .character-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.bohaterowie-page .character-card__media {
  margin-block-end: 0;
  width: 100%;
}

.bohaterowie-page .character-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.bohaterowie-page .character-card__body {
  padding: var(--space-16) var(--space-24) var(--space-24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  min-width: 0;
}

.bohaterowie-page .character-card__tag {
  align-self: flex-start;
}

.bohaterowie-page .character-card__body h3 {
  margin-block-end: 0;
}

.bohaterowie-page .character-card__body p {
  margin-block-end: 0;
}

.bohaterowie-page .section__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  align-items: start;
}

.bohaterowie-page .section__split-copy,
.bohaterowie-page .section__split-list {
  min-width: 0;
}

.bohaterowie-page .section__split-copy h3,
.bohaterowie-page .section__split-list h3 {
  margin-block-end: var(--space-12);
}

.bohaterowie-page .section__split-copy p,
.bohaterowie-page .section__split-list p {
  max-width: 65ch;
}

.bohaterowie-page .ability-list,
.bohaterowie-page .rules-list,
.bohaterowie-page .mode-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.bohaterowie-page .ability-list li,
.bohaterowie-page .rules-list li,
.bohaterowie-page .mode-list li {
  margin-block-end: 0;
  padding-inline-start: var(--space-24);
  position: relative;
}

.bohaterowie-page .ability-list li::before,
.bohaterowie-page .rules-list li::before,
.bohaterowie-page .mode-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--color-caramel-gold);
  font-size: var(--text-body-s);
  line-height: var(--leading-body-s);
}

.bohaterowie-page .panel--ability {
  margin-block-start: var(--space-32);
}

.bohaterowie-page .panel--ability h3 {
  margin-block-end: var(--space-12);
}

.bohaterowie-page .panel--ability p {
  margin-block-end: 0;
}

@media (min-width: 768px) {
  .bohaterowie-page .section {
    padding-block: var(--page-section-gap-tablet);
  }

  .bohaterowie-page .chapter-intro {
    padding-block: var(--space-64) var(--space-48);
  }

  .bohaterowie-page .section__intro-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-32);
  }

  .bohaterowie-page .section__intro-grid--reverse {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .bohaterowie-page .section__intro-grid--reverse .section__intro-copy {
    order: 2;
  }

  .bohaterowie-page .section__intro-grid--reverse .section__intro-media {
    order: 1;
  }

  .bohaterowie-page .role-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-24);
  }

  .bohaterowie-page .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
  }

  .bohaterowie-page .section__split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-32);
  }
}

@media (min-width: 1024px) {
  .bohaterowie-page .section {
    padding-block: var(--page-section-gap-desktop);
  }

  .bohaterowie-page .chapter-intro {
    padding-block: var(--space-96) var(--space-64);
  }

  .bohaterowie-page .character-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-24);
  }

  .bohaterowie-page .section__split {
    gap: var(--space-48);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bohaterowie-page .role-card,
  .bohaterowie-page .character-card {
    transition: none;
  }

  .bohaterowie-page .role-card:hover,
  .bohaterowie-page .character-card:hover {
    transform: none;
  }
}
