@import url("../../lib/shared.css");

/* ═══════════════════════════════════════════════════════════════════════════
   שאלון דומייני מנהיגות - Local Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* Back to Hub Link */
.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

.app__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.app__header {
  text-align: center;
  margin-bottom: 32px;
}

.app__subtitle {
  color: var(--muted);
  margin: 0;
}

.card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  min-height: calc(100dvh - 220px);
  position: relative;
  overflow: hidden;
}

.screen {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  padding: 32px 32px 48px;
  overflow-y: auto;
  scrollbar-width: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.screen--scroll {
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Intro Screen
   ═══════════════════════════════════════════════════════════════════════════ */

.intro__text {
  color: var(--text);
  line-height: 1.7;
  margin: 24px 0 16px;
}

.intro__note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  background: #f7f9ff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Progress Bar
   ═══════════════════════════════════════════════════════════════════════════ */

.progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.progress__bar {
  width: 100%;
  height: 10px;
  background: #edf0f7;
  border-radius: 999px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #8b9bff);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Question Screen
   ═══════════════════════════════════════════════════════════════════════════ */

#question-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question {
  margin-bottom: 12px;
}

.question__text {
  background: #f5f7ff;
  border-radius: 18px;
  padding: 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  border: 1px solid rgba(76, 102, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Multiple Choice Options
   ═══════════════════════════════════════════════════════════════════════════ */

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-align: right;
  line-height: 1.5;
}

.option-btn:hover {
  border-color: var(--primary);
  background: #f8f9ff;
}

.option-btn.selected {
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Results Screen
   ═══════════════════════════════════════════════════════════════════════════ */

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.blend-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 24px 0;
  padding: 16px;
  background: #f7f9ff;
  border-radius: 12px;
}

.reflection-prompt {
  text-align: center;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
  border-radius: 16px;
  border: 1px solid rgba(76, 102, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Domain Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.dominant-section {
  margin-bottom: 24px;
}

.dominant-domains {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.all-domains-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.all-domains {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-card {
  border-radius: 20px;
  padding: 24px;
  border: 2px solid;
  background: #f9fafb;
}

.domain-card--dominant {
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
}

.domain-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.domain-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.domain-card__title {
  font-size: 22px;
  font-weight: 700;
}

.domain-card__subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.domain-card__score {
  font-size: 16px;
  font-weight: 700;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.domain-card__summary {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.domain-card__details {
  display: grid;
  gap: 20px;
}

.domain-card__section {
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
}

.domain-card__section-title {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
}

.domain-card__list {
  margin: 0;
  padding: 0 20px 0 0;
  display: grid;
  gap: 8px;
  line-height: 1.6;
  font-size: 15px;
}

.domain-card__list li {
  color: var(--text);
}

.domain-card__list--strengths li::marker {
  color: #4CAF50;
}

.domain-card__list--challenges li::marker {
  color: #FF9800;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .app {
    padding: 24px 16px 40px;
  }

  .app__logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .card {
    padding: 20px;
    min-height: calc(100dvh - 120px);
  }

  .screen {
    padding: 20px 20px 24px;
  }

  .progress {
    margin-bottom: 12px;
  }

  .question {
    margin-bottom: 10px;
  }

  .question__text {
    font-size: 15px;
    padding: 14px;
  }

  .options-container {
    gap: 8px;
  }

  .option-btn {
    padding: 12px 14px;
    font-size: 14px;
  }

  .domain-card {
    padding: 14px;
  }

  .domain-card__header {
    flex-direction: column;
    gap: 10px;
  }

  .domain-card__score {
    align-self: flex-start;
  }

  .domain-card__title {
    font-size: 16px;
  }

  .domain-card__summary {
    font-size: 14px;
  }

  .domain-card__section {
    padding: 10px;
  }

  .domain-card__list {
    font-size: 13px;
  }

  .section-title {
    font-size: 15px;
  }

  .blend-note,
  .reflection-prompt {
    font-size: 13px;
    padding: 12px;
  }
}

/* Low height screens */
@media (max-height: 700px) {
  .app {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .card {
    min-height: calc(100dvh - 100px);
  }

  .screen {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
