/*
 * Shared styling for the inner public pages, mirroring the visual language
 * established by the front page (see home.css).
 */

/* Page header ------------------------------------------------------------ */

.page-header {
  max-height: 340px;
}

.page-header-image {
  height: 340px;
}

.page-header-fallback {
  height: 220px;
  background: linear-gradient(135deg, #3a0d0a 0%, var(--intense-color) 100%);
}

.page-header-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
}

.page-header-eyebrow {
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.page-header-subtitle {
  opacity: 0.9;
}

/* Cards ------------------------------------------------------------------ */

.play-card,
.person-card,
.archive-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-card:hover,
.person-card:hover,
.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.play-card-media {
  height: 220px;
  overflow: hidden;
}

/* How a list of productions is ordered. Pills rather than a dropdown: there
   are four of them and the one in force should be readable without opening
   anything. */
.sort-link {
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 2rem;
  white-space: nowrap;
}

.sort-link:hover {
  border-color: var(--intense-color);
  color: var(--intense-color);
}

.sort-link.active {
  background-color: var(--intense-color);
  border-color: var(--intense-color);
  color: white;
}

/* The picture on a Chronik card, which is a stamp beside the title rather
   than a card's head: the Chronik is a list to run an eye down, and a row of
   full-width photographs would be a different page. */
.archive-thumb {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.person-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.poster-tile,
.initials-tile {
  background: linear-gradient(135deg, #333 0%, #666 100%);
}

/* A production nobody has photographed yet. The title is what the tile has to
   offer, so the tile offers the title. */
.poster-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.poster-tile-wide {
  aspect-ratio: 16 / 10;
}

.poster-tile-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.45);
}

.poster-tile-title {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  /* Three lines is enough for the longest title the club has; the rest is cut
     rather than allowed to push the tile out of shape. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-tile-author {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* A portrait nobody has uploaded yet. The initials say who is missing from the
   wall, which a silhouette does not, and they are the same for one person
   every time. */
.initials-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  user-select: none;
}

.initials-tile-lg {
  font-size: 3.5rem;
}

/* Person portrait -------------------------------------------------------- */

.person-portrait {
  aspect-ratio: 3 / 4;
}

/* Date badge ------------------------------------------------------------- */

.date-badge {
  background-color: var(--highlight-color);
  color: #000;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-width: 4.5rem;
}

.date-badge-lg {
  min-width: 5.5rem;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
}

/* Showtime rows ---------------------------------------------------------- */

.showtime-row:last-child {
  border-bottom: 0 !important;
}

/* Rich text -------------------------------------------------------------- */

.play-description :last-child {
  margin-bottom: 0;
}

.search-thumb {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: .35rem;
}

.article-cover {
  height: 200px;
  object-fit: cover;
}

/* The picture beside the newest Beitrag on the front page. The height is on
   the column and not on the picture: a minimum alone let the picture grow to
   its own full height and drag the card down with it, and Bootstrap's h-100 is
   !important, so only a column with a height of its own can hold it. */
.news-cover {
  height: 220px;
}

@media (min-width: 768px) {
  .news-cover {
    height: 320px;
  }
}
