/* ============================================================
 * motodez.ro — Rating stars (Etapa 5B)
 * ============================================================ */

/* Read-only stars display */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}
.rating-stars .star {
    color: #ffb703;
    font-size: 18px;
}
.rating-stars .star-empty {
    color: #dee2e6;
}
.rating-stars .star-half {
    background: linear-gradient(90deg, #ffb703 50%, #dee2e6 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rating-stars .rating-count {
    font-size: 13px;
    color: #6c757d;
    margin-left: 4px;
    font-weight: 400;
}
.rating-stars-sm .star {
    font-size: 14px;
}
.rating-stars-sm .rating-count {
    font-size: 12px;
}

/* Rating mini (inline for lists) */
.rating-mini {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}
.rating-mini .star {
    font-size: 14px;
    color: #ffb703;
    line-height: 1;
}
.rating-mini .star-empty {
    color: #dee2e6;
}

/* Rating picker (form input) */
.rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    font-size: 40px;
    line-height: 1;
    user-select: none;
}
.rating-picker input[type="radio"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.rating-picker label {
    color: #dee2e6;
    cursor: pointer;
    transition: transform 0.08s, color 0.15s;
    padding: 4px;
}
.rating-picker label:hover,
.rating-picker label:hover ~ label,
.rating-picker input:checked ~ label {
    color: #ffb703;
    text-shadow: 0 2px 8px rgba(255, 183, 3, 0.35);
}
.rating-picker label:hover {
    transform: scale(1.15);
}
.rating-picker input:focus-visible + label {
    outline: 2px solid #0d1b2a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reason panel (report + admin) — shared with admin.css convention */
.reason-panel {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}
.reason-panel.is-open {
    display: block;
}
.reason-hint {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 6px;
}

@media (max-width: 576px) {
    .rating-picker {
        font-size: 34px;
    }
}
