.post-rating-container {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    direction: rtl;
}

.rating-title {
    font-size: 15px;
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 600;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 15px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    font-size: 13px;
}

.rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.rating-btn.good {
    border-color: #4CAF50;
}

.rating-btn.good:hover {
    background: #4CAF50;
    color: white;
}

.rating-btn.average {
    border-color: #FF9800;
}

.rating-btn.average:hover {
    background: #FF9800;
    color: white;
}

.rating-btn.bad {
    border-color: #f44336;
}

.rating-btn.bad:hover {
    background: #f44336;
    color: white;
}

.rating-emoji {
    font-size: 22px;
    line-height: 1;
}

.rating-label {
    font-size: 12px;
    font-weight: 600;
}

.rating-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.good-stat {
    background: #E8F5E9;
    color: #2E7D32;
}

.average-stat {
    background: #FFF3E0;
    color: #E65100;
}

.bad-stat {
    background: #FFEBEE;
    color: #C62828;
}

.stat-emoji {
    font-size: 18px;
    line-height: 1;
}

.stat-count {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.rating-message {
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.rating-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #4CAF50;
}

.rating-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #f44336;
}

.rating-message-box {
    margin-top: 10px;
}

/* حالت بارگذاری */
.rating-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .post-rating-container {
        padding: 12px;
    }

    .rating-buttons {
        gap: 8px;
    }

    .rating-btn {
        min-width: 65px;
        padding: 7px 12px;
    }

    .rating-emoji {
        font-size: 20px;
    }

    .rating-stats {
        gap: 8px;
        padding: 8px;
    }

    .stat-item {
        padding: 5px 10px;
    }
}