/**
 * PWM Rating Widget Styles
 * These styles are loaded on front-end pages for the star rating widget.
 */

.pwm-community-rating {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.pwm-community-rating .rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pwm-community-rating .rating-label {
    font-weight: 600;
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwm-community-rating .rating-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.pwm-community-rating .score-number {
    font-size: 28px;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.pwm-community-rating .score-max {
    font-size: 14px;
    color: #64748b;
}

.pwm-community-rating .star-display {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.pwm-community-rating .star-icon {
    font-size: 22px;
    transition: transform 0.2s;
}

.pwm-community-rating .star-icon.filled {
    color: #f59e0b;
}

.pwm-community-rating .star-icon.empty {
    color: #374151;
}

.pwm-community-rating .vote-count {
    font-size: 13px;
    color: #64748b;
    margin-left: 8px;
}

.pwm-community-rating .rate-prompt p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.pwm-community-rating .star-input {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.pwm-community-rating .star-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #374151;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    padding: 0;
    line-height: 1;
}

.pwm-community-rating .star-btn:hover,
.pwm-community-rating .star-btn.hovered {
    color: #f59e0b;
    transform: scale(1.2);
}

.pwm-community-rating .star-btn.selected {
    color: #f59e0b;
}

.pwm-community-rating .rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
}

.pwm-community-rating .your-rating {
    font-size: 16px;
    color: #f59e0b;
    margin: 0;
    padding: 8px 0;
}

.pwm-community-rating .rating-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

.pwm-community-rating .rating-feedback.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.pwm-community-rating .rating-feedback.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Compact rating for cards */
.compact-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.compact-rating .star {
    font-size: 14px;
}

.compact-rating .star.on {
    color: #f59e0b;
}

.compact-rating .star.off {
    color: #374151;
}

.compact-rating .rating-num {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    margin-left: 4px;
}
