/* ALX Reviews Frontend Styles */

.alx-detailed-ratings {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.alx-rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.alx-rating-item:last-child {
    margin-bottom: 0;
}

.alx-rating-label {
    font-weight: 600;
    margin-right: 10px;
    min-width: 80px;
    color: #333;
}

.alx-rating-stars {
    display: inline-block;
}

.alx-stars {
    display: inline-flex;
    align-items: center;
}

.alx-star {
    color: #ddd;
    font-size: 16px;
    margin-right: 2px;
    transition: color 0.2s ease;
}

.alx-star.filled {
    color: #ffc107;
}

.alx-star:last-child {
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alx-rating-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .alx-rating-label {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 
 * Hvězdy – procentuální zobrazení
 * Spodní vrstva: styl "far fa-star" (regular)
 * Horní vrstva: styl "fas fa-star" (solid)
 */

 .custom-star-rating-summary {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    font-size: 0.7em;
    line-height: 1;
}

.custom-star-rating-summary::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    content: '\f005\f005\f005\f005\f005';
    letter-spacing: 0.4em;
    color: #d3ced2;
}

.custom-star-rating-summary span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

.custom-star-rating-summary span::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f005\f005\f005\f005\f005';
    letter-spacing: 0.4em;
    color: #ffbd00;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
}

.advanced-review-rating .custom-star-rating-summary {
    font-size: 0.7em;
}

.bookworm-wc-star-rating .custom-star-rating-summary {
    font-size: 1em;
}