/**
 * MCI People - rand_people / people shortcode
 * Person cards with photo, town tag, name, title, bio
 */

.mci-people-empty {
  padding: 1.5rem;
  text-align: center;
  color: #666;
  background: #f5f5f5;
  border-radius: 4px;
}

/* People grid */
.mci-people-grid.people-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  max-width: 100%;
  padding: 0.5rem;
}

@media (min-width: 576px) {
  .mci-people-grid.people-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 900px) {
  .mci-people-grid.people-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Person card */
.person-card.mci-person-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.person-card.mci-person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Person photo area */
.person-card .person-photo {
  position: relative;
  aspect-ratio: 19 / 11;
  overflow: hidden;
}

.person-card .person-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #c9a227, #a67c00);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}

.person-card .person-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.person-card:hover .person-photo-img {
  transform: scale(1.05);
}

.person-card .person-photo-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.person-card .person-photo-bg .silhouette {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card .person-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

/* Town tag */
.person-card .town-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.person-card .town-tag .pin {
  margin-right: 0.25em;
  font-style: normal;
}

/* Person body */
.person-card .person-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.person-card .person-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.person-card .person-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4A6FA5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person-card .person-bio {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin-top: 0.25rem;
  flex: 1;
}

.person-card .person-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2E4A7A;
  text-decoration: none;
  transition: color 0.2s;
}

.person-card .person-link:hover {
  color: #1a3355;
}

/* People archive - ad cell spans full width */
.mci-people-archive .mci-people-ad-cell {
  grid-column: 1 / -1;
}

.mci-people-archive .mci-people-ad {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

.mci-people-archive .mci-people-ad iframe,
.mci-people-archive .mci-people-ad ins {
  max-width: 100%;
}

/* People archive pagination */
.mci-people-pagination {
  margin-top: 2.5rem;
  padding: 1rem 0;
}

.mci-people-pagination-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mci-people-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2E4A7A;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mci-people-pagination .page-numbers:hover {
  background: #f3f4f6;
  border-color: #2E4A7A;
  color: #1a3355;
}

.mci-people-pagination .page-numbers.current {
  background: #2E4A7A;
  border-color: #2E4A7A;
  color: #fff;
}

.mci-people-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.mci-people-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mci-people-pagination ul li {
  margin: 0;
}
