/* تنظیمات کلی */
:root {
    --primary-color: #e70003;
    --secondary-color: #c70203;
    --text-color: #333333;
    --bg-color: #ffffff;
    --font-primary: 'IRANYekanXVF', sans-serif;
    --font-heading: 'PeydaWebVF', sans-serif;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

/* عنوان دیدگاه‌ها */
.title-comments.my-custom-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #525252;
    background: #fbfbfb;
    padding: 0.6rem;
    margin: 1.5rem auto;
    width: 95%;
    text-align: center;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* فرم ارسال دیدگاه */
.comment-respond {
    background: #fbfbfb;
    padding: 1rem;
    margin: 1.5rem auto;
    width: 95%;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.comment-reply-title.my-custom-reply-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: bold;
    color: #808284;
    padding: 0.1rem;
    margin-bottom: 15px;
    text-align: right;
    border-radius: 6px;
}

#cancel-comment-reply-link {
    display: inline-block;
    font-size: 0.75rem;
    color: #fff;
    background: #00b67a;
    padding: 3px 8px;
    margin-right: 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#cancel-comment-reply-link:hover {
    background: #808284;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.comment-form textarea#comment {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-size: 13px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    resize: vertical;
    transition: background-color 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form textarea#comment:focus {
    background: #e700030a;
    border-color: #e70003;
    box-shadow: 0 0 4px #e700030a;
    outline: none;
}

.comment-form textarea#comment::placeholder {
    color: #9b9a9a;
    font-size: 13px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-comment textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.comment-form-comment textarea {
    min-height: 100px;
}

.comment-rules {
    background: #e9e9e94d;
    padding: 0.8rem;
    margin: 1rem 0;
    border-radius: 6px;
    box-shadow: 0 1px 3px #e0e0e0;
}

.comment-rules h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #525252;
    margin-bottom: 0.6rem;
}

.comment-rules ul {
    list-style: none;
    padding: 0;
}

.comment-rules li {
    position: relative;
    padding-right: 0.7rem;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #525252;
    line-height: 1.1;
}

.comment-rules li::before {
    content: '●';
    position: absolute;
    right: 0;
    color: #e70003;
    font-size: 0.7rem;
}

.form-terms {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #525252;
    margin-bottom: 10px;
}

.form-terms input {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    accent-color: #e70003;
    cursor: pointer;
}

