/* Read More Button Styles */
.read-more-btn {
    background-color: transparent;
    border: none;
    color: var(--book-color-accent);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin-left: 0.25rem;
    display: inline;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.read-more-btn:hover {
    color: var(--book-color-accent);
    opacity: 0.8;
    text-decoration: none;
}

.read-more-btn:focus {
    outline: 2px solid var(--book-color-accent);
    outline-offset: 2px;
}

/* Modal Overlay Styles */
.description-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.description-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.description-modal-header {
    background-color: var(--book-color-accent);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.description-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.description-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.7;
    font-size: 1.1rem;
}

.description-modal-body p {
    margin: 0 0 1rem 0;
}

.description-modal-body p:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive adjustments */
@media screen and (max-width: 63.9375rem) {
    .description-modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .description-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .description-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .description-modal-body {
        padding: 1.5rem;
        max-height: 70vh;
        font-size: 1rem;
    }
}

@media screen and (min-width: 1440px) {
    .book-banner-content-wrap {
        padding: 2rem 4.0625rem !important;
    }
}

/* 125% zoom level specific padding */
@media screen and (min-resolution: 1.25dppx) {
    .book-banner-content-wrap {
        padding: 2rem 4.0625rem !important;
    }
}

/* Alternative approach for 125% zoom using transform scale detection */
@media screen and (min-width: 1440px), 
       screen and (min-resolution: 1.25dppx),
       screen and (-webkit-device-pixel-ratio: 1.25) {
    .book-banner-content-wrap {
        padding: 2rem 4.0625rem !important;
    }
}

.book-banner p {
    margin: 1rem 0 2rem;
}