/* =================================================================
   PAGE: SINGLE AUTHOR (author.php)
================================================================= */

/* --- Single Author Page Header --- */
.author-section {
    position: relative;
    background-color: var(--bg-primary);
    padding: var(--space-3xl) var(--space-md);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    color: var(--text-primary);
}

.author-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.author-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.author-name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.author-lifespan {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

.author-details p { margin: 0; }

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1rem;
    font-weight: 500;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.author-bio {
    line-height: 1.7;
    opacity: 0.9;
}

/* --- Responsive Adjustments for Author Page --- */
@media (max-width: 768px) {
    .author-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-meta {
        justify-content: center;
    }

    .author-section {
        padding: var(--space-2xl) var(--space-md);
    }
}


#section-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg); /* This is the space after the title */
    /* 👇 This now matches the gap to create symmetry */
    margin: 0 0 var(--space-lg); 
}

/* Optional: These rules remove the default margins so the 'gap' property has full control */
#section-header-container .section-title {
    margin-bottom: 0;
    border-bottom: none;
}

.sort-options-wrapper {
    margin-bottom: 0;
}