/* AEM Labs Limited - Seller Shop Reviews CSS */
/* ========================================== */

.reviews-section {
    background-color: #f8f9fa;
    padding: 30px 0;
}

.reviews-container {
    max-width: min(90%, var(--section-max-width));
    margin: 0 auto;
}

@keyframes fillBar {
    from {
        width: 0%;
    }

    to {
        width: var(--target-width);
    }
}

.reviews-overview {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.reviews-summary {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.overall-rating {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.rating-number {
    font-size: 34px;
    font-weight: 800;
    color: #222;
    line-height: 1;
}

.rating-stars-large {
    display: flex;
    gap: 4px;
}

.rating-stars-large i {
    color: #ffa500;
    font-size: 16px;
}

.rating-breakdown {
    flex: 1;
}

.total-reviews {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.star-label {
    font-weight: 600;
    color: #333;
    min-width: 12px;
}

.star-icon {
    color: #ffa500;
    font-size: 12px;
}

.bar-container {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    border-radius: 3px;
    transition: width 1s ease-out;
    width: 0%;
}

.percentage {
    color: #666;
    font-weight: 500;
    min-width: 35px;
    text-align: right;
}

.reviews-filters {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-section label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.review-select {
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.review-select:focus {
    outline: none;
    border-color: var(--accent-color, #6907c5);
    box-shadow: 0 0 0 3px rgba(105, 7, 197, 0.1);
}

.review-select:hover {
    border-color: #ccc;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

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

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

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
    text-transform: capitalize;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #ffa500;
    font-size: 12px;
}

.review-rating .far {
    color: #ddd;
}

.review-date {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.verified-purchase {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-purchase i {
    color: #008000;
    box-shadow: 0 0 4px #008000;
    border-radius: 50%;
    font-size: 12px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-weight: 400;
}

.review-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-color, #6907c5);
}

.review-helpful {
    display: flex;
    gap: 20px;
}

.helpful-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: #f8f9fa;
    color: var(--accent-color, #6907c5);
}

.helpful-btn.active {
    background: rgba(105, 7, 197, 0.1);
    color: var(--accent-color, #6907c5);
}

.helpful-btn.active i {
    color: var(--accent-color, #6907c5);
}

.seller-response {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    position: relative;
}

.response-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.response-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color, #6907c5) 0%, #8b5cf6 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.response-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

.no-reviews-message {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: black;
}

.no-reviews-message i {
    color: #ffa500;
}

.no-reviews-message h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 10px;
}

.no-reviews-message p {
    font-size: 14px;
    margin: 0;
    color: #666;
}

.load-more-reviews {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    border-color: var(--accent-color, #6907c5);
    color: var(--accent-color, #6907c5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 7, 197, 0.15);
}

@media (max-width: 1440px) {
    .reviews-overview {
        padding: 30px;
    }

    .overall-rating {
        gap: 30px;
    }

    .filter-section label,
    .review-select,
    .review-select option {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .reviews-overview {
        padding: 24px 20px;
    }

    .overall-rating {
        gap: 20px;
    }

    .rating-number {
        font-size: 28px;
    }

    .rating-stars-large i {
        font-size: 14px;
    }

    .total-reviews {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .rating-bar {
        font-size: 12px;
    }

    .filter-section label,
    .review-select {
        font-size: 12px;
        min-width: fit-content;
    }
}

@media (max-width: 480px) {
    .reviews-overview {
        padding: 18px;
    }

    .overall-rating {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .rating-number {
        font-size: 20px;
    }

    .rating-stars-large i {
        font-size: 12px;
    }

    .total-reviews {
        font-size: 11px;
    }

    .rating-breakdown,
    .rating-display {
        width: 100%;
    }

    .rating-display {
        flex-direction: column;
    }

    .rating-bar {
        font-size: 10px;
    }

    .reviews-filters {
        gap: 12px;
    }

    .filter-section label,
    .review-select {
        font-size: 10px;
    }

    .filter-section {
        gap: 4px;
    }

    .review-card {
        padding: 12px;
    }

    .reviewer-info {
        width: 100%;
    }

    .reviewer-avatar {
        width: 32px;
        height: 32px;
    }

    .review-header {
        flex-direction: column;
        gap: 12px;
    }

    .reviewer-name {
        font-size: 12px;
    }

    .review-date,
    .review-rating i,
    .verified-purchase,
    .verified-purchase i {
        font-size: 10px;
    }

    .helpful-btn {
        font-size: 10px;
        padding: 4px 10px;
        gap: 4px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }

    .review-image {
        width: 60px;
        height: 60px;
    }

    .seller-response {
        padding: 12px;
    }

    .response-badge {
        font-size: 8px;
        padding: 2px 6px;
    }

    .review-text,
    .response-text {
        font-size: 11px;
        font-weight: 500;
    }

    .review-images {
        gap: 8px;
    }

    .review-helpful {
        justify-content: flex-start;
        width: 100%;
    }
}