/**
 * MAVEN ADAPTABILIDADE CSS v5.1
 * Estilos premium para Sistema de Interface Adaptável
 * Padrão: Mercury Bank + Linear + Notion
 */

/* ========================================
   ONBOARDING OVERLAY
======================================== */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.onboarding-overlay.show {
  opacity: 1;
}

/* ========================================
   CONTAINER
======================================== */

.onboarding-container {
  background: linear-gradient(135deg, rgba(26, 46, 30, 0.95) 0%, rgba(15, 25, 18, 0.95) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ========================================
   HEADER
======================================== */

.onboarding-header {
  padding: 32px 32px 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.onboarding-logo {
  text-align: center;
  margin-bottom: 24px;
}

.onboarding-progresso {
  max-width: 400px;
  margin: 0 auto;
}

.progresso-texto {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, rgba(249, 246, 239, 0.6));
  text-align: center;
  margin-bottom: 12px;
}

.progresso-barra {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progresso-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c 0%, #1a2e1e 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

/* ========================================
   CONTENT
======================================== */

.onboarding-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 32px;
}

.pergunta-container {
  animation: fadeInUp 0.4s ease;
}

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

.pergunta-titulo {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary, #f9f6ef);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.3;
}

/* ========================================
   OPÇÕES
======================================== */

.opcoes-grid {
  display: grid;
  gap: 12px;
}

.opcao-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.opcao-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}

.opcao-card.selected {
  background: rgba(201, 168, 76, 0.08);
  border-color: #c9a84c;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
}

.opcao-numero {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary, rgba(249, 246, 239, 0.6));
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.opcao-card.selected .opcao-numero {
  background: #c9a84c;
  color: #0a0f0c;
}

.opcao-conteudo {
  flex: 1;
  min-width: 0;
}

.opcao-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #f9f6ef);
  margin-bottom: 4px;
}

.opcao-descricao {
  font-size: 14px;
  color: var(--text-secondary, rgba(249, 246, 239, 0.6));
  line-height: 1.4;
}

.opcao-check {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.opcao-card.selected .opcao-check {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #0a0f0c;
}

/* ========================================
   FOOTER
======================================== */

.onboarding-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.01);
}

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a84c 0%, #a88a3d 100%);
  color: #0a0f0c;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #d4b55a 0%, #c9a84c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #f9f6ef);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ========================================
   SUCESSO
======================================== */

.onboarding-sucesso {
  text-align: center;
  padding: 60px 40px;
  animation: fadeInUp 0.6s ease;
}

.sucesso-icone {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c9a84c 0%, #a88a3d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #0a0f0c;
  margin: 0 auto 24px auto;
  animation: scaleIn 0.4s ease 0.2s both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.onboarding-sucesso h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary, #f9f6ef);
  margin-bottom: 12px;
}

.onboarding-sucesso p {
  font-size: 16px;
  color: var(--text-secondary, rgba(249, 246, 239, 0.7));
  line-height: 1.5;
}

/* ========================================
   FADE IN ANIMATION
======================================== */

.fade-in {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 640px) {
  .onboarding-container {
    border-radius: 0;
    max-height: 100vh;
  }

  .onboarding-header,
  .onboarding-content,
  .onboarding-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pergunta-titulo {
    font-size: 22px;
  }

  .opcao-card {
    padding: 16px;
  }

  .opcao-label {
    font-size: 16px;
  }

  .opcao-descricao {
    font-size: 13px;
  }

  .onboarding-footer {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
