/* === پرسش یار — نسخه پریمیوم (Ultra Modern) === */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56e4;
    --primary-light: #eef1ff;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --hover: rgba(67, 97, 238, 0.1);
}

ul{
	list-style: none!important;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f1f5f9;
        --text-light: #94a3b8;
        --bg: #0f172a;
        --card-bg: #1e293b;
        --border: #334155;
        --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
        --primary-light: rgba(67, 97, 238, 0.1);
    }
}

.porseshyar-container {
    font-family: 'Segoe UI', system-ui, -apple-system, Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: background 0.3s ease;
}

/* === فرم ارسال سوال === */
.porseshyar-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.porseshyar-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67,97,238,0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.porseshyar-box > * {
    position: relative;
    z-index: 1;
}

.porseshyar-box h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--primary), #3a0ca3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.porseshyar-box h3::before {
    content: "✨";
    font-size: 1.3em;
}

.porseshyar-box label {
    display: block;
    font-weight: 700;
    margin: 14px 0 8px;
    color: var(--text);
    font-size: 0.95rem;
}

.porseshyar-box input,
.porseshyar-box textarea,
.porseshyar-box select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.porseshyar-box input:focus,
.porseshyar-box textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--primary-light);
}

.porseshyar-box button {
    background: linear-gradient(135deg, var(--primary), #3a0ca3);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.porseshyar-box button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
    z-index: -1;
}
.porseshyar-box button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6);
}
.porseshyar-box button:hover::before {
    left: 100%;
}
.porseshyar-box button:active {
    transform: translateY(0);
}

#porseshyar-response {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.4s ease;
}
#porseshyar-response.success {
    color: #0d9488;
    background: #ccfbf1;
    border: 1px solid #7dd3da;
}
#porseshyar-response.error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* === لیست سوالات === */
.porseshyar-product-questions,
.porseshyar-user-questions {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.porseshyar-product-questions h3 {
    margin-bottom: 24px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}
.porseshyar-product-questions h3::before {
    content: "💬";
    font-size: 1.4em;
}

.q_bulb {
    padding: 20px;
    background: var(--card-bg);
    color: var(--text);
    border-radius: 16px 16px 4px 16px;
    position: relative;
    font-size: 16px;
    border: 1px solid var(--border);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.03), -4px -4px 12px rgba(255,255,255,0.5);
}
.q_bulb::before {
    content: "👤";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.4em;
    opacity: 0.8;
}
.q_bulb strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 800;
    padding-left: 32px;
}
.q_bulb > span {
    padding-left: 32px;
    display: block;
    color: var(--text);
}

.porseshyar-admin-reply {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border-radius: 4px 16px 16px 16px;
    padding: 20px;
    margin-top: 12px;
    color: #1e40af;
    position: relative;
    border: 1px solid #bae6fd;
}
.porseshyar-admin-reply::before {
    content: "🛡️";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.4em;
    opacity: 0.8;
}
.porseshyar-admin-reply strong {
    color: #1d4ed8;
    font-weight: 800;
}
.porseshyar-admin-reply p {
    margin: 10px 0 0;
    padding-right: 32px;
    line-height: 1.6;
}

.porseshyar-product-questions-list li em,
.porseshyar-user-questions li em {
    display: inline-block;
    color: var(--danger);
    font-style: normal;
    background: #ffecf0;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 12px;
    border: 1px solid #fecaca;
}

.porseshyar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.porseshyar-tabs li {
    background: var(--card-bg);
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}
.porseshyar-tabs li:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.porseshyar-tabs li.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

/* === ⭐ سیستم رأی — نسخه نهایی و زیبا ⭐ === */
.porseshyar-voting {
    display: flex;
    gap: 18px;
    margin-top: 16px;
    align-items: center;
    direction: ltr;
}

.porseshyar-vote {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    min-width: 80px;
    justify-content: center;
}

.porseshyar-vote:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.porseshyar-icon {
    font-size: 26px !important;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.porseshyar-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    color: white;
}

/* Like – موفقیت */
.porseshyar-like .porseshyar-icon {
    color: var(--success);
}
.porseshyar-like .porseshyar-count {
    background: var(--success);
}
.porseshyar-like:hover .porseshyar-icon {
    color: #05b58a;
}
.porseshyar-like:hover .porseshyar-count {
    background: #05b58a;
}

/* Dislike – خطر */
.porseshyar-dislike .porseshyar-icon {
    color: var(--danger);
}
.porseshyar-dislike .porseshyar-count {
    background: var(--danger);
}
.porseshyar-dislike:hover .porseshyar-icon {
    color: #e02d5a;
}
.porseshyar-dislike:hover .porseshyar-count {
    background: #e02d5a;
}

.porseshyar-vote:active {
    transform: scale(0.98);
}

