/* ============================================
   PROMPT RATING SYSTEM STYLES
   ============================================ */

/* --- Star Rating Widget on Cards --- */
.rating-row {
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 3px;
    color: var(--text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.star-btn:hover,
.star-btn.preview {
    color: #f59e0b;
    transform: scale(1.15);
}

.star-btn.filled {
    color: #f59e0b;
}

.star-btn.filled svg {
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.5));
}

/* --- Rating Filter Bar --- */
.rating-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.rating-filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
    white-space: nowrap;
    flex-shrink: 0;
}

.rating-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rating-pill {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-pill:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.07);
}

.rating-pill.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #f59e0b;
}

.rating-stats {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* --- No Ratings Empty State --- */
.no-ratings-msg {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    gap: 8px;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 480px) {
    .rating-filter-bar {
        gap: 8px;
    }
    .rating-stats {
        margin-left: 0;
        width: 100%;
    }
}
