/* =====================================================================
   CADVISION - AJUSTES DE COMPATIBILIDADE
   Garantir que a nova estrutura funcione com JS existente
   ===================================================================== */

/* Manter compatibilidade com seletores antigos */
.vertical-card.active {
  border-color: var(--primary-500) !important;
  box-shadow: 0 0 0 4px var(--primary-100), var(--shadow-float) !important;
}

.vertical-card.active::after {
  opacity: 1 !important;
}

/* Garantir interatividade total */
.vertical-card {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vertical-card * {
  pointer-events: none;
}

.vertical-card {
  pointer-events: auto;
}

/* Suporte a teclado aprimorado */
.vertical-card[tabindex]:focus {
  outline: 3px solid var(--primary-400);
  outline-offset: 4px;
}

.vertical-card[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* Remover padding/margin da classe .card antiga se houver conflito */
.vertical-card.card {
  margin: 0;
  padding: 0;
}

/* Estados de carregamento */
.vertical-card.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

:root[data-theme="dark"] .vertical-card.loading::before {
  background: rgba(0, 0, 0, 0.9);
}

.vertical-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid var(--primary-200);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 101;
}

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

/* Overlay de hover para melhor feedback */
.vertical-card::before {
  pointer-events: none;
}

/* Garantir que os badges antigos não apareçam se ainda existirem */
.vertical-card .badge {
  display: none;
}

/* Mostrar badges novos */
.vertical-card .tech-badge {
  display: inline-flex;
}

/* Transição suave entre steps */
.identify-step {
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.identify-step:not(.active) {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.identify-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  visibility: visible;
}

/* Ajustes de espaçamento para section-header */
#identify .section-header {
  padding-top: 0;
}

/* Melhorias de acessibilidade - foco visível */
@media (prefers-reduced-motion: no-preference) {
  .vertical-card:hover .vertical-icon i {
    animation: iconBounce 0.6s var(--ease-bounce);
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Print styles - ocultar decorações */
@media print {
  .vertical-card::before,
  .vertical-card::after,
  .vertical-card-header::before {
    display: none;
  }
  
  .vertical-card {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .vertical-card {
    border: 3px solid currentColor;
  }
  
  .vertical-card:hover {
    outline: 3px solid currentColor;
    outline-offset: 3px;
  }
}