/* === ریسپانسیو === */
@media (max-width: 768px) {
    .porseshyar-box,
    .porseshyar-product-questions,
    .porseshyar-user-questions {
        padding: 20px;
    }
    .porseshyar-voting {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .porseshyar-vote {
        width: 100%;
        justify-content: flex-start;
        min-width: auto;
    }
}

/* === انیمیشن ورود === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.porseshyar-product-questions-list li,
.porseshyar-user-questions li {
    animation: fadeInUp 0.5s ease-out forwards;
}
.porseshyar-product-questions-list li:nth-child(1),
.porseshyar-user-questions li:nth-child(1) { animation-delay: 0.1s; }
.porseshyar-product-questions-list li:nth-child(2),
.porseshyar-user-questions li:nth-child(2) { animation-delay: 0.2s; }
.porseshyar-product-questions-list li:nth-child(3),
.porseshyar-user-questions li:nth-child(3) { animation-delay: 0.3s; }

/* === رأی‌گیری — با اولویت بالا === */
.porseshyar-voting {
    display: flex !important;
    gap: 18px !important;
    margin-top: 16px !important;
    align-items: center !important;
    direction: ltr !important;
}

.porseshyar-vote {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: var(--card-bg) !important;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    padding: 10px 18px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
    min-width: 80px !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.porseshyar-vote:hover {
    transform: translateY(-4px) scale(0.98) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.14) !important;
}

.porseshyar-icon {
    font-size: 26px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.porseshyar-count {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: white !important;
}

.porseshyar-like .porseshyar-count {
    background: var(--success) !important;
}
.porseshyar-dislike .porseshyar-count {
    background: var(--danger) !important;
}

/* === دکمه‌های لایک/دیسلایک — نسخه نهایی و زیبا === */
.porseshyar-rating {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: center;
    direction: ltr;
}

.vote-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    font-weight: 700;
    min-width: 90px;
    justify-content: center;
    /* مهم: دکمه‌های وردپرس را reset می‌کند */
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
}

.vote-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 14px rgba(0,0,0,0.12);
}

.vote-button .dashicons {
    font-size: 22px !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-button .like-count,
.vote-button .dislike-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: white;
}

/* Like — سبز */
.vote-button.like {
    color: #06d6a0;
}
.vote-button.like .like-count {
    background: #06d6a0;
}
.vote-button.like:hover {
    color: #05b58a;
	background: #fff;
}
.vote-button.like:hover .like-count {
    background: #05b58a;
}

/* Dislike — قرمز */
.vote-button.dislike {
    color: #ef476f;
	background: #fff;
}
.vote-button.dislike .dislike-count {
    background: #ef476f;
}
.vote-button.dislike:hover {
    color: #e02d5a;
}
.vote-button.dislike:hover .dislike-count {
    background: #e02d5a;
}

.vote-button:active {
    transform: scale(0.97);
}

/* === لودینگ نئونی پرسش یار — Ultra Modern === */
.porseshyar-neon-loader {
    display: inline-block;
    text-align: center;
    padding: 20px;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(67, 97, 238, 0.15);
}

.porseshyar-neon-loader span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(67, 97, 238, 0.3);
}

.neon-bars {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 120px;
    margin: 0 auto;
}

.neon-bars div {
    width: 8px;
    height: 32px;
    background: #4361ee;
    border-radius: 4px;
    animation: neonPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px #4361ee, 0 0 20px #4361ee;
}

.neon-bars div:nth-child(2) { animation-delay: 0.1s; }
.neon-bars div:nth-child(3) { animation-delay: 0.2s; }
.neon-bars div:nth-child(4) { animation-delay: 0.3s; }
.neon-bars div:nth-child(5) { animation-delay: 0.4s; }

@keyframes neonPulse {
    0%, 100% {
        transform: scaleY(1);
        box-shadow: 0 0 10px #4361ee, 0 0 20px #4361ee;
    }
    50% {
        transform: scaleY(0.4);
        box-shadow: 0 0 15px #4361ee, 0 0 25px #4361ee, 0 0 35px #4361ee;
    }
}

/* نسخه Dark Mode */
@media (prefers-color-scheme: dark) {
    .porseshyar-neon-loader span {
        color: #e2e8f0;
    }
    .porseshyar-neon-loader {
        background: rgba(67, 97, 238, 0.1);
        border-color: rgba(67, 97, 238, 0.3);
    }
}

/* === بادج تعداد سوالات در تب محصول === */
.porseshyar-tab-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4361ee, #3a56e4);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 8px;
    margin-top: -2px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
    min-width: 22px;
    text-align: center;
    line-height: 1;
}

/* نسخه دارک‌مد (اختیاری ولی پیشنهادی) */
@media (prefers-color-scheme: dark) {
    .porseshyar-tab-badge {
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        box-shadow: 0 2px 8px rgba(100, 100, 255, 0.4);
    }
}