/* Reviews Slider Container */
.wri-reviews-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    direction: rtl;
}

/* Slider Wrapper */
.wri-reviews-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Reviews Grid - 2 reviews side by side */
.wri-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0;
}

/* Review Slide */
.wri-review-slide {
    display: none;
    animation: wriSlideIn 0.5s ease-in-out;
}

.wri-review-slide.active {
    display: block;
}

@keyframes wriSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Review Card - Base Styles */
.wri-review-card {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.wri-review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Style: Purple (Default) */
.wri-style-purple .wri-review-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wri-style-purple .wri-slider-prev,
.wri-style-purple .wri-slider-next {
    color: #667eea;
}

.wri-style-purple .wri-dot.active {
    background: #667eea;
}

/* Style: Gold */
.wri-style-gold .wri-review-card {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.wri-style-gold .wri-slider-prev,
.wri-style-gold .wri-slider-next {
    color: #f6d365;
}

.wri-style-gold .wri-dot.active {
    background: #f6d365;
}

/* Style: Red */
.wri-style-red .wri-review-card {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.wri-style-red .wri-slider-prev,
.wri-style-red .wri-slider-next {
    color: #ee0979;
}

.wri-style-red .wri-dot.active {
    background: #ee0979;
}

/* Style: Green */
.wri-style-green .wri-review-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.wri-style-green .wri-slider-prev,
.wri-style-green .wri-slider-next {
    color: #11998e;
}

.wri-style-green .wri-dot.active {
    background: #11998e;
}

/* Stars */
.wri-review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.wri-star {
    color: #ffd700;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: wriStarPulse 2s ease-in-out infinite;
}

.wri-star:nth-child(1) { animation-delay: 0s; }
.wri-star:nth-child(2) { animation-delay: 0.1s; }
.wri-star:nth-child(3) { animation-delay: 0.2s; }
.wri-star:nth-child(4) { animation-delay: 0.3s; }
.wri-star:nth-child(5) { animation-delay: 0.4s; }

@keyframes wriStarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Review Content */
.wri-review-content {
    flex: 1;
    margin: 12px 0;
    position: relative;
    z-index: 1;
}

.wri-review-text {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    text-align: right;
}

/* Review Author */
.wri-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.wri-author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.wri-author-info {
    flex: 1;
    min-width: 0;
}

.wri-author-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wri-review-verified {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Navigation Buttons */
.wri-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none;
    z-index: 10;
}

.wri-slider-prev,
.wri-slider-next {
    pointer-events: all;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wri-slider-prev:hover,
.wri-slider-next:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wri-slider-prev:active,
.wri-slider-next:active {
    transform: scale(0.95);
}

/* Dots Navigation */
.wri-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.wri-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.wri-dot:hover {
    background: #bbb;
    transform: scale(1.2);
}

.wri-dot.active {
    width: 25px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wri-reviews-slider-container {
        padding: 8px;
        margin: 15px auto;
    }
    
    .wri-reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .wri-review-card {
        padding: 18px 15px;
        min-height: 220px;
    }
    
    .wri-review-card::before {
        font-size: 100px;
        top: -5px;
        right: 10px;
    }
    
    .wri-review-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .wri-author-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .wri-author-name {
        font-size: 15px;
    }
    
    .wri-review-verified {
        font-size: 11px;
    }
    
    .wri-slider-prev,
    .wri-slider-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .wri-slider-nav {
        padding: 0 3px;
    }
    
    .wri-slider-dots {
        margin-top: 12px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .wri-review-card {
        padding: 15px 12px;
        min-height: 200px;
    }
    
    .wri-review-card::before {
        font-size: 80px;
        top: 0;
        right: 5px;
    }
    
    .wri-review-stars {
        gap: 2px;
        margin-bottom: 10px;
    }
    
    .wri-star {
        font-size: 16px;
    }
    
    .wri-review-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .wri-review-content {
        margin: 10px 0;
    }
    
    .wri-review-author {
        margin-top: 12px;
        gap: 8px;
    }
    
    .wri-author-avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .wri-author-name {
        font-size: 14px;
    }
    
    .wri-slider-prev,
    .wri-slider-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .wri-dot {
        width: 8px;
        height: 8px;
    }
    
    .wri-dot.active {
        width: 20px;
    }
}

/* RTL Support */
[dir="rtl"] .wri-review-card::before {
    right: auto;
    left: 15px;
}

[dir="rtl"] .wri-review-text {
    text-align: right;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wri-slider-prev,
    .wri-slider-next {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .wri-dot {
        background: #555;
    }
    
    .wri-dot:hover {
        background: #777;
    }
}

/* Accessibility */
.wri-slider-prev:focus,
.wri-slider-next:focus,
.wri-dot:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .wri-slider-nav,
    .wri-slider-dots {
        display: none;
    }
    
    .wri-review-slide {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .wri-reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}
