/* ==========================================
   OPAC DETAIL PAGE STYLES
   Shared styles for book and work details
   ========================================== */

.detail-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    border: 1px solid #edf2f7;
    box-shadow: var(--shadow-sm);
}

.img-preview-container {
    border-radius: calc(var(--radius-lg) - 0.5rem);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.badge-light-soft {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Star Rating CSS */
.star-rating {
    font-size: 1.5rem;
    color: #ddd;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    transition: color 0.2s;
    margin-bottom: 0;
    padding: 0 2px;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #f39c12;
}

/* Rich Text Responsiveness */
.rich-text-content {
    line-height: 1.8;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
}

.rich-text-content iframe {
    width: 100% !important;
    max-width: 100%;
    border-radius: 12px;
}