/* Reviews Page Styles */

/* Hero Section */
.reviews-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 100px 0 80px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.reviews-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Reviews Grid */
.reviews-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.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;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(2, 174, 236, 0.3);
}

.reviewer-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.review-service {
    font-size: 12px;
    color: var(--primary-blue);
    background: rgba(2, 174, 236, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.review-meta {
    text-align: right;
}

.review-rating {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 5px;
}

.review-date {
    font-size: 12px;
    color: var(--gray);
}

.review-body {
    flex: 1;
}

.review-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-blue);
}

.review-text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #FFD700;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--secondary-blue);
}

.close-modal {
    color: var(--gray);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-orange);
}

.modal-body {
    padding: 30px;
}

/* Enhanced Select Dropdown */
.modal-body select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-body select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 174, 236, 0.1);
}

[data-theme="dark"] .modal-body select {
    background-color: #2d2d2d;
    color: #fff;
    border-color: #444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Enhanced Star Rating */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 5px;
    position: relative;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.star-rating label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 2px;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #FFD700;
    transform: scale(1.1);
}

.star-rating label:active {
    transform: scale(0.9);
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    display: none;
}

.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.no-reviews p {
    font-size: 18px;
    color: var(--gray);
    margin: 20px 0;
}

/* Dark Mode Support */
[data-theme="dark"] .reviews-section {
    background: var(--dark);
}

[data-theme="dark"] .review-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .reviewer-name {
    color: var(--white);
}

[data-theme="dark"] .review-text {
    color: #ccc;
}

[data-theme="dark"] .modal-content {
    background: #1a1a1a;
    color: var(--white);
}

[data-theme="dark"] .modal-header {
    background: #222;
    border-color: #333;
}

[data-theme="dark"] .close-modal {
    color: #aaa;
}

[data-theme="dark"] .no-reviews {
    background: #1a1a1a;
}

/* Dark Mode Form Styles */
[data-theme="dark"] .modal-body label {
    color: #e0e0e0;
}

[data-theme="dark"] .modal-body input,
[data-theme="dark"] .modal-body textarea {
    background-color: #2d2d2d;
    color: #fff;
    border: 1px solid #444;
}

[data-theme="dark"] .modal-body input:focus,
[data-theme="dark"] .modal-body textarea:focus {
    border-color: var(--primary-blue);
    background-color: #333;
}

[data-theme="dark"] .modal-body input::placeholder,
[data-theme="dark"] .modal-body textarea::placeholder {
    color: #888;
}

[data-theme="dark"] .modal-body small {
    color: #aaa !important;
}