/* Comments Styles */
.comments-area {
    margin-top: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 15px;
}

.comment-body {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.dark-mode .comment-body {
    background-color: #333333;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .fn {
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 5px;
}

body.dark-mode .comment-author .fn {
    color: #ffffff;
}

.comment-author .fn .verified-icon {
    width: 16px;
    height: 16px;
}

.comment-meta {
    font-size: 12px;
    color: #999999;
    margin-right: 5px;
}

body.dark-mode .comment-meta {
    color: #cccccc;
}

.comment-content {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

body.dark-mode .comment-content {
    color: #cccccc;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #e20a0b;
    text-decoration: none;
    margin-top: 5px;
}

.comment-reply-link:hover {
    color: #b50809;
}

.children {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-right: 30px;
    position: relative;
}

.children .comment {
    margin-right: 20px;
    margin-top: 15px;
    position: relative;
}

.children .comment::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    height: 100%;
    width: 2px;
    border-right: 2px dashed #d3d3d3;
}

body.dark-mode .children .comment::before {
    border-color: #2a2a2a;
}

.comment-navigation {
    margin-top: 20px;
}

.comment-navigation .nav-links {
    display: flex;
    gap: 10px;
}

.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
    font-size: 14px;
    color: #e20a0b;
    text-decoration: none;
}

.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover {
    color: #b50809;
}

.no-comments-message {
    background-color: #cff4fc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: #055160;
    margin-bottom: 20px;
}

.comment-form-wrapper {
    margin-top: 20px;
}

.reply-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333333;
}

body.dark-mode .reply-notice {
    color: #ffffff;
}

.replying-to {
    font-weight: 500;
}

.reply-author {
    color: #e20a0b;
}

.cancel-reply {
    background: none;
    border: 1px solid #e20a0b;
    color: #e20a0b;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'IRANSansX', sans-serif; /* تنظیم فونت */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cancel-reply:hover {
    background-color: #e20a0b;
    color: #ffffff;
}

/* مخفی کردن دکمه لغو پاسخ پیش‌فرض وردپرس */
#cancel-comment-reply-link {
    display: none;
}

.comment-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

body.dark-mode .comment-form-title {
    color: #ffffff;
}

.comment-form-icon-wrapper {
    background: #e20a0b;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.comment-form-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.comment-form {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 25px;
}

body.dark-mode .comment-form {
    background-color: #333333;
}

.comment-form-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form-author,
.comment-form-email {
    flex: 1;
    margin: 0;
}

.comment-form-author input,
.comment-form-email input {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSansX', sans-serif;
    box-sizing: border-box;
}

body.dark-mode .comment-form-author input,
body.dark-mode .comment-form-email input {
    border-color: #2a2a2a;
    background-color: #444444;
    color: #ffffff;
}

.comment-form-author input::placeholder,
.comment-form-email input::placeholder,
.comment-form-comment textarea::placeholder {
    font-family: 'IRANSansX', sans-serif;
    color: #999999;
}

body.dark-mode .comment-form-author input::placeholder,
body.dark-mode .comment-form-email input::placeholder,
body.dark-mode .comment-form-comment textarea::placeholder {
    color: #cccccc;
}

.comment-form-comment {
    margin-bottom: 15px;
}

.comment-form-comment textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSansX', sans-serif;
    resize: vertical;
    box-sizing: border-box;
}

body.dark-mode .comment-form-comment textarea {
    border-color: #2a2a2a;
    background-color: #444444;
    color: #ffffff;
}

.form-submit {
    margin: 0;
    text-align: left;
    direction: rtl;
}

.submit-comment-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e20a0b;
    color: #ffffff;
    border: none;
    padding: 8px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSansX', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-comment-button:hover {
    background-color: #b50809;
}

.submit-comment-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
    .comment-form-title {
        font-size: 20px;
    }

    .comment-form-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .comment-form-icon {
        width: 18px;
        height: 18px;
    }

    .comment-form-fields {
        flex-direction: column;
        gap: 10px;
    }

    .comment-author .avatar {
        width: 28px;
        height: 28px;
    }

    .comment-author .fn {
        font-size: 13px;
    }

    .comment-meta {
        font-size: 11px;
    }

    .comment-content {
        font-size: 13px;
    }

    .comment-reply-link {
        font-size: 12px;
    }

    .children {
        margin-right: 20px;
    }

    .children .comment {
        margin-right: 15px;
        margin-top: 10px;
    }

    .children .comment::before {
        right: -15px;
    }

    .reply-notice {
        font-size: 13px;
    }

    .cancel-reply {
        font-size: 12px;
        padding: 4px 8px;
    }
}