/**
 * Category Reviews CSS
 */

/* Common styles for both themes */
.review-pro-category-reviews {
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.review-pro-category-reviews-header {
    text-align: center;
    margin-bottom: 30px;
}

.review-pro-category-reviews-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.review-pro-category-reviews-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #FFD700;
    margin: 10px auto 0;
}

.review-pro-category-reviews-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.review-pro-category-stats {
    text-align: center;
    margin-bottom: 30px;
}

.review-pro-category-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.review-pro-category-rating-value {
    font-size: 36px;
    font-weight: 700;
    margin-right: 15px;
}

.review-pro-category-rating-stars {
    margin-right: 15px;
}

.review-pro-category-rating-count {
    font-size: 14px;
    color: #666;
}

/* Stars styling */
.review-pro-category-reviews .review-pro-stars {
    display: inline-flex;
    align-items: center;
}

.review-pro-category-reviews .review-pro-star {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.review-pro-category-reviews .review-pro-star-full {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFD700' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.review-pro-category-reviews .review-pro-star-half {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFD700' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3Cpath fill='%23e0e0e0' d='M12 17.27V2L9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z'/%3E%3C/svg%3E");
}

.review-pro-category-reviews .review-pro-star-empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e0e0e0' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

/* Carousel styling */
.review-pro-category-reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.review-pro-category-reviews-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 -15px;
    will-change: transform;
}

.review-pro-category-review-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-pro-category-review-item:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Grid settings based on data-grid attribute */
.review-pro-category-reviews[data-grid="1"] .review-pro-category-review-item {
    flex: 0 0 calc(100% - 30px);
}

.review-pro-category-reviews[data-grid="2"] .review-pro-category-review-item {
    flex: 0 0 calc(50% - 30px);
}

.review-pro-category-reviews[data-grid="3"] .review-pro-category-review-item {
    flex: 0 0 calc(33.333% - 30px);
}

.review-pro-category-reviews[data-grid="4"] .review-pro-category-review-item {
    flex: 0 0 calc(25% - 30px);
}

.review-pro-category-reviews[data-grid="5"] .review-pro-category-review-item {
    flex: 0 0 calc(20% - 30px);
}

.review-pro-category-reviews[data-grid="6"] .review-pro-category-review-item {
    flex: 0 0 calc(16.666% - 30px);
}

/* Responsive settings */
@media (max-width: 991px) {
    .review-pro-category-review-item {
        flex: 0 0 calc(50% - 30px) !important;
    }
}

@media (max-width: 767px) {
    .review-pro-category-review-item {
        flex: 0 0 calc(100% - 30px) !important;
    }
}

.review-pro-category-review-rating {
    margin-bottom: 15px;
}

.review-pro-category-review-content {
    flex-grow: 1;
    margin-bottom: 15px;
}

.review-pro-category-review-text {
    font-size: 16px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.review-pro-category-review-author {
    display: flex;
    align-items: center;
}

.review-pro-category-review-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 10px;
}

.review-pro-category-review-author-info {
    display: flex;
    flex-direction: column;
}

.review-pro-category-review-author-name {
    font-weight: 600;
    font-size: 14px;
}

.review-pro-category-review-author-verified {
    font-size: 12px;
}

.review-pro-category-reviews-carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.review-pro-category-reviews-carousel-prev,
.review-pro-category-reviews-carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 5px;
}

/* Light theme specific styles */
.review-pro-theme-light {
    background-color: #ffffff;
    color: #333;
}

.review-pro-theme-light .review-pro-category-review-item {
    background-color: #f9f9f9;
}

.review-pro-theme-light .review-pro-category-review-author-avatar {
    background-color: #FFD700;
    color: #333;
}

.review-pro-theme-light .review-pro-category-reviews-carousel-prev,
.review-pro-theme-light .review-pro-category-reviews-carousel-next {
    background-color: #FFD700;
    color: #333;
}

.review-pro-theme-light .review-pro-category-review-author-verified {
    color: #4CAF50;
}

/* Dark theme specific styles */
.review-pro-theme-dark {
    background-color: #1a1a1a;
    color: #f5f5f5;
}

.review-pro-theme-dark .review-pro-category-reviews-subtitle {
    color: #ccc;
}

.review-pro-theme-dark .review-pro-category-rating-count {
    color: #ccc;
}

.review-pro-theme-dark .review-pro-category-review-item {
    background-color: #2a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.review-pro-theme-dark .review-pro-category-review-author-avatar {
    background-color: #FFD700;
    color: #333;
}

.review-pro-theme-dark .review-pro-category-reviews-carousel-prev,
.review-pro-theme-dark .review-pro-category-reviews-carousel-next {
    background-color: #FFD700;
    color: #333;
}

.review-pro-theme-dark .review-pro-category-review-author-verified {
    color: #8BC34A;
}
