/* ===== Enneagram Test - WordPress Plugin Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

#enneagram-app {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
 /* background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);*/
  background: linear-gradient(135deg, #062f4f, #004d40, #1a237e);
  min-height: 100vh;
  padding: 30px 16px 60px;
  box-sizing: border-box;
}

.en-container {
  max-width: 780px;
  margin: 0 auto;
}

/* ===== Header ===== */
.en-header {
  text-align: center;
  margin-bottom: 40px;
  animation: en-fadeDown 0.8s ease;
}

.en-symbol {
  font-size: 48px;
  color: #c9a96e;
  display: block;
  margin-bottom: 10px;
  animation: en-spin 12s linear infinite;
}

@keyframes en-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.en-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.en-header p {
  font-size: 1rem;
  color: #a89cc8;
  margin: 0 0 24px;
}

/* ===== Progress ===== */
.en-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.en-progress-bar {
  width: 260px;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
}

.en-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a96e, #e8c98a);
  border-radius: 20px;
  transition: width 0.4s ease;
}

.en-progress-label {
  font-size: 0.85rem;
  color: #c9a96e;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Question Card ===== */
.en-question-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 20px;
  padding: 36px 32px 28px;
  backdrop-filter: blur(12px);
  animation: en-fadeUp 0.5s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.en-q-number {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c9a96e;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.en-instruction {
  font-size: 0.9rem;
  color: #a89cc8;
  margin: 0 0 24px;
}

/* ===== Options ===== */
.en-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.en-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: right;
}

.en-option:hover {
  border-color: rgba(201,169,110,0.5);
  background: rgba(201,169,110,0.07);
  transform: translateX(-4px);
}

.en-option.selected {
  border-color: #c9a96e;
  background: rgba(201,169,110,0.15);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.en-option-dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s;
}

.en-option.selected .en-option-dot {
  border-color: #c9a96e;
  background: #c9a96e;
}

.en-option.selected .en-option-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a2e;
}

.en-option-text {
  font-size: 1rem;
  color: #e0d9f0;
  line-height: 1.7;
  flex: 1;
}

.en-option.selected .en-option-text {
  color: #ffffff;
  font-weight: 500;
}

/* ===== Navigation ===== */
.en-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.en-btn {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.en-btn-prev {
  background: rgba(255,255,255,0.07);
  color: #a89cc8;
  border: 1px solid rgba(255,255,255,0.1);
}

.en-btn-prev:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.en-btn-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.en-btn-next {
  background: linear-gradient(135deg, #c9a96e, #e8c98a);
  color: #1a1a2e;
}

.en-btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.4);
}

.en-btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.en-btn-finish {
  background: linear-gradient(135deg, #56ab2f, #a8e063);
  color: #fff;
}

.en-btn-finish:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(86,171,47,0.4);
}

/* ===== Result Section ===== */
.en-result {
  animation: en-fadeUp 0.7s ease;
}

.en-result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.en-result-symbol {
  font-size: 72px;
  margin-bottom: 16px;
}

.en-result-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.en-result-type-num {
  display: inline-block;
  background: linear-gradient(135deg, #c9a96e, #e8c98a);
  color: #1a1a2e;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 50px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.en-result-desc {
  font-size: 1.05rem;
  color: #c9bfdf;
  line-height: 1.85;
  margin: 0 0 28px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.en-result-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.en-trait {
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.3);
  color: #e8c98a;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
}

/* ===== Scores Chart ===== */
.en-scores-section {
  margin-bottom: 32px;
  text-align: right;
}

.en-scores-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #a89cc8;
  margin: 0 0 16px;
  text-align: center;
}

.en-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.en-score-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e0d9f0;
  min-width: 120px;
  text-align: right;
}

.en-score-bar-wrap {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}

.en-score-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 1s ease;
}

.en-score-bar-fill.top {
  background: linear-gradient(90deg, #c9a96e, #e8c98a);
}

.en-score-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a89cc8;
  min-width: 28px;
}

/* ===== Restart Button ===== */
.en-btn-restart {
  background: rgba(255,255,255,0.07);
  color: #c9a96e;
  border: 2px solid rgba(201,169,110,0.3);
  font-size: 1rem;
  padding: 14px 36px;
}

.en-btn-restart:hover {
  background: rgba(201,169,110,0.1);
  border-color: #c9a96e;
  transform: translateY(-2px);
}

/* ===== Animations ===== */
@keyframes en-fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes en-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .en-header h1 { font-size: 1.6rem; }
  .en-question-card { padding: 24px 18px 20px; }
  .en-result-card { padding: 28px 18px; }
  .en-result-card h2 { font-size: 1.5rem; }
  .en-result-symbol { font-size: 52px; }
  .en-btn { padding: 11px 20px; font-size: 0.9rem; }
  .en-score-label { min-width: 90px; font-size: 0.8rem; }
  .en-progress-bar { width: 180px; }
}
