/* ========================= REVIEWS SECTION ========================= */
.reviews-section {
    background: #1e1e2f;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.reviews-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00ffd0;
}

/* Average Rating Display */
.average-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 208, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 208, 0.2);
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #00ffd0;
    line-height: 1;
}

.rating-stars-large {
    display: flex;
    gap: 5px;
}

.rating-stars-large .star {
    font-size: 2rem;
    color: #444;
}

.rating-stars-large .star.filled {
    color: #ffc107;
}

.rating-info {
    color: #888;
    font-size: 0.9rem;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.star {
    font-size: 2rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.filled {
    color: #ffc107;
    transform: scale(1.1);
}

.star.filled {
    animation: starPop 0.3s ease;
}

@keyframes starPop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Review Form */
.review-form {
    background: #141420;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #2a2a3e;
    margin-bottom: 30px;
}

.review-form h3 {
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0f0f1f;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    color: white;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffd0;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00ffd0, #00b894);
    color: #0a0a14;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 208, 0.3);
}

.submit-review-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: #141420;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2a2a3e;
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: #00ffd0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffd0, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a14;
}

.reviewer-name {
    font-weight: 600;
    color: #fff;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating .star {
    font-size: 1.2rem;
    cursor: default;
}

.review-text {
    color: #ccc;
    line-height: 1.6;
    margin-top: 12px;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
}

/* Empty State */
.no-reviews {
    text-align: center;
    padding: 40px;
    color: #888;
}

.no-reviews p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Success Message */
.review-success {
    background: rgba(0, 255, 208, 0.1);
    border: 1px solid #00ffd0;
    color: #00ffd0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Error Message */
.review-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* ========================= TESTIMONIALS SECTION (HOMEPAGE) ========================= */
.testimonials-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00ffd0;
}

.testimonials-section p {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: #1e1e2f;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2a2a3e;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 208, 0.2);
    border-color: #00ffd0;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #2a2a3e;
}

.testimonial-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffd0, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a14;
    font-size: 0.9rem;
}

.testimonial-name {
    font-weight: 600;
    color: #fff;
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 768px) {
    .reviews-section {
        padding: 20px;
    }

    .average-rating {
        flex-direction: column;
        text-align: center;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}