/**
 * ============================================================================
 * ARQUIVO: app/lib/serket/css/serket-arrow-step.css
 * DESCRIÇÃO: Estilos premium para SerketArrowStep
 * VERSÃO: 1.0.0
 * DATA: 22 de outubro de 2025
 * FUSO HORÁRIO: America/Fortaleza (-03:00)
 * 
 * BASEADO EM: serket_wireframe_coads_solicitacao_de_autorizacao_v_0.html
 * DESIGN: Pill steps com dot indicator, box-shadow premium, cores modernas
 * 
 * HISTÓRICO:
 * - v1.0.0 (2025-10-22): Versão inicial - design premium inspirado no wireframe
 * ============================================================================
 */

/* ====================================================================
   SEÇÃO 1: CONTAINER PRINCIPAL
   ==================================================================== */

.serket-arrow-steps {
  width: 100%;
  margin: 20px 0;
  padding: 0;
}

.serket-steps-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* ====================================================================
   SEÇÃO 2: STEP INDIVIDUAL (PILL DESIGN)
   ==================================================================== */

.serket-step {
  /* Layout */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  
  /* Visual */
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  
  /* Tipografia */
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  
  /* Transição */
  transition: all 0.3s ease;
  
  /* Cursor */
  cursor: default;
  
  /* Acessibilidade */
  position: relative;
  white-space: nowrap;
}

/* Hover effect (subtle) */
.serket-step:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* ====================================================================
   SEÇÃO 3: DOT INDICATOR
   ==================================================================== */

.serket-step-dot {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  /* Tamanho */
  width: 28px;
  height: 28px;
  
  /* Visual */
  background: #cbd5e1;
  border-radius: 50%;
  
  /* Tipografia */
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  
  /* Transição */
  transition: all 0.3s ease;
}

.serket-step-dot i {
  font-size: 12px;
}

/* ====================================================================
   SEÇÃO 4: LABEL DO STEP
   ==================================================================== */

.serket-step-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.serket-step-label i {
  margin-right: 6px;
  font-size: 13px;
}

/* ====================================================================
   SEÇÃO 5: STEP ATIVO (ESTADO PRINCIPAL)
   ==================================================================== */

.serket-step.active {
  /* Border com cor primária */
  border-color: #0ea5e9;
  
  /* Box-shadow premium - efeito glow */
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15),
              0 4px 12px rgba(14, 165, 233, 0.2);
  
  /* Background levemente destacado */
  background: #ffffff;
  
  /* Tipografia mais forte */
  color: #0f172a;
  font-weight: 600;
  
  /* Scale sutil */
  transform: scale(1.02);
}

.serket-step.active .serket-step-dot {
  background: #0ea5e9;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}

.serket-step.active .serket-step-label {
  color: #0f172a;
}

/* Animação sutil no dot ativo */
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.5);
  }
}

/* ====================================================================
   SEÇÃO 6: STEP COMPLETADO
   ==================================================================== */

.serket-step.completed {
  border-color: #10b981;
  background: #f0fdf4;
  color: #065f46;
}

.serket-step.completed .serket-step-dot {
  background: #10b981;
  color: #ffffff;
}

.serket-step.completed .serket-step-label {
  color: #065f46;
}

/* Hover em step completado */
.serket-step.completed:hover {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ====================================================================
   SEÇÃO 7: TEMAS DE CORES
   ==================================================================== */

/* Tema Green */
.serket-arrow-steps.theme-green .serket-step.active {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15),
              0 4px 12px rgba(16, 185, 129, 0.2);
}

.serket-arrow-steps.theme-green .serket-step.active .serket-step-dot {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Tema Purple */
.serket-arrow-steps.theme-purple .serket-step.active {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15),
              0 4px 12px rgba(139, 92, 246, 0.2);
}

.serket-arrow-steps.theme-purple .serket-step.active .serket-step-dot {
  background: #8b5cf6;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Tema Orange */
.serket-arrow-steps.theme-orange .serket-step.active {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15),
              0 4px 12px rgba(249, 115, 22, 0.2);
}

.serket-arrow-steps.theme-orange .serket-step.active .serket-step-dot {
  background: #f97316;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* ====================================================================
   SEÇÃO 8: RESPONSIVE (MOBILE)
   ==================================================================== */

@media (max-width: 768px) {
  .serket-steps-container {
    gap: 8px;
  }
  
  .serket-step {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .serket-step-dot {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .serket-step-label {
    font-size: 13px;
  }
  
  .serket-step-label i {
    display: none; /* Ocultar ícones em mobile */
  }
}

/* Stack vertical em telas muito pequenas */
@media (max-width: 576px) {
  .serket-steps-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .serket-step {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ====================================================================
   SEÇÃO 9: ACESSIBILIDADE
   ==================================================================== */

/* Focus para navegação via teclado */
.serket-step:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Reduzir animações para usuários com preferência */
@media (prefers-reduced-motion: reduce) {
  .serket-step,
  .serket-step-dot {
    transition: none;
    animation: none;
  }
  
  .serket-step.active {
    transform: none;
  }
}

/* ====================================================================
   SEÇÃO 10: VARIANTES ESPECIAIS
   ==================================================================== */

/* Step desabilitado */
.serket-step.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Step com erro */
.serket-step.error {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.serket-step.error .serket-step-dot {
  background: #ef4444;
}

/* Step com warning */
.serket-step.warning {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.serket-step.warning .serket-step-dot {
  background: #f59e0b;
}

/* ====================================================================
   FIM DO ARQUIVO
   ==================================================================== */
