/* @import ./components/person-card.css */
/* ─── Shared person card ──────────────────────────────────────────── */

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem 1.5rem;
    padding: 1rem 0;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: inherit;
    text-decoration: none;
    padding: 0;
    background: transparent;
    transition: transform 0.2s ease;
}

.person-card:hover {
    transform: translateY(-4px);
}

/* ─── Portrait ───────────────────────────────────────────────────── */

.person-card-thumb {
    width: 100%;
    aspect-ratio: 1;
    max-width: 200px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* The hover effect: a soft ring that hugs the circle exactly */
.person-card:hover .person-card-thumb {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.06),
                0 12px 28px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.person-card-thumb-empty {
    background: #e8e8e8 url(/images/person-placeholder.svg) center / cover no-repeat;
}

/* Subtle inner gradient overlay on hover for visual polish */
.person-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.person-card:hover .person-card-thumb::after {
    opacity: 1;
}

/* ─── Body ───────────────────────────────────────────────────────── */

.person-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.person-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.person-card:hover .person-card-name {
    color: #d40000;
}

.person-card-role {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #888;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ─── Performers: character above, name below (spectacle context) ── */

.spectacle-performers .person-card-role {
    order: -1;
    color: #d40000;
}

/* Per-performance assignment dates — "Играет: 5 мая, 12 мая".
   Rendered under the name when admin has set explicit cast for
   upcoming performances. */
.person-card-dates {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #555;
}

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 2rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.75rem 1rem;
    }
    .person-card-thumb {
        max-width: 140px;
    }
    .person-card-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
}
.page-people { background: #fff; }

.people-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.people-header {
    margin-bottom: 3rem;
}

/* Top row: heading on the left, archive-toggle button on the right.
   Wraps on narrow viewports so the button drops below the heading. */
.people-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.people-header-archive {
    margin: 0;
    flex-shrink: 0;
}

.people-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Category filters — left-aligned now that the archive button has its
   own row above. */
.people-departments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.people-dept-link {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.people-dept-link:hover {
    background: #e8e8e8;
}

.people-dept-link.is-active {
    background: #000;
    color: #fff;
}

.people-dept-link-outline {
    background: #fff;
    border: 1px solid #000;
}

.people-dept-link-outline:hover {
    background: #000;
    color: #fff;
}

.people-empty {
    padding: 4rem 1rem;
    text-align: center;
    color: #999;
}

/* Reuse .people-grid + .person-card from spectacle.css — they already work */

@media (max-width: 768px) {
    .people-heading { font-size: 1.75rem; }
    .people-dept-link { font-size: 0.85rem; padding: 0.5rem 1rem; }
}