/* Author pages styles */

.author-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(128, 128, 128, 0.2);
}

.author-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.book-count {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.back-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.back-link:hover {
    background-color: rgba(128, 128, 128, 0.1);
    text-decoration: none;
}

.books-section {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Authors index page */
.author-section {
    padding-top: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.author-section:last-child {
    border-bottom: none;
}

.author-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-section h2:hover {
    opacity: 0.8;
}

.author-section .book-count {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: normal;
}

.arrow {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.author-section h2:hover .arrow {
    opacity: 1;
}

@media (max-width: 768px) {
    .author-name {
        font-size: 2rem;
    }
    
    .header-left {
        gap: 0.25rem;
    }
    
    .menu-button, .toc-button, .settings-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .author-name {
        font-size: 1.8rem;
    }
}
