/* Star Rating System Styles */

.rating-container {
    display: flex;
    flex-direction: row-reverse; /* To make the hovering work in the correct direction */
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-star {
    font-size: 30px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.rating-star.active {
    color: #f39c12;
}

.rating-star.hover {
    color: #f1c40f;
}

/* Improve hover behavior */
.rating-container .rating-star:hover,
.rating-container .rating-star:hover ~ .rating-star {
    color: #f1c40f;
}

.rating-text {
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-accent, #7f8c8d);
    transition: color 0.3s;
}

/* Review Card Styles */
.review-card {
    background-color: var(--card-bg, white);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e0e0e0);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.review-author {
    font-weight: 600;
    color: var(--text-secondary, #2c3e50);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--accent-color, rgba(250, 108, 0, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.review-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-date {
    color: var(--text-accent, #7f8c8d);
    font-size: 14px;
}

.review-stars {
    margin-bottom: 10px;
}

.review-stars .star {
    font-size: 16px;
}

.review-stars .star.full,
.review-stars .star.half {
    color: #f39c12;
}

.review-stars .star.empty {
    color: #ddd;
}

.review-project {
    font-size: 14px;
    color: var(--text-accent, #7f8c8d);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.review-comment {
    color: var(--text-primary, #333);
    line-height: 1.6;
    font-size: 15px;
}

/* Reviews summary styles */
.reviews-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--bg-accent, #f5f5f5);
    border-radius: 8px;
    min-width: 150px;
}

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color, rgba(250, 108, 0, 1));
    line-height: 1;
}

.rating-count {
    margin-top: 8px;
    color: var(--text-accent, #7f8c8d);
    font-size: 14px;
}

/* Style for empty state */
.no-reviews {
    padding: 30px;
    text-align: center;
    background-color: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    color: var(--text-accent, #7f8c8d);
    font-style: italic;
}