/* Review Modal Styles */
.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 5px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input .star-label {
    position: relative;
    width: 1.5em;
    font-size: 2rem;
    font-weight: 300;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-input .star-label::before {
    content: "★";
    position: absolute;
    opacity: 0;
    color: #00B67A;
}

.rating-input .star-label:hover::before,
.rating-input .star-label:hover ~ .star-label::before {
    opacity: 1;
}

.rating-input input[type="radio"]:checked ~ .star-label::before {
    opacity: 1;
}

.rating-input:hover input[type="radio"]:checked ~ .star-label::before {
    opacity: 0.7;
}

/* Review Display Styles */
.review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.review-date {
    font-size: 0.875rem;
    color: #666;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating .stars {
    color: #00B67A;
    font-size: 1rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-top: 8px;
}

/* Review Summary Styles */
.review-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.overall-rating {
    text-align: center;
    margin-bottom: 20px;
}

.overall-rating .rating-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00B67A;
    line-height: 1;
}

.overall-rating .rating-stars {
    color: #00B67A;
    font-size: 1.5rem;
    margin: 5px 0;
}

.overall-rating .total-reviews {
    color: #666;
    font-size: 0.9rem;
}

.rating-breakdown {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.rating-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    background: #00B67A;
    height: 100%;
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 0.875rem;
    color: #666;
    min-width: 30px;
    text-align: right;
}

/* Validation Error Styles */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.validation-message::before {
    content: "⚠ ";
    margin-right: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rating-input .star-label {
        font-size: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-rating {
        align-self: flex-start;
    }
} 