/* ==========================================================================
   AMOSTRA DE PROFISSÕES 2026 - FANS (FACULDADE DE NOVA SERRANA)
   Interface Mobile-First em Telas Separadas (Wizard / Passos Fluídos)
   ========================================================================== */

:root {
  /* Cores Institucionais FANS */
  --fans-blue-950: #041026;
  --fans-blue-900: #00224d;
  --fans-blue-800: #0a326c;
  --fans-blue-700: #13458c;

  --fans-gold-500: #f59e0b;
  --fans-gold-400: #fbbf24;
  --fans-gold-100: #fef3c7;

  /* Escala de Cores para Notas */
  --color-score-1: #ef4444;
  --color-score-2: #f97316;
  --color-score-3: #eab308;
  --color-score-4: #10b981;
  --color-score-5: #f59e0b;

  --bg-app: #09172f;
  --bg-card: #ffffff;
  --bg-card-soft: #f8fafc;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --border-light: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-screen: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 8px 20px -4px rgba(245, 158, 11, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.mobile-app-body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--text-dark);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   APP TOPBAR & PROGRESS TRACK
   ========================================================================== */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(4, 16, 38, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-step-back {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-step-back:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.2);
}

.brand-micro {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fans-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--fans-gold-400);
  letter-spacing: 0.04em;
}

.event-tag {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.btn-top-history {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-top-history span {
  background: var(--fans-gold-500);
  color: var(--fans-blue-950);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 900;
}

/* Barra de progresso contínua */
.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 56px;
  z-index: 999;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, var(--fans-gold-400));
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   CONTAINER DO WIZARD (TELAS SEPARADAS - FULL SCREEN MOBILE EDGE-TO-EDGE)
   ========================================================================== */
.wizard-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0;
}

.wizard-container form {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Telas individuais */
.step-screen {
  display: none;
  width: 100%;
  flex: 1;
  flex-direction: column;
}

.step-screen.active {
  display: flex;
  animation: slideFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Principal da Tela (Preenche 100% do Celular) */
.screen-card {
  background: var(--bg-card);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 60px);
  padding: 24px 20px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.step-indicator-tag {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f1f5f9;
  color: var(--fans-blue-800);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--fans-blue-950);
  line-height: 1.2;
}

.step-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.step-body {
  margin-bottom: 22px;
}

.step-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.step-error {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-score-1);
  margin-top: 8px;
}

.has-error .step-error {
  display: block;
}

/* ==========================================================================
   INPUTS GIGANTES TOUCH
   ========================================================================== */
.input-big-wrap {
  position: relative;
  width: 100%;
}

.input-big {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 16px 18px;
  background: var(--bg-card-soft);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

.input-big:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.textarea-mobile {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px;
  background: var(--bg-card-soft);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  resize: none;
}

.textarea-mobile:focus {
  border-color: #3b82f6;
  background: #ffffff;
}

/* ==========================================================================
   TELA 0: HERO & APRESENTAÇÃO
   ========================================================================== */
.hero-screen {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  min-height: calc(100dvh - 60px);
}

.hero-image-box {
  width: 100%;
  position: relative;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-light);
  overflow: hidden;
  flex-shrink: 0;
}

.hero-cover-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 32px;
  text-align: center;
}

.hero-main-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--fans-blue-950);
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.intro-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.intro-stat-pill {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--fans-blue-900);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   TELA 2: TOUCH COURSES GRID
   ========================================================================== */
.scrollable-body {
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.touch-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.t-course-btn {
  background: var(--bg-card-soft);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  outline: none;
}

.t-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.t-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.t-course-btn:active {
  transform: scale(0.96);
}

.t-course-btn.active {
  background: var(--fans-blue-900);
  border-color: var(--fans-gold-500);
  box-shadow: 0 4px 14px rgba(0, 34, 77, 0.25);
}

.t-course-btn.active .t-name {
  color: #ffffff;
}

.custom-course-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.custom-lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-custom-course {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
}

.input-custom-course:focus {
  border-color: #3b82f6;
}

/* ==========================================================================
   TELA 4: INTRO DOS CRITÉRIOS
   ========================================================================== */
.center-card {
  text-align: center;
  align-items: center;
}

.crit-intro-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.crit-intro-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--fans-blue-950);
  margin-bottom: 8px;
}

