/* Gallery SSR Detail & Listing Page Styles */

/* MBTI Profile — compact inline, centered to match card width */
.mbti-profile {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 400px;
  margin: 0 auto 12px;
  font-size: 15px;
  line-height: 1.5;
}
.mbti-profile__badge {
  display: inline-block;
  background: #111827;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.mbti-profile__name {
  font-weight: 700;
  color: var(--fg, #111827);
}
.mbti-profile__sep {
  color: var(--line, #D1D5DB);
}
.mbti-profile__desc {
  color: var(--muted, #6B7280);
}

/* Detail main card area — original size, centered */
.gallery-detail-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.gallery-detail-main .gallery-card {
  margin-bottom: 16px;
}

/* CTA in detail page */
.gallery-detail-cta {
  text-align: center;
  margin-bottom: 8px;
}
.gallery-card__cta--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent, #111827);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 560px;
}
.gallery-card__cta--link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Related cards */
.related-cards {
  margin-top: 40px;
  margin-bottom: 32px;
}
.related-cards__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
  gap: 32px;
  justify-content: center;
}

/* Detail link on cards */
.gallery-card__detail-link {
  display: block;
  text-align: center;
  padding: 10px 0 2px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.gallery-card__detail-link:hover {
  color: var(--fg);
}

/* Back to list */
.gallery-detail-back {
  text-align: center;
  padding: 24px 0;
}
.gallery-detail-back--top {
  text-align: left;
  padding: 0 0 16px;
}
.gallery-detail-back__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.gallery-detail-back__link:hover {
  color: var(--fg);
}

/* Gallery detail section */
.gallery-detail-section {
  padding-top: 32px;
  padding-bottom: 32px;
}
