/* ═══════════════════════════════════════════════════════════════
   Flavia Testa — fan.css
   Page-specific styles for fan.html (requires style.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Header ──────────────────────────────────────────────── */
.fan-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--line);
}

.fan-header__left {
  padding: 52px var(--pad-x);
  border-right: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.fan-header__title {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.0;
}

.fan-header__title em { font-style: italic; }

.fan-header__right {
  padding: 52px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.fan-header__desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-mid);
  max-width: 400px;
}

.fan-header__acronym {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.6;
}

.fan-header__acronym span {
  color: var(--ink);
  font-size: 36px;
}

/* ── Posts List ───────────────────────────────────────────────── */
#postsList {
  border-bottom: 0.5px solid var(--line);
}

/* ── Fan Card ─────────────────────────────────────────────────── */
.fan-card {
  border-bottom: 0.5px solid var(--line);
}

/* Header row — always visible, click to expand */
.fan-card__header {
  display: grid;
  grid-template-columns: 52px 1fr 32px;
  align-items: center;
  gap: 20px;
  padding: 18px var(--pad-x);
  cursor: pointer;
  transition: background 0.15s;
}

.fan-card__header:hover {
  background: var(--paper-warm);
}

.fan-card__thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  filter: saturate(0.78);
  border-radius: 0;
  flex-shrink: 0;
}

.fan-card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.fan-card__chevron {
  font-size: 12px;
  color: var(--ink-soft);
  transition: transform 0.25s ease;
  justify-self: end;
  user-select: none;
}

/* Rotate chevron when open */
.fan-card.open .fan-card__chevron {
  transform: rotate(180deg);
}

/* Expandable body */
.fan-card__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  border-top: 0.5px solid var(--line);
}

.fan-card__body.show {
  max-height: 1000px;
}

.fan-card__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 28px var(--pad-x) 32px;
  align-items: start;
}

.fan-card__image {
  width: 180px;
  height: auto;
  object-fit: cover;
  filter: saturate(0.78);
  flex-shrink: 0;
}

.fan-card__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-mid);
  margin: 0;
}

/* When no image — text takes full width */
.fan-card__inner:not(:has(.fan-card__image:not(.d-none))) {
  grid-template-columns: 1fr;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fan-header { grid-template-columns: 1fr; }
  .fan-header__left {
    border-right: none;
    border-bottom: 0.5px solid var(--line);
  }
}

@media (max-width: 600px) {
  .fan-card__header {
    grid-template-columns: 40px 1fr 24px;
    gap: 14px;
    padding: 14px var(--pad-x);
  }

  .fan-card__title { font-size: 16px; }

  .fan-card__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px var(--pad-x) 24px;
  }

  .fan-card__image { width: 100%; }
}
