/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Book Preview Modal Specific Styles */
.book-preview-modal .modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.book-preview-image {
    flex: 1;
    min-width: 200px;
}

.book-preview-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-preview-content {
    flex: 2;
    min-width: 300px;
}

.book-preview-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.book-preview-content p {
    margin-bottom: 15px;
}

.book-preview-features {
    margin: 20px 0;
}

.book-preview-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.book-preview-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Newsletter Modal Specific Styles */
.newsletter-modal .modal-body {
    text-align: center;
    padding: 30px;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.newsletter-form button {
    width: 100%;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.book-card {
    position: relative;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .book-preview-modal .modal-body {
        flex-direction: column;
    }
    
    .modal {
        width: 95%;
    }
}
