/* استایل‌های اصلی سیستم نظرات */
.custom-comment-form-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: white;
}

.custom-comment-form-wrapper .comment-form-title {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.custom-comment-form {
    max-width: 100%;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* استایل ستاره‌های امتیازدهی */
.rating-group {
    text-align: center;
    padding: 1rem 0;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-label {
    font-size: 2.5rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.star-label:hover,
.star-rating input:checked ~ .star-label,
.star-label:hover ~ .star-label {
    color: #ffd700;
    transform: scale(1.1);
}

.star-rating input:checked + .star-label {
    color: #ffd700;
}

/* دکمه ارسال */
.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* پیام‌های فرم */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #48bb78;
}

.form-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #f56565;
}

.user-has-commented {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    color: #2d3748;
}

/* استایل لیست نظرات */
.custom-comments-list {
    margin: 4rem 0;
}

.comments-title {
    color: #2d3748;
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.comments-count {
    color: #718096;
    font-size: 1rem;
    font-weight: normal;
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    color: #718096;
    border: 2px dashed #cbd5e0;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.comment-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.comment-author {
    flex: 1;
}

.author-name {
    font-weight: bold;
    color: #2d3748;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.comment-date {
    color: #718096;
    font-size: 0.9rem;
}

.comment-rating {
    flex-shrink: 0;
}

.star {
    font-size: 1.2rem;
    margin-left: 2px;
}

.star.filled {
    color: #f6ad55;
}

.comment-body {
    margin-bottom: 1.5rem;
}

.comment-title {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.comment-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.like-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.like-btn:hover {
    background: #fed7d7;
    border-color: #f56565;
    color: #742a2a;
    transform: scale(1.05);
}

.like-btn.liked {
    background: #fed7d7;
    border-color: #f56565;
    color: #742a2a;
}

.like-icon {
    font-size: 1.1rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .custom-comment-form-wrapper {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .custom-comment-form {
        padding: 1.5rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-item {
        padding: 1.5rem;
    }
    
    .star-rating {
        gap: 0.3rem;
    }
    
    .star-label {
        font-size: 2rem;
    }
}