/* Auto Generated Reviews Frontend Styles */
.wc-auto-generated-reviews {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wc-auto-generated-reviews h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Reviews Summary */
.reviews-summary {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.stars-display {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    color: #ddd;
    line-height: 1;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.total-reviews {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Reviews List */
.reviews-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item:hover {
    background-color: #fafafa;
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.review-rating {
    display: flex;
    gap: 1px;
}

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

.review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 15px;
}

.review-date {
    color: #888;
    font-size: 13px;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-auto-generated-reviews {
        margin: 20px 0;
        padding: 15px;
    }
    
    .reviews-summary {
        padding: 12px 15px;
    }
    
    .average-rating {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .rating-number {
        font-size: 24px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .review-content {
        font-size: 14px;
    }
    
    .wc-auto-generated-reviews h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .average-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .rating-number {
        font-size: 20px;
    }
    
    .stars-display .star {
        font-size: 16px;
    }
    
    .total-reviews {
        font-size: 14px;
    }
}

/* Animation Effects */
.review-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State (if needed) */
.reviews-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.reviews-loading::after {
    content: "Loading reviews...";
}

/* Empty State */
.no-reviews {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background: white;
    border-radius: 8px;
}

/* Verified Purchase Badge (if you want to add this feature later) */
.verified-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating Distribution (for future enhancement) */
.rating-distribution {
    margin-top: 15px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 13px;
}

.rating-bar-label {
    width: 40px;
    color: #666;
}

.rating-bar-fill {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.rating-bar-inner {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.rating-bar-count {
    color: #888;
    font-size: 12px;
    min-width: 30px;
    text-align: right;
}