.form-terms label a {
    color: #e70003;
    margin-left: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-terms label a:hover {
    color: #c70203;
}

.form-submit input.submit {
    display: block;
    width: 25%;
    margin-right: auto;
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
    background: #e70003;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.form-submit input.submit:hover {
    background: #c70203;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* کامنت‌ها */
.comment {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 95%;
    margin: 1rem;
    padding: 1rem;
    background: #fbfbfb;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.comment.depth-2 {
    width: 90%;
    margin: 1rem 2.5rem;
    padding: 0.9rem;
    background: #fffbfb;
    border: 1px solid #fce8e8;
    border-right: 2px solid #ff8383;
    border-radius: 8px;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #808293;
}

.comment-author img {
    width: 40px !important;
    height: 40px !important;
    margin-left: 8px;
    border: 1px solid #e9e9e9 !important;
    border-radius: 50% !important;
}

.comment-meta {
    font-size: 11px;
    color: #777;
    margin-right: 8px;
    padding: 2px 6px;
    background: #f5f5f5;
    border-radius: 3px;
}

.comment-content {
    font-size: 14px;
    color: #444;
    padding-top: 4px;
    line-height: 1.4;
}

.comment.depth-2 .comment-content {
    color: #1c1c1c;
}

.reply {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.comment-reply-link {
    font-size: 13px;
    font-weight: 600;
    color: #777;
    background: #f5f5f5;
    padding: 4px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.comment-reply-link:hover {
    color: #1c1c1c !important;
    background: #e9e9e9;
}

/* کامنت‌های در انتظار */
.pending-comment {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 95%;
    margin: 1rem;
    padding: 1rem;
    background: #a6e6d12b;
    border: 1px solid #00b67a;
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.comment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #00b67a;
}

.comment-status svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.comment-status svg circle,
.comment-status svg path {
    stroke: #00b67a;
}

.comment-status svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comment-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
    direction: ltr;
}

.comment-actions button {
    margin-left: 8px;
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.comment-actions .edit-comment {
    background: #00b67a;
    color: #fff !important;
}

.comment-actions .delete-comment {
    background: #e70003;
    color: #fff !important;
}

/* سایدبار کامنت‌ها */
/* سایدبار کامنت‌ها – نسخه نئوترال حرفه‌ای */
.five-c-comment-item {
    display: flex;
    flex-direction: column;
    margin: 0.4rem 0;
    padding: 0.5rem;
    background: #f7f8fa; /* سفید-آبی خیلی روشن */
    border: 1px solid #d7dce2; /* مرز خنثی ملایم */
    border-radius: 10px;
    line-height: 1.6;
    transition: 0.25s ease;
}

.five-c-comment-item:hover {
    background: #eef1f5; /* هاور روشن‌تر و تمیز */
    border-color: #c2c8d1;
}

.five-c-comment-item img {
    margin-bottom: -10px;
}

.five-c-comment-author.five-c-vcard img {
    width: 35px;
    height: 35px;
    margin-left: 4px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
}

.five-c-comment-author {
    font-size: 11px;
    font-weight: bold;
    color: #3f4754; /* طوسی زغالی شیک */
}

.five-c-comment-content {
    font-size: 12px;
    font-weight: 400;
    color: #555d6b; /* طوسی آبی خنثی و خوانا */
    margin-top: 4px;
    line-height: 1.5;
}

.five-c-comment-item a {
    font-size: 13px;
    color: #64748b; /* آبی زغالی بسیار ملایم */
    margin-left: 2px;
    line-height: 1.4;
    transition: 0.25s ease;
}

.five-c-comment-item a:hover {
    color: #2f3640 !important; /* تیره، حرفه‌ای، بدون جیغ */
}

.five-c-comment-content a {
    font-weight: 500;
    color: #4e5a6e; 
    text-decoration: none;
    transition: 0.25s ease;
}

.five-c-comment-content a:hover {
    color: #1b1f25;
    text-decoration: underline;
}


/* پیام نیاز به ورود */
.login-required {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: #525252;
    margin: 1rem auto;
    padding: 0.8rem;
    width: 95%;
    text-align: center;
    line-height: 1.4;
    border-radius: 6px;
}

.login-required a {
    font-weight: 600;
    color: #e70003;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-required a:hover {
    color: #c70203;
}

/* لینک ورود برای پاسخ */
.comment-reply-login {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: #00b67a;
    padding: 4px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.comment-reply-login:hover {
    background: #009966;
    color: #fff;
}

/* اسکرول‌بار سفارشی */
.comment-list.my-custom-comment-list {
    max-height: 65vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e70003 #fbfbfb;
    -webkit-overflow-scrolling: touch;
}

.comment-list.my-custom-comment-list::-webkit-scrollbar {
    width: 7px;
}

.comment-list.my-custom-comment-list::-webkit-scrollbar-track {
    background: #e9e9e9;
    border-radius: 3px;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
}

.comment-list.my-custom-comment-list::-webkit-scrollbar-thumb {
    background: #e70003;
    border-radius: 3px;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .title-comments.my-custom-title {
        font-size: 0.95rem;
        padding: 0.5rem;
        margin: 1rem auto;
        border-radius: 7px;
    }

    .comment-respond,
    .login-required {
        padding: 0.8rem;
        margin: 1rem auto;
    }

    .comment,
    .pending-comment {
        padding: 0.7rem;
        margin: 0.4rem 0;
    }

    .comment.depth-2 {
        margin: 0.4rem;
        padding: 0.7rem;
    }

    .form-submit input.submit {
        width: 70%;
        padding: 7px 0;
        font-size: 13px;
    }

    .comment-form textarea#comment {
        min-height: 100px;
        font-size: 12px;
        padding: 7px;
    }

    .comment-rules h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .comment-rules li {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .form-terms {
        font-size: 12px;
    }

    .form-terms input {
        width: 15px;
        height: 15px;
    }

    .login-required {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    .comment-reply-login {
        font-size: 0.8rem;
        padding: 3px 12px;
    }

    .comment-list.my-custom-comment-list {
        max-height: 55vh;
    }
}

@media (max-width: 768px) {
    .title-comments.my-custom-title {
        font-size: 0.9rem;
        padding: 0.5rem;
        border-radius: 5px;
    }

    .comment-respond {
        padding: 0.7rem;
    }

    .comment-reply-title.my-custom-reply-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .comment-form textarea#comment {
        min-height: 70px;
        font-size: 11px;
        padding: 5px;
    }
    .comment-form-author input,
    .comment-form-email input {
        padding: 6px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .comment-rules h3 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .comment-rules li {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
    }

    .form-terms {
        font-size: 11px;
    }

    .form-terms input {
        width: 13px;
        height: 13px;
    }

    .form-submit input.submit {
        width: 90%;
        font-size: 12px;
        padding: 5px 0;
    }

    .comment,
    .pending-comment {
        padding: 0.5rem;
    }

    .comment-author img {
        width: 32px !important;
        height: 32px !important;
    }

    .comment-meta {
        font-size: 9px;
        padding: 2px 4px;
    }

    .comment-content {
        font-size: 12px;
        line-height: 1.3;
    }

    .comment-reply-link {
        font-size: 11px;
        padding: 3px 12px;
    }

    .comment-status {
        font-size: 11px;
    }

    .comment-status svg {
        width: 16px;
        height: 16px;
    }

    .comment-actions button {
        padding: 3px 8px;
        font-size: 11px;
    }

    .five-c-comment-item {
        padding: 0.35rem;
    }

    .five-c-comment-author.five-c-vcard img {
        width: 30px;
        height: 30px;
    }

    .five-c-comment-author {
        font-size: 9px;
    }

    .five-c-comment-content {
        font-size: 10px;
    }

    .comment-list.my-custom-comment-list {
        max-height: 45vh;
    }

    .login-required {
        font-size: 0.85rem;
        padding: 0.5rem;
        margin: 0.7rem auto;
    }

    .comment-reply-login {
        font-size: 0.75rem;
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .title-comments.my-custom-title {
        font-size: 0.85rem;
        padding: 0.4rem;
        border-radius: 4px;
    }

    .comment-respond {
        padding: 0.5rem;
    }

    .comment-reply-title.my-custom-reply-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .comment-form textarea#comment {
        min-height: 60px;
        font-size: 10px;
    }
    .comment-form-author input,
    .comment-form-email input {
        padding: 5px;
        font-size: 11px;
        margin-bottom: 6px;
    }

    .comment-rules h3 {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .comment-rules li {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
        line-height: 1.1;
    }

    .form-terms {
        font-size: 10px;
    }

    .form-terms input {
        width: 12px;
        height: 12px;
    }

    .form-submit input.submit {
        font-size: 11px;
        padding: 4px 0;
        width: 100%;
    }

    .comment,
    .pending-comment {
        padding: 0.4rem;
    }

    .comment-author img {
        width: 28px !important;
        height: 28px !important;
    }

    .comment-meta {
        font-size: 8px;
    }

    .comment-content {
        font-size: 11px;
    }

    .comment-reply-link {
        font-size: 10px;
        padding: 2px 10px;
    }

    .comment-status {
        font-size: 10px;
    }
     .comment-status svg {
        width: 14px;
        height: 14px;
    }

    .comment-actions button {
        padding: 2px 6px;
        font-size: 10px;
    }

    .five-c-comment-item {
        padding: 0.25rem;
    }

    .five-c-comment-author.five-c-vcard img {
        width: 26px;
        height: 26px;
    }

    .five-c-comment-author {
        font-size: 8px;
    }

    .five-c-comment-content {
        font-size: 9px;
    }

    .comment-list.my-custom-comment-list {
        max-height: 40vh;
    }

    .login-required {
        font-size: 0.8rem;
        padding: 0.4rem;
        margin: 0.4rem auto;
    }

    .comment-reply-login {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}