/* Book Detail Styles */
.book-detail-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.book-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-detail-cover {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-detail-cover img {
    width: 100%;
    max-width: 300px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.book-purchase {
    width: 100%;
    text-align: center;
}

.book-detail-info {
    flex: 1;
    min-width: 300px;
}

.book-detail-info .category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.book-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.book-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.book-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.book-description li {
    margin-bottom: 0.5rem;
}

.author-section {
    border-top: 1px solid var(--medium-gray);
    padding-top: 2rem;
}

.author-info {
    display: block;
    margin-top: 1rem;
}

.author-photo {
    float: none; /* Remove the float */
    width: 120px;
    margin-bottom: 15px; /* Add space between photo and bio */
    display: inline-block; /* Keep it inline */
}

.author-photo img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Wrap bio around photo */
.author-bio {
    line-height: 1.6;
}

.book-reviews {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.review {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: bold;
}

.rating {
    color: #ffc107;
}

.related-books {
    margin-bottom: 3rem;
}

.related-books .book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.subscription-options {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.subscription-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.plan {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--light-gray);
    text-align: center;
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plan.featured {
    background-color: var(--primary-color);
    color: white;
    border: none;
    position: relative;
    z-index: 1;
    transform: scale(1.05);
}

.plan.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan h3 {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.plan.featured .price {
    color: white;
}

.saving {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.plan ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.plan li {
    margin-bottom: 0.8rem;
}

.plan .btn {
    width: 100%;
}

/* Responsive styles for book details */
@media (max-width: 768px) {
    .book-detail {
        flex-direction: column;
    }
    
    .book-detail-cover {
        margin: 0 auto;
    }
    
    .author-photo {
        display: block;
        float: none;
        margin: 0 auto 1rem auto;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .subscription-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .plan.featured {
        order: -1;
    }
}