/* استایل‌های عمومی */
:root {
    --star-color: #ffd700;
    --star-size: 20px;
    --star-spacing: 5px;
    --star-font: Arial;
    --dynamic-speed: 300ms;
}

/* استایل ستاره‌ها */
.star-rating-container {
    display: inline-flex;
    direction: ltr;
    unicode-bidi: bidi-override;
    font-family: var(--star-font);
}

.star-rating-container .star {
    cursor: pointer;
    font-size: var(--star-size);
    color: #ddd;
    margin: 0 var(--star-spacing);
    transition: all var(--dynamic-speed) ease;
}

.star-rating-container .star.filled,
.star-rating-container .star:hover,
.star-rating-container .star:hover ~ .star {
    color: var(--star-color);
}

/* انیمیشن داینامیک */
.star-rating-container.dynamic .star:hover {
    transform: scale(1.2);
}

.star-rating-container.dynamic .star:active {
    transform: scale(0.9);
}

/* استایل نمایش امتیاز در نظرات */
.stars-display {
    display: inline-flex;
    unicode-bidi: bidi-override;
    font-family: var(--star-font);
}

.stars-display .star {
    font-size: var(--star-size);
    color: #ddd;
    margin: 0 var(--star-spacing);
}

.stars-display .star.filled {
    color: var(--star-color);
}

/* استایل موقعیت مکانی */
.comment-location {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.comment-location span {
    display: inline-block;
    margin-left: 15px;
}

.comment-location i {
    margin-left: 5px;
    color: var(--star-color);
}

/* استایل آپلود تصویر */
.comment-form-image {
    margin: 15px 0;
}

.comment-form-image label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form-image input[type="file"] {
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    width: 100%;
}

.image-preview {
    margin-top: 10px;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* استایل تصاویر در نظرات */
.comment-image {
    margin: 10px 0;
}

.comment-image img {
    object-fit: cover;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* استایل فرم نظر */
.comment-form-rating,
.comment-form-country,
.comment-form-city {
    margin: 15px 0;
}

.comment-form-rating label,
.comment-form-country label,
.comment-form-city label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form-country select,
.comment-form-city select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* استایل ویجت نمایش نظرات */
.star-rating-comments-list {
    display: grid;
    gap: 20px;
}

.star-rating-comment-item {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.star-rating-comment-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-date {
    color: #999;
    font-size: 12px;
}

.comment-content {
    margin-top: 10px;
    line-height: 1.6;
    color: #555;
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .star-rating-container .star {
        font-size: calc(var(--star-size) * 0.8);
    }
    
    .comment-location span {
        display: block;
        margin: 5px 0;
    }
}