/* Review Display Plugin Styles */
.review-display-container {
    font-family: 'Yekan' !important;
    margin: 0 auto;
    direction: rtl;
    text-align: right;
    position: relative;
}

.review-display-wrapper {
    position: relative;
    min-height: 200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.review-item {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease-in-out;
}

.review-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.review-card {
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Header Section */
.review-header {
    display: flex;
    direction: rtl;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.review-user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row-reverse;
    gap: 12px;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.user-location {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

.review-score {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.score-label {
    font-size: 14px;
    color: #333;
}

.score-value {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    margin: 0 2px;
}

.score-max {
    font-size: 14px;
    color: #333;
}

/* Comment Section */
.review-comment {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    text-align: justify;
}

/* Footer Section */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.review-exam {
    font-weight: 500;
}

.review-date {
    font-style: italic;
}

/* Navigation */
.review-navigation {
    display: none;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.review-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
    outline: none;
}

.review-nav-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
    transform: scale(1.05);
}

.review-nav-btn:active {
    transform: scale(0.95);
}

.review-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Animation */
.review-display-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-item.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-display-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .review-score {
        align-self: flex-end;
    }
    
    .user-name {
        font-size: 15px;
    }
    
    .user-location {
        font-size: 13px;
    }
    
    .review-comment {
        font-size: 14px;
    }
    
    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 16px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-avatar svg {
        width: 18px;
        height: 18px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .review-comment {
        font-size: 13px;
    }
    
    .review-navigation {
        gap: 12px;
    }
    
    .review-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* RTL Specific Adjustments */
.review-display-container {
    direction: rtl;
}

.review-header {
    flex-direction: row-reverse;
}

.review-user-info {
    flex-direction: row-reverse;
}

.review-footer {
    flex-direction: row-reverse;
}

/* Accessibility */
.review-nav-btn:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.review-card:focus-within {
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

/* Print Styles */
@media print {
    .review-navigation {
        display: none;
    }
    
    .review-display-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 