
/* ===== ОСНОВНАЯ КОМПОНОВКА (из default.php) ===== */
.book-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Десктопная версия */
.desktop-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.book-cover-column {
    flex: 0 0 300px;
}

.book-content-column {
    flex: 1;
}

/* Двухколоночный блок */
.two-columns {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.left-column, 
.right-column {
    flex: 1;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
        gap: 20px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .desktop-layout {
        flex-direction: column;
    }
    
    .book-content-header { order: 1; }
    .authors-list { order: 2; }
    .book-cover-column { 
        order: 3;
        width: 100%;
        margin: 15px 0;
    }
    .mobile-meta-container { 
        order: 4;
        margin-top: 10px;
    }
    
    .two-columns {
        flex-direction: column;
    }
}

/* Переключение мета-данных (десктоп/мобильные) */
.desktop-meta {
    display: block;
}

.mobile-meta {
    display: none;
}

@media (max-width: 768px) {
    .desktop-meta {
        display: none;
    }
    .mobile-meta {
        display: block;
    }
}

/* ===== СТИЛИ ДЛЯ БЛОКА ПЕРЕВОДА (НОВОЕ) ===== */
.translation-block {
    margin: 20px 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
    font-size: 1.1rem;
    color: #495057;
    display: flex;
    align-items: center;
}

.translation-block i.fas {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.2rem;
}

.translation-text {
    font-style: italic;
}


/* ===== ОБНОВЛЕННЫЕ СТИЛИ АВТОРОВ ===== */
.authors-list {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.authors-list .book-meta-item {
    align-items: flex-start;
}

.authors-list .fa-user,
.authors-list .fa-user-edit {
    color: #95a5a6;
    margin-right: 10px;
    font-size: 1.1em;
    margin-top: 3px;
}

.authors-list .book-meta-item strong {
    color: #7f8c8d;
    font-weight: 500;
}

.authors-list .book-meta-item a {
    color: #006298;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.3s ease;
    margin-right: 4px;
}

.authors-list .book-meta-item a:hover {
    color: #d43a2f;
    text-decoration: underline !important;
}


@media (max-width: 768px) {
    .authors-list {
        font-size: 1rem;
    }
}

/* ===== ВИЗУАЛЬНОЕ ОФОРМЛЕНИЕ (из карточки) ===== */
/* Общие стили карточки */
.book-cover {
	position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

/* Заголовок */
.page-title {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.page-title small {
    font-size: 1.2rem;
    color: #495057;
    display: block;
    margin-top: 5px;
}




/* Мета-данные */
.book-meta {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

/* Общие стили для всех book-meta-item */
.book-meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Стили ТОЛЬКО для мета-информации */
.book-meta .book-meta-item {
    font-size: 0.95rem;
}

/* Стили ТОЛЬКО для авторов */
.authors-list .book-meta-item {
    font-size: 1.1rem;
}

.book-meta-item i {
    color: #95a5a6; /* Серый как у авторов */
    margin-right: 10px; /* Увеличено с 8px */
    font-size: 1.1em; /* Размер как у авторов */
    margin-top: 3px; /* Выравнивание по базовой линии */
    min-width: 16px; /* Фиксированная ширина для выравнивания */
    text-align: center;
}

.book-meta-item strong {
    color: #7f8c8d; /* Серо-голубой как у авторов */
    font-weight: 600; /* Полужирный как у авторов */
    margin-right: 5px;
}

.book-meta-item > div {
    color: #2c3e50; /* Темно-синий как у авторов */
	font-weight: 600; /* Единая жирность */
}

.book-meta-item a {
    color: #006298; /* Синий для ссылок (как в авторах) */
    font-weight: 600; /* Единая жирность */
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.book-meta-item a:hover {
    color: #d43a2f; /* Красный при наведении */
    text-decoration: underline !important;
}

/* Для длинных ссылок (DOI) */
.book-meta-item .doi-link {
    word-break: break-all;
    font-weight: 600 !important; /* Жирный текст */
}

/* Счетчик просмотров */
.view-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Описание и авторы */
.left-column h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.right-column h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 0px; /* Одинаковый отступ как в левой колонке */
    border-bottom: none; /* Только убираем границу */
}

/* ===== СТИЛИ БЛОКА АВТОРОВ (BIO) ===== */
.authorbio .bio a {
    color: #006298 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.25s ease-out;
}

.authorbio .bio a:hover {
    color: #d43a2f !important;
    text-decoration: underline !important;
}


.authorbio .bio h4 {
    margin: 15px 0 10px 0;
    font-size: 1.2rem;
    color: #2b2d42;
}

.authorbio .bio div[itemprop="description"] {
    color: #2b2d42;
    font-weight: 500;
    line-height: 1.5;
}

.authorbio .bio div[itemprop="description"] a {
    color: #5f6c7b; /* Серо-голубой вместо синего */
    font-weight: 500; /* Меньшая жирность */
    text-decoration: none !important; /* Убираем подчеркивание */
    transition: color 0.25s ease-out;
}

.authorbio .bio div[itemprop="description"] a:hover {
    color: #d43a2f; /* Красный при наведении */
    text-decoration: underline !important;
}


/* Футер */
.book-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

/* Адаптивные правки */
@media (max-width: 768px) {
    .view-counter {
        bottom: 10px;
        right: 10px;
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-title small {
        font-size: 1rem;
    }
/* Адаптация для блока перевода (НОВОЕ) */
    .translation-block {
        margin: 15px 0;
        font-size: 1rem;
        padding: 10px 12px;
    }
    
    .translation-block i.fas {
        font-size: 1rem;
    }
}

