/* ============================================
   AUTHORS/FILMMAKERS PAGE STYLES
   ============================================
   NOTE: This file extends style.css
   NOTE: Uses shared utilities and variables from style.css
   NOTE: Similar structure to film cards but adapted for filmmakers
   ============================================ */

/* ============================================
   AUTHORS PAGE VARIABLES
   ============================================ */
:root {
    --filmmaker-header-bg: var(--bg-body);
    --filmmaker-photo-border: rgba(189, 124, 56, 0.3);
    --filmmaker-name-color: var(--text-primary);
    --filmmaker-meta-color: #666;
    --filmmaker-bio-color: #888;
    --film-tag-bg: #f0f0f0;
    --film-tag-color: var(--accent);
    --film-tag-hover-bg: var(--accent);
    --film-tag-hover-color: #ffffff;
}

/* ============================================
   AUTHORS PAGE LAYOUT
   ============================================ */

.authors-page {
    background-color: var(--bg-body);
    padding-top: 80px;
    /* Account for fixed header */
}

/* ============================================
   SIMPLE HEADER SECTION
   ============================================
   NOTE: No big background image, just clean text header
   ============================================ */

.authors-header {
    padding: var(--spacing-md) 0 var(--spacing-md);
    background-color: var(--filmmaker-header-bg);
    border-bottom: none;
}

.authors-header__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--filmmaker-name-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.authors-header__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--filmmaker-meta-color);
    font-weight: 400;
    max-width: 700px;
}

/* ============================================
   FILMMAKERS CONTAINER
   ============================================
   NOTE: Uses same structure as posts-container from main page
   ============================================ */

.filmmakers-container {
    padding: var(--spacing-lg) 0;
}

/* Featured Filmmakers Header */
.featured-filmmakers__header h2 {
    color: var(--featured-post-header-color);
}

/* Regular Filmmakers Header */
.regular-filmmakers__header h2 {
    color: var(--regular-post-header-color);
}

/* ============================================
   FEATURED FILMMAKERS GRID
   ============================================
   NOTE: Similar to featured-posts layout
   ============================================ */

.featured-filmmakers {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--featured-post-card-width));
    gap: var(--featured-post-card-gap);
    margin-bottom: var(--spacing-lg);
    overflow: visible;
    justify-content: flex-start;
}

/* Hide scrollbar */
.featured-filmmakers::-webkit-scrollbar {
    display: none;
}

/* ============================================
   FILMMAKER CARD - FEATURED
   ============================================ */

.filmmaker-card--featured {
    width: var(--featured-post-card-width);
    min-width: var(--featured-post-card-width);
    flex-shrink: 0;
    height: var(--featured-post-card-height);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: rgb(21, 21, 21);
    transition: var(--transition-smooth);
}

/* Filmmaker Photo Container */
.filmmaker-card__photo {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: height var(--transition-fast);
}

.filmmaker-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.filmmaker-card--featured:hover .filmmaker-card__photo {
    height: 50%;
}

.filmmaker-card--featured:hover .filmmaker-card__photo img {
    transform: scale(1.05);
}

/* Photo Overlay */
.filmmaker-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.filmmaker-card__photo:hover .filmmaker-card__overlay {
    opacity: 1;
}

/* Filmmaker Info Panel (Slides up on hover) */
.filmmaker-card--featured .filmmaker-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #ffffff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(100%);
    transition: transform var(--transition-fast);
    z-index: 5;
}

.filmmaker-card--featured:hover .filmmaker-card__info {
    transform: translateY(0);
}

/* Preview Info (Visible before hover) */
.filmmaker-card__preview-info {
    transition: opacity 0.2s ease-out;
    z-index: 4;
}

.filmmaker-card--featured:hover .filmmaker-card__preview-info {
    opacity: 0;
}

.filmmaker-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.filmmaker-card__meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
}

.filmmaker-card__meta span:not(:last-child)::after {
    content: '•';
    margin-left: 0.75rem;
    opacity: 0.5;
}

.filmmaker-card__bio {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filmmaker-card__films {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
}

.film-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--film-tag-bg);
    color: var(--film-tag-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.film-tag:hover {
    background: var(--film-tag-hover-bg);
    color: var(--film-tag-hover-color);
}

/* ============================================
   REGULAR FILMMAKERS GRID (Alias for featured for backward compat)
   ============================================ */

.regular-filmmakers {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--featured-post-card-width));
    gap: var(--featured-post-card-gap);
    margin-bottom: var(--spacing-lg);
    overflow: visible;
    justify-content: flex-start;
}

/* Redundant regular card styles removed - all use --featured now */

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .authors-page {
        padding-top: 60px;
    }

    .authors-header {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .authors-header__title {
        font-size: 2.5rem;
    }

    .authors-header__subtitle {
        font-size: 1.1rem;
    }

    .featured-filmmakers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filmmaker-card--featured {
        width: 100%;
        max-width: 400px;
    }

    .regular-filmmakers {
        justify-content: center;
    }

    .filmmaker-card--regular {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .filmmaker-card__films {
        display: none;
        /* Hide film tags on very small screens */
    }

    .filmmaker-card__bio {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}


/* ============================================
   SINGLE FILMMAKER PROFILE STYLES
   ============================================ */

/* Align films grid to the left on filmmaker profile page */
.authors-page .regular-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--regular-post-card-width));
    gap: var(--regular-post-card-gap);
    justify-content: start;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Remove border from header */
.authors-header {
    border-bottom: none;
}

/* Wrapper for films section - align with profile grid */
.filmmaker-films-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0;
    margin-bottom: 20px !important;
    border-bottom: none;
    display: block;
}

.back-to-filmmakers-container {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    margin-top: 0;
    padding-bottom: 4rem;
}

.filmmaker-films-wrapper .posts-section__header {
    display: none;
}

.filmmaker-profile {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1rem;
    margin-bottom: 0;
    align-items: start;
}

.filmmaker-profile__photo {
    width: 100%;
    max-width: var(--regular-post-card-width);
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.filmmaker-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.filmmaker-profile__info {
    margin: 0;
    padding: 0;
}

.filmmaker-profile__info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.filmmaker-profile__meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.filmmaker-profile__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.filmmaker-profile__bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.filmmaker-profile__filmography {
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.filmmaker-profile__filmography h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.filmmaker-profile__filmography ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filmmaker-profile__filmography li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.filmmaker-profile__filmography li i {
    margin-right: 0.5rem;
    font-size: 0.85em;
    opacity: 0.6;
}

.filmmaker-profile__filmography a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.filmmaker-profile__filmography a:hover {
    color: #fff;
}

.filmmaker-profile__films h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filmmaker-profile__films-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


@media (max-width: 768px) {
    .filmmaker-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filmmaker-profile__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filmmaker-profile__filmography {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }

    .authors-page .regular-posts {
        grid-template-columns: 1fr;
    }

    .filmmaker-profile__photo {
        max-width: 100%;
    }
}