

.book-detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.book-info h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    color: #666;
}

.book-meta span {
    font-size: 1.1rem;
}

.rating {
    color: #ffc107;
    font-weight: bold;
}

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

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background: #c0392b;
}

.btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.book-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.book-description, .book-chapters, .book-recommendations {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.book-description h2, .book-chapters h2, .book-recommendations h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.book-description p {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

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

.chapters-filter select {
    padding: 0.6rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s;
}

.chapter-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.chapter-link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.chapter-title {
    font-weight: 500;
    color: #333;
}

.chapter-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.vip-badge {
    background: #ffc107;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 1rem;
}

@media (max-width: 968px) {
    .book-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover {
        max-width: 250px;
        margin: 0 auto;
    }

    .book-meta {
        align-items: center;
    }

    .book-actions {
        justify-content: center;
    }

    .chapters-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .chapter-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .chapter-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .book-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .chapter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .vip-badge {
        align-self: flex-start;
        margin-left: 0;
    }
}


.chapters-list .chapter-item {
    transition: all 0.3s ease;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}
.chapters-list .chapter-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.chapters-list .chapter-item:hover * {
    color: white !important;
}
.chapters-list .chapter-item:hover .chapter-meta {
    opacity: 0.9;
}