.crit-intro-lead {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.scale-legend-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dark);
}

.scale-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-mini {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.8rem;
  color: #ffffff;
  flex-shrink: 0;
}

.pill-mini.red { background: var(--color-score-1); }
.pill-mini.orange { background: var(--color-score-2); }
.pill-mini.yellow { background: var(--color-score-3); color: #000; }
.pill-mini.green { background: var(--color-score-4); }
.pill-mini.gold { background: var(--color-score-5); }

/* ==========================================================================
   TELAS DOS QUESITOS (1 A 5 GIGANTES)
   ========================================================================== */
.crit-screen-header {
  margin-bottom: 22px;
}

.crit-status-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.crit-status-tag.rated {
  background: #dcfce7;
  color: #15803d;
}

.crit-screen-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--fans-blue-950);
  line-height: 1.25;
  margin-bottom: 8px;
}

.crit-screen-statement {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Escala Vertical Touch (Ocupa 100% da Largura da Tela) */
.touch-scale-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.scale-touch-btn {
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
}

.scale-touch-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.scale-touch-content {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--bg-card-soft);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.scale-num {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--fans-blue-950);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.scale-label {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  flex: 1;
}

.scale-touch-btn:active .scale-touch-content {
  transform: scale(0.98);
}

/* Estado Marcado */
.scale-touch-btn input[type="radio"]:checked + .scale-touch-content {
  background: var(--fans-blue-900);
  border-color: var(--fans-gold-500);
  box-shadow: 0 6px 18px rgba(0, 34, 77, 0.3);
  transform: translateY(-2px);
}

.scale-touch-btn input[type="radio"]:checked + .scale-touch-content .scale-num {
  background: var(--fans-gold-500);
  border-color: var(--fans-gold-400);
  color: var(--fans-blue-950);
}

.scale-touch-btn input[type="radio"]:checked + .scale-touch-content .scale-label {
  color: #ffffff;
}

/* ==========================================================================
   TELA 9: FEEDBACK & RESUMO
   ========================================================================== */
.score-summary-pill {
  background: linear-gradient(135deg, var(--fans-blue-950) 0%, var(--fans-blue-900) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-summary-title {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.score-summary-diag {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--fans-gold-400);
}

.score-summary-right {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.score-summary-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--fans-gold-400);
  line-height: 1;
}

.score-summary-max {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 700;
}

/* ==========================================================================
   TELA 10: SUCESSO
   ========================================================================== */
.success-glow-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 2px solid #a7f3d0;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.4);
}

.success-db-badge {
  display: inline-block;
  background: var(--fans-blue-900);
  color: var(--fans-gold-400);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--fans-blue-950);
  margin-bottom: 8px;
}

.success-lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

.success-recap-box {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  font-size: 0.92rem;
  width: 100%;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ==========================================================================
   BOTÃO DE AÇÃO PRINCIPAL
   ========================================================================== */
.step-footer {
  margin-top: auto;
  padding-top: 18px;
}

.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, var(--fans-gold-500) 0%, #d97706 100%);
  color: var(--fans-blue-950);
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-action:active {
  transform: scale(0.97);
}

.btn-pulse {
  animation: subtlePulse 2.2s infinite;
}

@keyframes subtlePulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.mobile-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--fans-blue-950);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit-final.loading .btn-submit-text {
  display: none;
}

.btn-submit-final.loading .mobile-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   GAVETA DE HISTÓRICO (DRAWER)
   ========================================================================== */
.history-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.history-drawer.open {
  right: 0;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 38, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
}

.drawer-overlay.active {
  display: block;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--fans-blue-950);
  color: #ffffff;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-item {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.drawer-proj {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--fans-blue-950);
}

.drawer-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.drawer-score {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--fans-blue-900);
  font-size: 1.15rem;
}

.drawer-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 10px;
  font-size: 0.9rem;
}
