﻿/* RTL کامل برای SweetAlert2 */
.swal2-popup {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'IranYekan', 'Tahoma', sans-serif !important; /* فونت فارسی دلخواهت */
    font-size:16px;
}

.swal2-title {
    text-align: center !important; /* عنوان همیشه وسط باشه - قشنگ‌تره */
}

.swal2-html-container {
    text-align: right !important;
    direction: rtl !important;
}

.swal2-actions {
    flex-direction: row-reverse !important; /* دکمه‌ها از راست به چپ */
}

.swal2-confirm {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

.swal2-cancel {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

/* Toast در بالا سمت چپ (برای RTL بهتره بالا-چپ باشه) */
.swal2-toast {
    direction: rtl !important;
    text-align: right !important;
}

    .swal2-toast .swal2-title {
        text-align: right !important;
    }

    .swal2-toast .swal2-icon {
        margin-left: 12px !important;
        margin-right: 0 !important;
    }

/* انیمیشن ورود از راست */
.swal2-show {
    animation: swal2-show-rtl 0.3s;
}

@keyframes swal2-show-rtl {
    0% {
        transform: scale(0.7) translateX(100%);
    }

    45% {
        transform: scale(1.05) translateX(-10%);
    }

    100% {
        transform: scale(1) translateX(0);
    }
}
.comment_list {
    margin: 40px 0;
}

.comment_item {
    width:100%;
    display: flex;
    direction: rtl;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .comment_item:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        transform: translateY(-3px);
    }

.comment-author-thumb {
    flex-shrink: 0;
    margin-left: 20px;
}

    .comment-author-thumb img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #f0f0f0;
    }

.comment_main {
    flex: 1;
    min-width: 0;
}

.comment_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment_author_info h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

    .comment_author_info h5 a {
        color: #333;
        text-decoration: none;
    }

        .comment_author_info h5 a:hover {
            color: #764ba2; /* رنگ برند مونت ولیر یا هر رنگی که دوست داری */
        }

.comment_date {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    display: block;
}

.comment_actions .reply_link {
    font-size: 14px;
    color: #764ba2;
    text-decoration: none;
}

    .comment_actions .reply_link:hover {
        text-decoration: underline;
    }

.comment_text p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* --- پاسخ ادمین --- */
.admin_reply {
    background: linear-gradient(135deg, #f8f5ff 0%, #f0eafc 100%);
    border-right: 4px solid #764ba2;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 15px;
    display: none; /* ابتدا مخفی */
}

    .admin_reply.show {
        display: block;
        animation: fadeIn 0.4s ease;
    }

.reply_header {
    margin-bottom: 10px;
    font-size: 14px;
    color: #764ba2;
}

    .reply_header strong {
        color: #5a3780;
    }

.reply_date {
    color: #999;
    font-size: 12px;
    margin-right: 10px;
}

.admin_reply p {
    margin: 0;
    color: #444;
}

.admin_reply a {
    color: #764ba2;
    font-weight: 500;
    text-decoration: underline;
}

/* --- دکمه مشاهده پاسخ --- */
.toggle_reply {
    margin-top: 15px;
    text-align: left;
}

    .toggle_reply a {
        font-size: 14px;
        color: #764ba2;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .toggle_reply a i {
            transition: transform 0.3s ease;
        }

        .toggle_reply a.active i {
            transform: rotate(180deg);
        }

/* انیمیشن نرم */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.comments_form {
    margin: 60px auto;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.comments_form_card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 900px; /* اختیاری: برای خوانایی بهتر، عرض محدود */
    margin: 0 auto; /* وسط‌چین */
    border: 1px solid #f0f0f0;
}

    .comments_form_card:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        transform: translateY(-3px);
    }

    .comments_form_card h3 {
        font-size: 22px;
        margin-bottom: 15px;
        color: #333;
        font-weight: 600;
        text-align: center;
    }

    .comments_form_card p {
        font-size: 15px;
        color: #666;
        line-height: 1.7;
        margin-bottom: 30px;
        text-align: center;
    }

.club_link {
    color: #764ba2; /* رنگ برند – تغییر بده اگر لازم بود */
    font-weight: 500;
    text-decoration: underline;
}

    .club_link:hover {
        color: #5a3780;
    }

/* --- فیلد textarea --- */
.form_group {
    margin-bottom: 30px;
}

    .form_group label {
        display: block;
        font-size: 16px;
        margin-bottom: 10px;
        color: #444;
        font-weight: 500;
    }

    .form_group textarea {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        font-family: 'IranYekan', sans-serif;
        font-size: 15px;
        resize: vertical;
        transition: all 0.3s ease;
        background: #fafafa;
        box-sizing: border-box;
    }

        .form_group textarea:focus {
            outline: none;
            border-color: #764ba2;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
        }

/* --- دکمه ارسال --- */
.submit_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: 'IranYekan', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    margin: 0 auto;
}

    .submit_btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
    }

    .submit_btn i {
        font-size: 17px;
    }

/* موبایل: کمی فشرده‌تر */
@media (max-width: 768px) {
    .comments_form_card {
        padding: 25px 20px;
    }

    .submit_btn {
        width: 100%;
    }
}
