/* Reviews Section Styles */

.reviews-section {
    padding: 5rem 0;
    background: var(--background-alt);
}

.reviews-section .container {
    max-width: 1200px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.reviews-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--card-shadow);
    min-width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--card-shadow-hover);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.reviews-form-container,
.reviews-list-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--card-shadow);
}

.reviews-form h3,
.reviews-list h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Review Form */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 143, 200), 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Reviews List */
.reviews-list-container {
    max-height: 600px;
    overflow-y: auto;
}

.reviews-list-container::-webkit-scrollbar {
    width: 8px;
}

.reviews-list-container::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 4px;
}

.reviews-list-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--card-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.review-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 1.25rem;
}

.review-info {
    flex: 1;
}

.review-name {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.review-rating .star-filled {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-rating .star-empty {
    color: #ccc;
    font-size: 0.9rem;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.review-comment {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Submit Button */
.btn-submit-review {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-review:hover {
    background: var(--primary-color-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dark mode override */
:root[data-theme="dark"] .btn-submit-review {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] .btn-submit-review:hover {
    background: var(--primary-color-hover) !important;
    color: #ffffff !important;
}

.btn-submit-review:active {
    transform: translateY(0);
}

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 991px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .reviews-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .reviews-section {
        padding: 3rem 0;
    }
    
    .reviews-form-container,
    .reviews-list-container {
        padding: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
    }
    
    .review-date {
        align-self: flex-start;
    }
}

