/* ========================================
   REVIEW SYSTEM STYLES
   ======================================== */

/* Star Rating Display */
.star-rating {
    display: inline-flex;
    gap: 4px;
    font-size: 18px;
    color: #ffc107;
}

.star-rating.large {
    font-size: 24px;
    gap: 6px;
}

.star-rating.small {
    font-size: 14px;
    gap: 2px;
}

.star-rating i {
    color: #ffc107;
}

.star-rating i.far {
    color: #ddd;
}

/* Star Rating Input Selector */
.star-rating-input {
    display: inline-flex;
    gap: 12px;
    font-size: 40px;
    cursor: pointer;
    padding: 15px 0;
}

.star-rating-input i {
    color: #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-text-stroke: 1px #ccc;
}

.star-rating-input i:hover,
.star-rating-input i.hover,
.star-rating-input i.selected {
    color: #ffc107;
    -webkit-text-stroke: 1px #ff9800;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4));
}

.star-rating-input i:active {
    transform: scale(1.05);
}

/* Review Cards */
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin: 12px 0;
    font-size: 15px;
}

.service-badge {
    display: inline-block;
    background: rgba(10, 88, 202, 0.1);
    color: #0a58ca;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.service-badge:hover {
    background: #0a58ca;
    color: white;
}

/* Review Form */
.review-form-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    border: 2px solid #e9ecef;
}

.review-form-card h4 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.review-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.review-form .form-control,
.review-form textarea {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.review-form .form-control:focus,
.review-form textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.rating-selector-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    text-align: center;
}

.rating-selector-wrapper label {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.rating-selector-wrapper .star-rating-input {
    justify-content: center;
}

/* Review Statistics */
.review-stats {
    background: linear-gradient(135deg, #0a58ca 0%, #1e3a8a 100%);
    color: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.review-stats h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.review-stats p {
    margin: 8px 0 0 0;
    opacity: 0.9;
}

.rating-distribution {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.rating-bar-label {
    width: 60px;
    font-size: 14px;
    color: #666;
}

.rating-bar-fill {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 12px;
}

.rating-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    transition: width 0.5s ease;
}

.rating-bar-count {
    width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Filter Section */
.review-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-filter select {
    border-radius: 8px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    min-width: 200px;
}

/* Load More Button */
.load-more-btn {
    background: white;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Empty State */
.empty-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-reviews i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Alert Messages */
.review-alert {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: none;
}

.review-alert.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .review-card {
        padding: 16px;
    }

    .review-form-card {
        padding: 20px;
    }

    .star-rating-input {
        font-size: 36px;
        gap: 10px;
    }

    .review-stats {
        padding: 24px;
    }

    .review-stats h2 {
        font-size: 36px;
    }
    
    .rating-selector-wrapper {
        padding: 15px;
    }
}
