/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ КНИГИ ========== */

.book-main {
    background: white;
    padding: 2rem 0;
}

.book-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.book-cover {
    position: sticky;
    top: 100px;
}

.book-cover img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 1.5rem;
}

.book-rating {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.rating-stars {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.25rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.book-info {
    min-width: 0;
}

.book-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-author a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.book-author a:hover {
    color: var(--secondary-color);
}

.book-series {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-series a {
    color: white;
    text-decoration: underline;
}

.book-description {
    margin-bottom: 2rem;
}

.book-description h3 {
    margin-bottom: 1rem;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-formats {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.download-formats h4 {
    margin-bottom: 1rem;
}

.formats-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.format-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.format-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Вкладки */
.book-details {
    background: white;
    padding: 3rem 0;
}

.details-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--text-light);
}

/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ АВТОРА ========== */

.author-profile {
    background: white;
    padding: 2rem 0;
}

.author-header {
    display: flex;
    gap: 3rem;
    align-items: start;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
    border: 5px solid white;
}

.author-info {
    flex: 1;
}

.author-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.author-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.author-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.btn-subscribe-author {
    margin-top: 1.5rem;
}

.author-biography,
.author-awards,
.author-books,
.author-series,
.author-quotes,
.similar-authors {
    padding: 2rem 0;
}

.biography-content {
    max-width: 900px;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--text-color);
}

.biography-content p {
    margin-bottom: 1rem;
}

.awards-list {
    display: grid;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ========== */

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Анимации */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== СТИЛИ ДЛЯ НОВЫХ СТРАНИЦ ========== */

/* Горизонтальная карточка книги */
.book-card-horizontal {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.book-card-horizontal:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.book-card-horizontal img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.book-info {
    flex: 1;
}

.book-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.book-info h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.book-info h3 a:hover {
    color: var(--primary-color);
}

.book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.book-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Детальная страница книги */
.book-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.book-cover-large img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.book-author {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.book-author a {
    color: var(--primary-color);
    text-decoration: none;
}

.book-meta-detail {
    background: var(--bg-light);
    padding: 1    padding: 1    padding:8p    padding: 1  ttom: 1.5rem;
}

.boo.boo.booetail p {
    m    m    m    m    m.book-actions {
               ex;
       : 1rem;
    margin-bottom: 1.5rem;
                      

.bt.bt.bt.bt.bt.bt.dd.bt.bt.bt.bt.bt.bt.dd.bt-size: 1.1rem;
}

.btn-favorite-outline {
    background: wh    background: wh    backgroun--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5re    paddinger-radius: 8p    padding: 0.7ointer;
    transition: all 0.3s;
}

.btn-favorite-outline.btn-favorite-outline.btn-favorite-outline.btn-favoco.btn-favorite

.formats-list {
                                        flex-wrap: wrap;                 0.5rem;
}



                    ck               ri                    ck  white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Детал/* Де страница автора */
.author-header {
    display: grid;
    grid-template-colu    grid-template-colu    gri;
                                                          width: 100%;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    box-shadota {
    background:     background:     backging: 1.5rem;
    border-ra    border-ra    border-ra    border-ra    border-ra    bo marg    border-ra    bordeor-bio, .author-awards, .author-quotes, .author-books-section {
    margin-bottom: 3rem;
}

.award-ite.award-ite.award-ite.award-ite.award-ite.award-ite.award-ite.award-ite.aiu.award-ite.award-ite.awam: 1rem;
}

.award-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-light);
}

.about-aut.about-aut.about-aut.about-a: .about-   padding-top: 3rem;
    border-top: 1px solid #eee;
}

.author-preview {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

..................g {
    width: 150px;
    height: 150px;
    object-fit    object-fit    object-fit    object-fit    object-fit    object-fiцы */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var    background: linear-gradient(135deg, var(--primar 3    background: linear-gradient(135deg, var(--primary-color), var    background: linear-gradient(135deg, var(--primp {
    font-size: 1.2rem;
    opacity: 0.9;
}
