
/* =========================================================
   Mafia DOD — relacje z konwentów i kolory frakcji
   Plik jest ładowany po styles.css, dzięki czemu nie nadpisuje
   pozostałych własnych zmian w głównym arkuszu.
   ========================================================= */

/* Kolor frakcji ma wynikać z klasy postaci, nie z koloru ilustracji. */
.badge.badge-role.badge-faction-positive {
  color: #8be7ad;
  border-color: rgba(70, 190, 117, .42);
  background: rgba(32, 125, 72, .16);
}

.badge.badge-role.badge-faction-negative {
  color: #ff7e89;
  border-color: rgba(224, 66, 78, .45);
  background: rgba(151, 31, 43, .18);
}

.badge.badge-role.badge-faction-mad {
  color: #f0cd6d;
  border-color: rgba(218, 176, 60, .46);
  background: rgba(141, 104, 18, .18);
}

/* Lista relacji */
.recap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.recap-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 224, 211, .14);
  border-radius: var(--radius, 22px);
  background: var(--surface, #13161c);
  box-shadow: var(--shadow, 0 24px 70px rgba(0, 0, 0, .3));
  transition: transform .24s ease, border-color .24s ease;
}

.recap-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 161, 90, .42);
}

.recap-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.recap-card-media,
.recap-hero-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(196, 161, 90, .18), transparent 48%),
    #0d0f14;
}

.recap-card-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(232, 224, 211, .12);
}

.recap-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(196, 161, 90, .72);
}

.recap-media-fallback svg {
  width: 72px;
  height: 72px;
}

.recap-card-media img,
.recap-hero-cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.recap-card-content {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
}

.recap-card-content h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.recap-card-content p {
  margin: 0 0 22px;
  color: var(--muted, #b4ad9f);
}

.recap-card-content .text-link {
  margin-top: auto;
}

.recap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--gold, #c4a15a);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.recap-meta span + span::before {
  margin-right: 10px;
  color: rgba(232, 224, 211, .3);
  content: "•";
}

.recap-meta-large {
  margin-top: 24px;
}

/* Podstrona pojedynczej relacji */
.recap-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 52px;
  align-items: center;
}

.recap-hero-cover {
  min-height: 320px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(196, 161, 90, .28);
  border-radius: var(--radius, 22px);
  box-shadow: var(--shadow, 0 24px 70px rgba(0, 0, 0, .3));
}

.recap-article {
  max-width: 1120px;
}

.recap-prose {
  max-width: 850px;
  margin: 54px auto;
}

.recap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.recap-stats > div {
  padding: 24px;
  border: 1px solid rgba(232, 224, 211, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
}

.recap-stats strong {
  display: block;
  color: var(--gold, #c4a15a);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.recap-stats span {
  display: block;
  margin-top: 9px;
  color: var(--muted, #b4ad9f);
}

.recap-highlights {
  max-width: 850px;
  margin: 60px auto;
}

.recap-highlights ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.recap-highlights li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid rgba(232, 224, 211, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .022);
}

.recap-highlights li::before {
  position: absolute;
  top: 15px;
  left: 17px;
  color: var(--gold, #c4a15a);
  content: "✦";
}

.recap-quote {
  max-width: 850px;
  margin: 60px auto;
  padding: 30px 34px;
  border-left: 3px solid var(--red, #d4384a);
  background: rgba(143, 29, 44, .11);
}

.recap-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.35;
}

.recap-quote cite {
  display: block;
  margin-top: 16px;
  color: var(--gold, #c4a15a);
  font-style: normal;
}

.recap-gallery-section {
  margin: 72px 0 48px;
}

.recap-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.recap-gallery figure {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 224, 211, .12);
  border-radius: 16px;
  background: #0d0f14;
}

.recap-gallery figure:nth-child(5n + 1),
.recap-gallery figure:nth-child(5n + 2) {
  grid-column: span 6;
}

.recap-gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.recap-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.recap-gallery a:hover img {
  transform: scale(1.035);
}

.recap-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted, #b4ad9f);
  font-size: .85rem;
}

@media (max-width: 980px) {
  .recap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recap-hero-grid {
    grid-template-columns: 1fr;
  }

  .recap-hero-cover {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .recap-grid {
    grid-template-columns: 1fr;
  }

  .recap-card-content {
    min-height: 0;
  }

  .recap-gallery figure,
  .recap-gallery figure:nth-child(5n + 1),
  .recap-gallery figure:nth-child(5n + 2) {
    grid-column: 1 / -1;
  }

  .recap-hero-cover {
    min-height: 220px;
  }
}
