/* ==============================
   استایل حرفه‌ای فرم نظرات و نظرات + مدال
   ============================== */

/* خطاهای AJAX */
.pacp-ajax-error {
    display: none;
    margin-bottom: 1rem;
}

.pacp-error-box {
    padding: 0.75rem 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

/* ارورهای زیر فیلد */
.pacp-field-error {
    color: #d6336c;
    font-size: 0.875rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* ==============================
   استایل مدال موفقیت
   ============================== */
.pacp-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    
    justify-content: center;
    align-items: center;
}

.pacp-modal-overlay {
    position: absolute;
    width: 100%; height: 100%;
}

.pacp-modal-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 400px; width: 90%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: pacp-zoomIn 0.3s ease-out;
    z-index: 1;
}

@keyframes pacp-zoomIn {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

.pacp-modal-icon {
    margin-bottom: 1rem;
}

.pacp-modal-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1C0043;
    margin-bottom: 1.5rem;
}

/* pacp-modal-close removed */ {
    position: absolute;
    top: 0.5rem; right: 0.75rem;
    background: none; border: none;
    font-size: 1.5rem; color: #8C0BEF;
    cursor: pointer; transition: color 0.2s ease;
}

/* pacp-modal-close removed */:hover { color: unset; }

.pacp-modal-ok { color: #fff;
    color: #ffff;
    border: unset;
    background: transparent;
    background-image: linear-gradient(45deg, #8C0BEF 0%, #1C0043 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pacp-modal-ok:hover {
    color: #ffff;
    border: unset;
    opacity: 0.9;
}

/* ==============================
   استایل حرفه‌ای فرم نظرات
   ============================== */
.comment-form {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.comment-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: #8C0BEF;
    outline: none;
}

.comment-form-gender {
    margin-bottom: 1rem;
}

.pacp-radio {
    margin-right: 1rem;
    font-size: 1rem;
    cursor: pointer;
}

.pacp-radio input {
    margin-right: 0.5rem;
}

.icon-male { color: #00777d; }
.icon-female { color: #d6336c; }

/* دکمه ارسال */
.comment-form .form-submit input[type="submit"] {
    background: transparent;
    background-image: linear-gradient(45deg, #8C0BEF 0%, #1C0043 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    opacity: 0.9;
}

/* ==============================
   استایل حرفه‌ای نظرات 
   ============================== */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li.comment {
    margin-bottom: 2rem;
}

/* کارت نظرات */
.pacp-comment-body {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pacp-comment-body:hover {
    border-color: #ccc;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.pacp-comment-avatar {
    flex-shrink: 0;
    margin-right: 1rem;
}

.pacp-comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.pacp-comment-main {
    flex: 1;
}

.pacp-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pacp-author-wrap {
    display: flex;
    align-items: center;
}

.pacp-comment-author {
    font-size: 1.1rem;
    color: #1C0043;
    font-weight: 700;
    margin-left: 10px;
}

.pacp-gender-icon {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.pacp-admin-badge {
    background-color: #8C0BEF;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.75rem;
    display: none;
}

.pacp-comment-time {
    font-size: 0.875rem;
    color: #555;
}

.pacp-comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.75rem;

}

.pacp-comment-reply a {
    font-size: 0.875rem;
    color: #1C0043;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pacp-comment-reply a:hover {
    background-color: rgba(28, 0, 67, 0.1);
    border-color: #1C0043;
}

button.pacp-modal-ok {
    color: #fff;
    border: unset;
}

/* Round avatars styling added by ChatGPT */
.pacp-comment-avatar img {
    border-radius: 50%;
    border: 2px solid #000;
    margin-left: 20px;
}

/* استایل برای آواتار دایره‌ای */
.pacp-comment-avatar img {
    border-radius: 50% !important;
    border: solid 2px #000 !important;
}


/* استایل برای تگ کاربر */
.pacp-user-tag {
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    margin-left: 5px;
    font-size: 0.9em;
}
/* رنگ‌های مختلف برای هر تگ */
.pacp-tag-jarah { background-color: #3498db; }      /* آبی */
.pacp-tag-dandan { background-color: #e74c3c; }     /* قرمز */
.pacp-tag-moshaver { background-color: #2ecc71; }   /* سبز */
.pacp-tag-modir { background-color: #8C0BEF; }      /* بنفش */
.pacp-tag-nevisande { background-color: #f1c40f; }  /* زرد */
/* مطمئن شوید که آواتار دایره‌ای نیز اعمال شود */
.pacp-comment-avatar img {
    border-radius: 50% !important;
    border: solid 2px #000 !important;
}

.pacp-comment-time {
    background: #e7e7e7;
    color: #080808;
    padding: 2px 10px 2px 10px;
    border-radius: 05px;
}

label.pacp-radio {
    display: inline;
}

p.comment-form-cookies-consent {
    display: none;
}
.pacp-comment-reply {
    display: none;
}

/* ========================
   تنظیمات ریسپانسیو برای نمایش نظرات
   ======================== */
@media (max-width: 768px) {
    .comment-list li {
        flex-direction: column;
        padding: 10px 0;
    }

    .comment-author-avatar {
        flex: 0 0 auto;
        width: 50px;
        margin: 0 0 10px 0;
    }

    .comment-body {
        padding: 0;
    }

    .comment-meta {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .comment-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .comment-reply-link {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .comment-list li {
        padding: 8px 0;
    }

    .comment-author-avatar {
        width: 40px;
        margin-bottom: 8px;
    }

    .comment-meta {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    .comment-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .comment-reply-link {
        font-size: 0.75rem;
        margin-top: 6px;
    }
}

/* ========================
   به‌روزرسانی: تنظیمات موبایل برای .pacp-comment-header و .pacp-comment-time
   ======================== */
@media (max-width: 768px) {
    .pacp-comment-header {
        display: inline-block;
    }
    
    .pacp-author-wrap {
    display: grid;
    }

    
    .pacp-comment-time {
        width: fit-content;
        margin-top: 10px;
        font-size: 12px;
    }
}
