/* ============================================================
   person-detail.css
   Styles for /person/{slug} - all classes used in person-detail.php
   Depends on theme.css variables.
   ============================================================ */

/* -- Hero --------------------------------------------------- */

.artist-hero {
    background: var(--bg-card-alt);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 36px;
}

.artist-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 640px) {
    .artist-hero-grid {
        grid-template-columns: 180px 1fr;
        gap: 36px;
        align-items: start;
    }
}
@media (min-width: 1024px) {
    .artist-hero-grid {
        grid-template-columns: 220px 1fr;
        gap: 48px;
    }
}

/* Photo column */
.artist-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.artist-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .artist-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        border-radius: 10px;
    }
}
.artist-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Social row */
.artist-social-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    letter-spacing: 0.5px;
}
.social-icon:hover { border-color: var(--accent-border); color: var(--accent); }

/* Info column */
.artist-info-col { min-width: 0; }

.artist-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-strong);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.2;
}
@media (min-width: 768px) { .artist-name { font-size: 36px; } }

.deceased-badge {
    font-size: 22px;
    color: var(--text-muted);
    font-weight: 400;
}

.artist-stage-name {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px;
    font-style: italic;
}

.artist-known-for {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.industry-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-faint);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent);
}

/* Quick facts */
.artist-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 100px;
}
.fact-item small  { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.fact-item strong { font-size: 13px; font-weight: 700; color: var(--text); }
.fact-item span   { font-size: 11px; color: var(--text-muted); }

.artist-bio-short {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* -- Content area ------------------------------------------- */

.artist-content { padding: 36px 0 72px; }

.content-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: 0; }

.section-heading {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-strong);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* -- Biography ---------------------------------------------- */

.bio-block {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 820px;
}

/* -- Filmography -------------------------------------------- */

.filmography-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 480px)  { .filmography-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .filmography-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .filmography-grid { grid-template-columns: repeat(6, 1fr); } }

.film-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.film-card:hover { transform: translateY(-3px); }

.film-poster {
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
}
.film-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.film-card:hover .film-poster img { transform: scale(1.05); }

.film-card strong { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.film-card small  { font-size: 11px; color: var(--text-muted); }
.film-card .character { color: var(--accent); font-style: italic; }

/* -- Career highlights -------------------------------------- */

.career-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) { .career-blocks { grid-template-columns: repeat(2, 1fr); } }

.career-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.career-block h3 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.career-block p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* -- Personal details --------------------------------------- */

.personal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 480px) { .personal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .personal-grid { grid-template-columns: repeat(4, 1fr); } }

.personal-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.personal-item-wide { grid-column: 1 / -1; }
@media (min-width: 480px) { .personal-item-wide { grid-column: span 2; } }

.personal-item small  { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.personal-item strong { font-size: 13px; font-weight: 700; color: var(--text); }

/* -- Family grid -------------------------------------------- */

.family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 640px) { .family-grid { grid-template-columns: repeat(3, 1fr); } }

.family-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.family-item small  { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.family-item strong { font-size: 13px; font-weight: 700; color: var(--text); }

/* -- Education ---------------------------------------------- */

.education-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.education-block p { font-size: 13px; color: var(--text-muted); margin: 0; }
.education-block strong { color: var(--text); }

/* -- Finance ------------------------------------------------ */

.finance-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.finance-block p { font-size: 13px; color: var(--text-muted); margin: 0; }
.finance-block strong { color: var(--text); }

/* -- Videos (trailers grid reused) ------------------------- */

.trailers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) { .trailers-grid { grid-template-columns: repeat(2, 1fr); } }

.video-embed {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card-alt);
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -- Trivia ------------------------------------------------- */

.trivia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) { .trivia-grid { grid-template-columns: repeat(2, 1fr); } }

.trivia-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}
.trivia-block h3 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.trivia-block p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* -- External links ----------------------------------------- */

.external-links-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.external-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s;
}
.external-links-list a:hover { border-color: var(--accent-border); }

/* -- Visual Enhancements ----------------------------------- */

/* Better artist hero on mobile */
@media (max-width: 639px) {
    .artist-hero-grid {
        text-align: center;
    }
    .artist-photo-col {
        align-items: center;
    }
    .artist-social-row {
        justify-content: center;
    }
    .artist-quick-facts {
        justify-content: center;
    }
}

/* Smooth card transitions */
.film-card {
    transition: transform 0.2s, border-color 0.2s;
}
.film-card:hover {
    transform: translateY(-3px);
}

/* Better biography readability */
.bio-block {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-soft);
}

/* Better personal grid spacing */
.personal-grid,
.family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .personal-grid,
    .family-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.personal-item,
.family-item {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.personal-item small,
.family-item small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.personal-item strong,
.family-item strong {
    font-size: 13px;
    color: var(--text);
}
.personal-item-wide {
    grid-column: 1 / -1;
}
