/* ==========================================================================
   AROOSYAR • نظرات/دیدگاه‌ها (صفحهٔ تک‌محصولی کسب‌وکار + پست‌های بلاگ)
   از متغیرهای CSS پروژه استفاده می‌کنه (aroosyar-theme.css سایت‌محور لود می‌شه)
   ========================================================================== */

.aroosyar-comments-wrap{
    margin-top: 10px;
}
.aroosyar-comments-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.aroosyar-comments-head h2{
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}
.aroosyar-comments-count{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--sky-100);
    color: var(--sky-600);
    font-size: .78rem;
    font-weight: 800;
    margin-inline-start: 8px;
}

/* ---------------- لیست نظرات ---------------- */
.aroosyar-comment-list,
.aroosyar-comment-list ul.children{
    list-style: none;
    margin: 0;
    padding: 0;
}
.aroosyar-comment-list ul.children{
    margin-top: 14px;
    padding-inline-start: 26px;
    border-inline-start: 2px solid var(--line);
}

.aroosyar-comment-item{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--sh-1);
}
.aroosyar-comment-item.bypostauthor{
    border-color: var(--sky-400);
    background: var(--sky-50, #F4F8FB);
}

.aroosyar-comment-row{
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.aroosyar-comment-avatar img{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.aroosyar-comment-body{ flex: 1; min-width: 0; }

.aroosyar-comment-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 4px;
}
.aroosyar-comment-author{
    font-weight: 800;
    font-size: .9rem;
    color: var(--ink);
}
.aroosyar-comment-date{
    font-size: .74rem;
    color: var(--muted);
}

.aroosyar-comment-text{
    font-size: .87rem;
    color: var(--ink-2);
    line-height: 1.95;
    margin-top: 6px;
}
.aroosyar-comment-text p{ margin: 0 0 .6em; }
.aroosyar-comment-text p:last-child{ margin-bottom: 0; }

.aroosyar-comment-pending{
    display: inline-block;
    margin-top: 6px;
    font-size: .74rem;
    color: #a3232f;
    background: #fdeeee;
    border: 1px solid #f3c2c5;
    border-radius: 999px;
    padding: 3px 10px;
}

.aroosyar-comment-footer{
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.aroosyar-comment-reply-link,
.aroosyar-comment-reply-link a{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--sky-600);
    background: var(--sky-100);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
    transition: var(--t);
}
.aroosyar-comment-reply-link a:hover{
    background: var(--sky-400);
    color: #fff;
}

.aroosyar-no-comments{
    color: var(--muted);
    font-size: .86rem;
    background: var(--sky-50, #F4F8FB);
    border: 1px dashed var(--line);
    border-radius: var(--r-sm);
    padding: 18px;
    text-align: center;
    margin-bottom: 26px;
}

/* ---------------- فرم ثبت نظر ---------------- */
#commentform{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px 22px;
    box-shadow: var(--sh-1);
    margin-top: 10px;
}
.comment-reply-title{
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 16px;
    display: block;
}
.comment-reply-title small a{
    font-size: .76rem;
    font-weight: 700;
    color: var(--muted);
    margin-inline-start: 10px;
}

#commentform p{ margin: 0 0 16px; }
#commentform label{
    display: block;
    font-weight: 700;
    font-size: .82rem;
    color: var(--ink-2);
    margin-bottom: 7px;
}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea{
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--sky-50, #F4F8FB);
    box-sizing: border-box;
    transition: var(--t);
}
#commentform textarea{ resize: vertical; min-height: 110px; }
#commentform input:focus,
#commentform textarea:focus{
    outline: none;
    border-color: var(--sky-400);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(163, 190, 231, .25);
}

#commentform .form-submit{ margin: 6px 0 0; }
#commentform #submit,
#commentform input[type="submit"]{
    background: linear-gradient(135deg, var(--sky-600), var(--sky-400));
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(112, 153, 214, .55);
    transition: var(--t);
}
#commentform #submit:hover{ transform: translateY(-2px); }

/* فیلد امتیاز ستاره‌ای (روی star-rating.css سوار می‌شه، فقط فاصله/چیدمانش رو هماهنگ می‌کنیم) */
#commentform .aroosyar-rating-field{
    background: var(--sky-50, #F4F8FB);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
}

@media (max-width: 575px){
    .aroosyar-comment-list ul.children{ padding-inline-start: 14px; }
    #commentform{ padding: 18px 16px; }
}