/* Books Page Specific Styles */

.book-detail-section {
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.book-detail-section:last-of-type {
    border-bottom: none;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.book-image-col img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.book-info-col {
    padding-top: 0;
}

.book-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.book-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    color: #555;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.lulu-embed-placeholder {
    background-color: #f5f5f5;
    border: 2px dashed #cccccc;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.lulu-embed-placeholder p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.lulu-embed-placeholder code {
    background-color: #e0e0e0;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

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

.book-description p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.book-specs {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
}

.btn-review {
    margin-top: 0.5rem;
}

/* Responsive for Books Page */
@media (max-width: 968px) {
    .book-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-image-col img {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .book-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .book-title {
        font-size: 1.5rem;
    }
    
    .book-price {
        font-size: 1.3rem;
    }
}

/* Review Overlay Panel (slides in from right) */
.review-overlay {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background-color: #ff0080;
    color: #ffffff;
    z-index: 2000;
    padding: 4rem 3rem;
    overflow-y: auto;
    transition: right 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.review-overlay.active {
    right: 0;
}

.close-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-overlay:hover {
    transform: scale(1.2);
}

.review-overlay-content {
    max-width: 500px;
}

.review-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.review-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 2rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
    margin-bottom: 0;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffffff;
}

.thank-you-message {
    text-align: center;
    padding: 3rem 0;
}

.thank-you-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Review Overlay */
@media (max-width: 1200px) {
    .review-overlay {
        width: 60%;
        right: -60%;
    }
}

@media (max-width: 968px) {
    .review-overlay {
        width: 70%;
        right: -70%;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .review-overlay {
        width: 85%;
        right: -85%;
        padding: 2.5rem 1.5rem;
    }
    
    .review-title {
        font-size: 1.75rem;
    }
    
    .star-rating {
        font-size: 1.75rem;
    }
}
