/* Feather Star Rating Styles */
.rating .feather-star {
    font-size: 14px;
    color: #ddd; /* Empty star color */
    margin-right: 2px;
    display: inline-block;
}

.rating .feather-star.filled {
    color: #ffc107; /* Filled star color - gold/yellow */
}

.rating .feather-star.half {
    position: relative;
    color: #ddd; /* Empty star color */
}

.rating .feather-star.half::before {
    content: "\e9d5"; /* Feather star icon */
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107; /* Half-filled color */
}

/* Alternative approach for half stars using gradient */
.rating .feather-star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure proper spacing and alignment */
.rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-count {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
}

/* Hover effects for interactive ratings */
.rating.interactive .feather-star {
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating.interactive .feather-star:hover {
    color: #ffc107;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .rating .feather-star {
        color: #555; /* Darker empty star for dark theme */
    }
    
    .rating .feather-star.filled {
        color: #ffca28; /* Slightly brighter gold for dark theme */
    }
    
    .rating-count {
        color: #aaa;
    }
}

/* Compact version for smaller spaces */
.rating.compact .feather-star {
    font-size: 12px;
    margin-right: 1px;
}

.rating.compact .rating-count {
    margin-left: 6px;
    font-size: 12px;
}

/* Large version for hero sections */
.rating.large .feather-star {
    font-size: 18px;
    margin-right: 3px;
}

.rating.large .rating-count {
    margin-left: 10px;
    font-size: 16px;
}
