/* Стили для обложки */
.cover-img {
    border-radius: 15px;
    transition: transform 0.3s ease;
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.cover-img:hover {
    transform: scale(1.02);
}

/* Стили для описания новеллы */
.novel-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #007bff;
    min-height: 500px; /* Минимальная высота для центровки */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.novel-description h1 {
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.novel-description p {
    color: #495057;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 1rem;
}

.novel-description .lead {
    font-weight: 500;
    color: #2c3e50;
}

/* Стили для кнопки */
.read-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .cover-img {
        max-height: 400px;
        max-width: 300px;
    }
    
    .read-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .novel-description {
        margin-top: 20px;
        min-height: auto; /* Убираем минимальную высоту на мобильных */
    }
    
    .align-items-center {
        align-items: flex-start !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .cover-img {
        max-height: 350px;
        max-width: 250px;
    }
}

/* Дополнительные стили для статистики */
.novel-stats h5 {
    color: #007bff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.novel-stats .col-md-4 {
    border-right: 1px solid #dee2e6;
}

.novel-stats .col-md-4:last-child {
    border-right: none;
}

/* Плавное появление элементов */
.container > * {
    animation: fadeInUp 0.6s ease;
}

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

/* Центровка контента в блоке описания */
.novel-description-content {
    width: 100%;
}