/* Customer Reviews Showcase Styles */

.customer-reviews-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    direction: rtl;
}

.review-slide {
    outline: none;
}

.review-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: auto;
    position: relative;
    border: 1px solid #f0f0f0;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
    flex-direction: column;
}

.customer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 4px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.customer-avatar:hover {
    transform: scale(1.05);
}

.customer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.customer-avatar img:hover {
    opacity: 0.9;
}

.customer-info {
    text-align: center;
}

.customer-info h4.customer-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
}

.product-name {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.review-rating {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 20px;
    transition: color 0.2s ease;
}

.star.filled {
    color: #f39c12;
}

.review-body {
    margin: 20px 0;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
    margin: 0;
    font-style: italic;
    quotes: "\201C""\201D""\2018""\2019";
}

.review-text:before {
    content: open-quote;
    font-size: 1.5em;
    color: #3498db;
    margin-left: 5px;
}

.review-text:after {
    content: close-quote;
    font-size: 1.5em;
    color: #3498db;
    margin-right: 5px;
}

.review-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.review-date {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

/* Slider Navigation Styles */
.customer-reviews-slider .slick-prev,
.customer-reviews-slider .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block !important;
    width: 50px;
    height: 50px;
    padding: 0;
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: #3498db;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.customer-reviews-slider .slick-prev:hover,
.customer-reviews-slider .slick-next:hover {
    background: #2980b9;
    transform: translate(0, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.customer-reviews-slider .slick-prev:before,
.customer-reviews-slider .slick-next:before {
    font-family: 'slick';
    font-size: 18px;
    line-height: 1;
    opacity: 1;
    color: white;
    font-weight: normal;
}

.customer-reviews-slider .slick-prev {
    right: -25px;
}

.customer-reviews-slider .slick-prev:before {
    content: '→';
}

.customer-reviews-slider .slick-next {
    left: -25px;
}

.customer-reviews-slider .slick-next:before {
    content: '←';
}

/* Dots Styles */
.customer-reviews-slider .slick-dots {
    list-style: none;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 30px 0 0 0;
    padding: 0;
    gap: 8px;
}

.customer-reviews-slider .slick-dots li {
    margin: 0;
    display: flex;
    align-items: center;
}

.customer-reviews-slider .slick-dots button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: #bdc3c7;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.customer-reviews-slider .slick-dots button:hover {
    background: #95a5a6;
    transform: scale(1.2);
}

.customer-reviews-slider .slick-dots .slick-active button {
    background: #3498db;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Grid Layout Styles */
.customer-reviews-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.customer-reviews-grid.columns-1 {
    grid-template-columns: 1fr;
}

.customer-reviews-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.customer-reviews-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.customer-reviews-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.review-grid-item {
    width: 100%;
}

/* Loading Animation */
.customer-reviews-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.customer-reviews-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .customer-reviews-slider .slick-prev {
        right: -15px;
    }
    
    .customer-reviews-slider .slick-next {
        left: -15px;
    }
    
    .customer-reviews-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .review-card {
        padding: 20px;
        margin: 0 5px;
    }
    
    .customer-avatar {
        width: 60px;
        height: 60px;
    }
    
    .customer-reviews-slider .slick-prev,
    .customer-reviews-slider .slick-next {
        display: none !important;
    }
    
    .customer-reviews-grid.columns-3,
    .customer-reviews-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-text {
        font-size: 15px;
    }
    
    .customer-info h4.customer-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 15px;
    }
    
    .customer-avatar {
        width: 50px;
        height: 50px;
    }
    
    .customer-reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .customer-info h4.customer-name {
        font-size: 15px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .star {
        font-size: 16px;
    }
}

/* RTL Support */
[dir="rtl"] .customer-reviews-slider .slick-prev {
    left: -25px;
    right: auto;
}

[dir="rtl"] .customer-reviews-slider .slick-next {
    right: -25px;
    left: auto;
}

[dir="rtl"] .customer-reviews-slider .slick-prev:before {
    content: '←';
}

[dir="rtl"] .customer-reviews-slider .slick-next:before {
    content: '→';
}

/* Animation Effects */
.review-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects for Interactive Elements */
.review-card {
    cursor: default;
}

.review-rating .star {
    cursor: default;
}

/* Focus States for Accessibility */
.customer-reviews-slider .slick-prev:focus,
.customer-reviews-slider .slick-next:focus,
.customer-reviews-slider .slick-dots button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .customer-reviews-slider .slick-prev,
    .customer-reviews-slider .slick-next,
    .customer-reviews-slider .slick-dots {
        display: none !important;
    }
    
    .review-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .review-card {
        border: 2px solid #000;
    }
    
    .star.filled {
        color: #000;
    }
    
    .customer-reviews-slider .slick-prev,
    .customer-reviews-slider .slick-next {
        background: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .review-card,
    .customer-avatar,
    .customer-reviews-slider .slick-prev,
    .customer-reviews-slider .slick-next,
    .customer-reviews-slider .slick-dots button {
        transition: none;
    }
    
    .review-card {
        animation: none;
    }
    
    .customer-reviews-loading::after {
        animation: none;
    }
}