/* Base Styles */
.urp-reviews-section {
    padding: 20px 0;
}

/* Theme Styles */
.urp-theme-default .urp-review-item {
    padding: 20px;
    margin: 15px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.urp-theme-clean .urp-review-item {
    padding: 20px;
    margin: 15px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.urp-theme-boxed .urp-review-item {
    padding: 25px;
    margin: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

/* Hover Effects */
.urp-theme-default .urp-review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.urp-theme-clean .urp-review-item:hover {
    background: #f9f9f9;
}

.urp-theme-boxed .urp-review-item:hover {
    transform: translateY(-3px);
}

/* Product Link */
.urp-product-info {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.urp-product-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.urp-product-link:hover {
    color: #00a0d2;
    text-decoration: underline;
}

/* Sorting Controls */
.urp-sorting-controls {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e2e2;
}

.urp-sort-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.urp-sort-select {
    padding: 8px 24px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f9f9f9;
    font-size: 14px;
    line-height: 1.5;
    color: #515151;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    cursor: pointer;
}

/* Reviewer Info */
.urp-reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.urp-reviewer-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urp-initials {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.urp-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #fff;
}

.urp-verified-badge::before {
    content: "✓";
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.urp-reviewer-meta {
    flex-grow: 1;
}

.urp-reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.urp-review-date {
    font-size: 14px;
    color: #666;
}

/* Rating Stars */
.urp-rating {
    margin-bottom: 15px;
}

.urp-stars {
    display: inline-flex;
    gap: 2px;
}

.urp-star {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.urp-star-filled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFA41C' 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");
}

.urp-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='%23D4D4D4' 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 Content */
.urp-review-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.urp-review-content p {
    margin: 0 0 10px;
}

.urp-review-content p:last-child {
    margin-bottom: 0;
}

/* Carousel Styles */
.urp-carousel {
    padding: 20px 0;
    margin: 0 -15px;
}

.urp-carousel .slick-track {
    display: flex;
    padding: 20px 0;
}

.urp-carousel .slick-slide {
    height: auto;
    margin: 0 15px;
}

.urp-carousel .slick-dots {
    bottom: -30px;
}

.urp-carousel .slick-dots li button:before {
    font-size: 10px;
    color: #999;
}

.urp-carousel .slick-dots li.slick-active button:before {
    color: #333;
}

/* Navigation Arrows */
.urp-carousel .slick-prev,
.urp-carousel .slick-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.urp-carousel .slick-prev {
    left: -20px;
}

.urp-carousel .slick-next {
    right: -20px;
}

.urp-carousel .slick-prev:before,
.urp-carousel .slick-next:before {
    color: #333;
    font-size: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .urp-sort-form {
        justify-content: flex-start;
    }
    
    .urp-sort-select {
        width: 100%;
        max-width: 300px;
    }
    
    .urp-review-item {
        margin: 10px 0;
    }
    
    .urp-reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .urp-initials {
        font-size: 16px;
    }
    
    .urp-carousel .slick-prev {
        left: 10px;
    }
    
    .urp-carousel .slick-next {
        right: 10px;
    }
} 

/* Loading State */
.urp-reviews-list.loading {
    position: relative;
    min-height: 200px;
    opacity: 0.5;
    pointer-events: none;
}

.urp-reviews-list.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: urp-spin 1s linear infinite;
}

@keyframes urp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 