/* Enhanced Reviews Styling for Medical Device Sales */

/* Product Header Rating Enhancement */
.enhanced-rating {
    position: relative;
}

.enhanced-rating .rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.enhanced-rating .fas.fa-star,
.enhanced-rating .fas.fa-star-half-alt {
    color: #ffc107 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.enhanced-rating .far.fa-star {
    color: #dee2e6 !important;
}

.enhanced-rating .rating_num {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

/* Trust Badge Styling */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.trust-badge.verified {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.trust-badge.medical-grade {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.trust-badge.professional {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
}

.trust-badge.clinical {
    background: linear-gradient(135deg, #17a2b8, #6c757d);
    color: white;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.trust-badge.standard {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.trust-badge i {
    font-size: 0.7rem;
}

/* No Reviews State */
.no-reviews a {
    font-style: italic;
    transition: color 0.3s ease;
}

.no-reviews a:hover {
    color: #007bff !important;
    text-decoration: none;
}

/* Enhanced Review Component Styling */
.medical-trust-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.trust-score {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
}

.clinical-breakdown .metric {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clinical-breakdown .metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    display: block;
}

.metric-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Professional Review Cards */
.professional-review-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    transition: box-shadow 0.3s ease;
}

.professional-review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reviewer-header {
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reviewer-info h6 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

.reviewer-title {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.review-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.verified-purchase {
    color: #28a745;
    font-weight: 500;
}

/* Rating Distribution */
.rating-distribution {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.rating-bar:last-child {
    margin-bottom: 0;
}

.rating-label {
    width: 60px;
    text-align: right;
    margin-right: 0.75rem;
    color: #6c757d;
}

.progress {
    flex: 1;
    height: 8px;
    margin-right: 0.75rem;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.rating-count {
    width: 40px;
    text-align: left;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .clinical-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .metric {
        padding: 0.5rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .trust-score {
        font-size: 1.5rem;
    }
    
    .professional-review-card {
        padding: 0.75rem;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Accessibility Enhancements */
.trust-badge:focus,
.professional-review-card:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .enhanced-rating,
    .professional-review-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .trust-badge {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}