/* css/style.css */
:root {
    --warm-bg: #fdf6f0;
    --warm-dark: #2c1810;
    --warm-accent: #8b4513;
    --warm-mid: #c68642;
    --warm-light: #f5deb3;
    --warm-muted: #6b4c3b;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--warm-bg);
    color: var(--warm-dark);
    font-family: var(--font-sans);
    line-height: 1.7;
}

/* ── Header ── */
header {
    background: linear-gradient(135deg, var(--warm-dark) 0%, var(--warm-accent) 100%);
    color: var(--warm-light);
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

header h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: normal;
}

header p.tagline {
    font-size: 1.1rem;
    color: var(--warm-light);
    opacity: 0.85;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* ── Navigation ── */
nav {
    background-color: var(--warm-accent);
    text-align: center;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav a {
    display: inline-block;
    color: var(--warm-light);
    text-decoration: none;
    padding: 14px 28px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
}

nav a:hover {
    background-color: var(--warm-dark);
}

/* ── Main layout ── */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Sections ── */
section {
    margin: 60px 0;
    scroll-margin-top: 60px;
}

section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--warm-accent);
    border-bottom: 2px solid var(--warm-light);
    padding-bottom: 10px;
    margin-bottom: 24px;
    font-weight: normal;
}

section p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--warm-muted);
}

/* ── Bio intro block ── */
.bio-intro {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.bio-text {
    flex: 1;
    min-width: 260px;
}

.bio-facts {
    background: var(--warm-light);
    border-left: 4px solid var(--warm-accent);
    padding: 20px 24px;
    border-radius: 4px;
    min-width: 220px;
    flex-shrink: 0;
}

.bio-facts h3 {
    font-family: var(--font-serif);
    color: var(--warm-accent);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.bio-facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    font-size: 0.92rem;
}

.bio-facts dt {
    font-weight: bold;
    color: var(--warm-dark);
}

.bio-facts dd {
    color: var(--warm-muted);
}

/* ── Filmography table ── */
.film-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.97rem;
}

.film-table thead tr {
    background-color: var(--warm-accent);
    color: var(--warm-light);
}

.film-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.film-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--warm-light);
    vertical-align: top;
}

.film-table tbody tr:nth-child(even) {
    background-color: #fdf0e4;
}

.film-table tbody tr:hover {
    background-color: var(--warm-light);
}

.film-table .year {
    color: var(--warm-mid);
    font-weight: bold;
    white-space: nowrap;
    width: 60px;
}

.film-table .medium {
    font-size: 0.8rem;
    background: var(--warm-light);
    color: var(--warm-accent);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid var(--warm-mid);
}

/* ── Quote block ── */
blockquote {
    border-left: 4px solid var(--warm-mid);
    margin: 32px 0;
    padding: 16px 24px;
    background: var(--warm-light);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--warm-muted);
}

blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--warm-mid);
}

/* ── Personal life cards ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.card {
    background: white;
    border: 1px solid var(--warm-light);
    border-top: 4px solid var(--warm-accent);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h3 {
    font-family: var(--font-serif);
    color: var(--warm-accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ── Awards ── */
.awards-list {
    list-style: none;
    padding: 0;
}

.awards-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--warm-light);
    display: flex;
    gap: 16px;
    font-size: 0.97rem;
}

.awards-list .award-year {
    color: var(--warm-mid);
    font-weight: bold;
    min-width: 48px;
}

/* ── Footer ── */
footer {
    background: var(--warm-dark);
    color: var(--warm-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 80px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    header h1 { font-size: 2.2rem; }
    nav a { padding: 12px 14px; font-size: 0.8rem; }
    .bio-intro { flex-direction: column; }
}

/* ── Filmography filter controls ── */
.filmography-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filmography-controls label {
    font-size: 0.95rem;
    color: var(--warm-muted);
    font-weight: bold;
}

.filmography-controls select {
    appearance: none;
    background-color: white;
    border: 2px solid var(--warm-accent);
    border-radius: 4px;
    padding: 6px 32px 6px 12px;
    font-size: 0.95rem;
    color: var(--warm-dark);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b4513' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filmography-controls select:focus {
    outline: 2px solid var(--warm-mid);
    outline-offset: 2px;
}

.film-count {
    font-size: 0.85rem;
    color: var(--warm-mid);
    font-style: italic;
}

/* ── Medium badge variants ── */
.medium.tv {
    background: #e8f4e8;
    color: #2d6a2d;
    border-color: #5a9e5a;
}

.medium.stage {
    background: #e8e4f4;
    color: #3d2d6a;
    border-color: #7a5a9e;
}

.no-results {
    text-align: center;
    color: var(--warm-muted);
    font-style: italic;
    padding: 32px;
}

/* ── Clickable rows ── */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: var(--warm-light) !important;
    outline: 2px solid var(--warm-accent);
    outline-offset: -2px;
}

/* ── Bio gallery ── */
.bio-gallery {
    margin-top: 32px;
    text-align: center;
}

.bio-gallery a {
    display: inline-block;
    text-decoration: none;
}

.bio-gallery-photo {
    width: 100%;
    max-width: 560px;
    height: 380px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 3px solid var(--warm-light);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.bio-gallery a:hover .bio-gallery-photo {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.bio-gallery-caption {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--warm-accent);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ── Social links ── */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--warm-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    border: 1px solid rgba(253,246,240,0.4);
    padding: 6px 14px;
    border-radius: 20px;
    transition: opacity 0.2s, background 0.2s;
}

.social-link:hover {
    opacity: 1;
    background: rgba(253,246,240,0.15);
}
