/* ═══════════════════════════════════════
   Psy Tests — استایل کارت‌های ایموجی
═══════════════════════════════════════ */

.psy-tests-wrap {
  font-family: inherit;
  direction: rtl;
  text-align: right;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  background: transparent;
  min-height: 400px;
}

/* ── هدر ── */
.psy-page-header {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 1.5rem;
}
.psy-page-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7F77DD;
  font-weight: 700;
  margin-bottom: .6rem;
  font-family: inherit;
}
.psy-page-title {
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  color: #111;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.psy-page-title em { font-style: italic; color: #7F77DD; }
.psy-page-sub {
  font-size: 15px;
  color: #777;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── گرید کارت‌ها ── */
.psy-tests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 2rem;
}

/* ── کارت ── */
.psy-test-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  text-align: right;
}
.psy-test-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(120,100,220,.13);
}

/* آیکون ایموجی */
.psy-card-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 1.1rem;
  margin-right: auto;
  margin-left: 0;
  flex-shrink: 0;
}

.psy-card-title {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: .4rem;
  line-height: 1.35;
}
.psy-card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  font-family: inherit;
  flex: 1;
}

/* ردیف پایین کارت */
.psy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.psy-card-meta {
  font-size: 13px;
  color: #bbb;
  font-family: inherit;
}
.psy-start-btn {
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity .15s;
}
.psy-start-btn:hover { opacity: .7; }

/* ── محیط تست ── */
.psy-test-area {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.psy-test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.psy-test-name {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 10px;
}
.psy-test-name-icon {
  font-size: 24px;
}
.psy-close-btn {
  font-size: 13px;
  color: #bbb;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 4px 10px;
  border-radius: 99px;
  transition: background .15s;
}
.psy-close-btn:hover { background: #f3f3f3; color: #555; }

.psy-progress-bar {
  height: 5px;
  background: #f0f0f0;
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.psy-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7F77DD, #B052C8);
  border-radius: 3px;
  transition: width .4s ease;
}
.psy-question-num {
  font-size: 11px;
  color: #bbb;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  font-family: inherit;
}
.psy-question-text {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-family: inherit;
}

/* ── گزینه‌ها ── */
.psy-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}
.psy-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid #eeeeee;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  font-size: 15px;
  color: #333;
  background: #fff;
  font-family: inherit;
  line-height: 1.5;
}
.psy-option:hover { border-color: #7F77DD; background: #FAFAFE; }
.psy-option.psy-selected {
  border-color: #7F77DD;
  background: #EEEDFE;
  color: #3C3489;
}
.psy-opt-dot {
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.psy-option.psy-selected .psy-opt-dot {
  border-color: #7F77DD;
  background: #7F77DD;
}
.psy-option.psy-selected .psy-opt-dot::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

/* ── ناوبری ── */
.psy-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.psy-btn-prev {
  font-size: 13px; color: #bbb;
  background: none; border: none;
  cursor: pointer; font-family: inherit; padding: 8px 0;
}
.psy-btn-prev:hover { color: #555; }
.psy-btn-next {
  font-size: 14px; font-family: inherit;
  padding: 11px 32px; border-radius: 99px;
  border: none; background: #534AB7; color: #fff;
  cursor: pointer; font-weight: 700;
  transition: background .15s;
}
.psy-btn-next:hover    { background: #3C3489; }
.psy-btn-next:disabled { background: #ddd; cursor: not-allowed; }

/* ── نتیجه ── */
.psy-result {
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(100,80,200,.18);
}
.psy-result-icon   { font-size: 48px; margin-bottom: 1rem; }
.psy-result-label  { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: .6rem; font-family: inherit; }
.psy-result-type   { font-family: inherit; font-size: 26px; font-weight: 700; margin-bottom: .5rem; }
.psy-result-score  { font-size: 46px; font-weight: 700; margin-bottom: .75rem; font-family: inherit; }
.psy-result-desc   { font-size: 15px; line-height: 1.8; opacity: .92; max-width: 500px; margin: 0 auto 1.5rem; font-family: inherit; }
.psy-result-tags   { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1.5rem; }
.psy-result-tag    { background: rgba(255,255,255,.22); padding: 5px 16px; border-radius: 99px; font-size: 12px; font-family: inherit; }
.psy-result-btns   { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.psy-retake-btn {
  background: rgba(255,255,255,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 99px; padding: 10px 24px;
  font-size: 13px; cursor: pointer;
  font-family: inherit; font-weight: 600;
  transition: background .15s;
}
.psy-retake-btn:hover { background: rgba(255,255,255,.35); }

/* ── ریسپانسیو ── */
@media (max-width: 768px) {
  .psy-tests-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 520px) {
  .psy-tests-grid { grid-template-columns: 1fr; }
  .psy-page-title { font-size: 22px; }
  .psy-test-area  { padding: 1.25rem; }
  .psy-result     { padding: 1.75rem 1.25rem; }
  .psy-result-score { font-size: 34px; }
}
