/* Reviews System Styling */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color, #ff9900) 0%, var(--secondary-color, #222222) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png') repeat;
    opacity: 0.1;
}

.page-header-box {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: #ffffff;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
}

/* Review Statistics Card */
.review-stats-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color, #ff9900);
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars .las.la-star {
    font-size: 24px;
    color: #ddd;
    margin: 0 2px;
}

.rating-stars .las.la-star.filled {
    color: var(--primary-color, #ff9900);
}

.rating-text {
    color: #666;
    font-size: 16px;
}

.rating-breakdown {
    padding-left: 20px;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    width: 60px;
    font-size: 14px;
    color: #666;
}

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

.rating-fill {
    height: 100%;
    background: var(--primary-color, #ff9900);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-count {
    width: 30px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

/* Controls */
.reviews-controls {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.filter-controls,
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-controls label,
.sort-controls label {
    font-weight: 600;
    color: var(--secondary-color, #222222);
    margin-bottom: 0;
}

.filter-controls select,
.sort-controls select {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-controls select:focus,
.sort-controls select:focus {
    border-color: var(--primary-color, #ff9900);
    outline: none;
}

/* Review Cards */
.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color, #ff9900);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.reviewer-details h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-color, #222222);
    font-size: 18px;
    font-weight: 600;
}

.review-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.service-type {
    background: var(--accent-color, #007bff);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.review-rating .las.la-star {
    font-size: 18px;
    color: #ddd;
    margin-right: 2px;
}

.review-rating .las.la-star.filled {
    color: var(--primary-color, #ff9900);
}

.review-content h5 {
    color: var(--secondary-color, #222222);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.review-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.admin-reply {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color, #ff9900);
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.reply-header i {
    color: var(--primary-color, #ff9900);
}

.reply-date {
    color: #666;
    margin-left: auto;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color, #ff9900), #ffb84d);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.featured-badge i {
    margin-right: 5px;
}

/* No Reviews */
.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-reviews h3 {
    color: var(--secondary-color, #222222);
    margin: 20px 0 10px 0;
}

.no-reviews p {
    color: #666;
    margin-bottom: 30px;
}

/* Enhanced Button Styling for No Reviews Section */
.no-reviews .btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.no-reviews .btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #ff9900) 0%, #ffb84d 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.3);
}

.no-reviews .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 153, 0, 0.4);
    background: linear-gradient(135deg, #e88900 0%, var(--primary-color, #ff9900) 100%);
    color: #ffffff;
    text-decoration: none;
}

.no-reviews .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.no-reviews .btn-primary:hover:before {
    left: 100%;
}

.no-reviews .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.3);
}

.no-reviews .btn strong {
    font-weight: 700;
}

/* Icon styling for the no-reviews section */
.no-reviews i.las.la-star {
    color: #ddd;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Pagination */
.reviews-pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: var(--primary-color, #ff9900);
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color, #ff9900);
    color: #ffffff;
    border-color: var(--primary-color, #ff9900);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color, #ff9900);
    border-color: var(--primary-color, #ff9900);
}

/* Sidebar */
.reviews-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.sidebar-card h4 {
    color: var(--secondary-color, #222222);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.write-review-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color, #ff9900), #ffb84d);
    color: #ffffff;
}

.write-review-cta h4,
.write-review-cta p {
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.featured-review-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.featured-rating {
    margin-bottom: 8px;
}

.featured-rating .las.la-star {
    font-size: 14px;
    color: #ddd;
    margin-right: 1px;
}

.featured-rating .las.la-star.filled {
    color: var(--primary-color, #ff9900);
}

.featured-review-item h6 {
    color: var(--secondary-color, #222222);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.featured-review-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.featured-author {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--primary-color, #ff9900);
    font-size: 18px;
}

/* Review Form */
.review-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header h2 {
    color: var(--secondary-color, #222222);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

.review-form .form-group {
    margin-bottom: 25px;
}

.review-form label {
    color: var(--secondary-color, #222222);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.review-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.review-form .form-control:focus {
    border-color: var(--primary-color, #ff9900);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 0, 0.25);
}

/* Star Rating Input */
.rating-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
}

.star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-label {
    cursor: pointer;
    font-size: 32px;
    color: #ddd;
    transition: color 0.3s ease;
}

.star-rating input[type="radio"]:checked ~ .star-label,
.star-rating input[type="radio"]:checked + .star-label,
.star-rating .star-label:hover {
    color: var(--primary-color, #ff9900);
}

.star-rating input[type="radio"]:checked + .star-label ~ .star-label {
    color: #ddd;
}

.rating-text {
    font-size: 16px;
    color: var(--secondary-color, #222222);
    font-weight: 600;
}

.character-count {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Review Tips */
.review-tips-card,
.recent-reviews-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.review-tips {
    list-style: none;
    padding: 0;
}

.review-tips li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.review-tips li i {
    color: var(--success-color, #28a745);
    font-size: 16px;
    margin-top: 2px;
}

.review-benefits h5 {
    color: var(--secondary-color, #222222);
    font-weight: 600;
    margin-bottom: 10px;
}

.review-benefits ul {
    list-style: disc;
    padding-left: 20px;
}

.review-benefits li {
    color: #666;
    margin-bottom: 5px;
}

.recent-review-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.recent-rating {
    margin-bottom: 8px;
}

.recent-rating .las.la-star {
    font-size: 14px;
    color: #ddd;
    margin-right: 1px;
}

.recent-rating .las.la-star.filled {
    color: var(--primary-color, #ff9900);
}

.recent-review-item h6 {
    color: var(--secondary-color, #222222);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.recent-author {
    color: #999;
    font-size: 12px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert i {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .review-stats-card {
        padding: 25px;
    }
    
    .rating-number {
        font-size: 48px;
    }
    
    .rating-breakdown {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .reviewer-info {
        align-self: flex-start;
    }
    
    .review-rating {
        align-self: flex-start;
    }
    
    .reviews-controls .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-controls,
    .sort-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .review-form-card {
        padding: 25px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .reviews-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .reviews-section {
        padding: 60px 0;
    }
    
    .review-stats-card {
        padding: 20px;
    }
    
    .rating-number {
        font-size: 40px;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .review-form-card {
        padding: 20px;
    }
    
    .star-label {
        font-size: 28px;
    }
} 