/* Enterprise-Style Reviews Widget */

.reviews-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reviews-title {
    font-weight: 600;
    color: #2d3748;
}

.rating-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.overall-rating {
    padding: 1rem;
}

.rating-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.rating-stars {
    font-size: 1.25rem;
}

.rating-text {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-breakdown {
    padding: 0 1rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rating-label {
    font-size: 0.875rem;
    color: #4a5568;
    min-width: 50px;
    font-weight: 500;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 0.875rem;
    color: #718096;
    min-width: 30px;
    text-align: right;
    font-weight: 500;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.reviewer-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.verified-badge {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 0.5rem;
}

.featured-badge {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.language-badge {
    background: #667eea;
    color: white;
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-weight: 500;
    margin-left: 0.5rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.review-stars {
    font-size: 0.875rem;
}

.review-date {
    color: #718096;
    font-size: 0.875rem;
}

.review-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.review-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.btn-helpful,
.btn-report {
    background: none;
    border: 1px solid #e2e8f0;
    color: #718096;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-helpful:hover {
    background: #f7fafc;
    border-color: #10b981;
    color: #10b981;
}

.btn-report:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star-rating .star {
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.star-rating .star:hover {
    transform: scale(1.1);
}

.star-rating .star i {
    color: #cbd5e0;
    transition: color 0.2s ease;
}

.star-rating .star i.fa-star {
    color: #fbbf24;
}

/* Form Improvements */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* No Reviews State */
.no-reviews {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rating-summary-card {
        padding: 1.5rem;
    }

    .overall-rating {
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .review-card {
        padding: 1rem;
    }

    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .review-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-helpful,
    .btn-report {
        text-align: center;
    }

    .modal-dialog {
        margin: 1rem;
    }
}

/* Loading States */
.reviews-loading {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.alert-success {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    border-radius: 12px;
}

/* Accessibility */
.review-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .rating-fill {
        background: #000000;
    }

    .verified-badge,
    .featured-badge {
        background: #000000;
    }
}

/* Print styles */
@media print {
    .review-actions,
    .modal,
    .btn {
        display: none !important;
    }

    .review-card {
        border: 1px solid #000;
        break-inside: avoid;
    }
}