/* Estilos para o hero animado do Kanban Instagram */
.instagram-crm-demo {
  background-color: #1e2235;
  border-radius: 10px;
  padding: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.instagram-crm-demo:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  z-index: 1;
}

.kanban-board {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

.kanban-column {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: calc(33.33% - 10px);
}

.kanban-column:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to top, rgba(30, 34, 53, 0.7), transparent);
  pointer-events: none;
}

.column-header {
  padding: 10px;
  text-align: center;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.column-header h5 {
  margin: 0;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.card-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.card-list::-webkit-scrollbar {
  width: 4px;
}

.card-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.card-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.ig-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 100%;
  will-change: transform, opacity;
}

.ig-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}

#card1 {
  animation: moveToInterested 6s 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#card2 {
  animation: moveToInterested 7s 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#card3 {
  animation: moveToSales 6s 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.user-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatares com gradiente */
#avatar1 {
  background: linear-gradient(45deg, #405DE6, #5851DB);
}

#avatar2 {
  background: linear-gradient(45deg, #833AB4, #C13584);
}

#avatar3 {
  background: linear-gradient(45deg, #E1306C, #FD1D1D);
}

#avatar4 {
  background: linear-gradient(45deg, #F56040, #FCAF45);
}

.card-content {
  flex: 1;
  width: calc(100% - 50px);
  overflow: hidden;
}

.card-content h6 {
  margin: 0;
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
}

.demo-cta {
  text-align: center;
  margin-top: 20px;
}

.demo-cta .btn {
  width: 100%;
  border-radius: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 12px 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.demo-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes moveToInterested {
  0%, 20% {
    transform: translateX(0) scale(1);
    z-index: 1;
    opacity: 1;
  }
  25% {
    transform: translateX(20px) scale(0.9);
    z-index: 2;
    opacity: 0.8;
  }
  30%, 40% {
    transform: translateX(calc(100% + 15px)) scale(0.95);
    z-index: 2;
    opacity: 0.9;
  }
  45% {
    transform: translateX(calc(100% + 15px)) scale(1);
    z-index: 1;
    opacity: 1;
  }
  85%, 100% {
    transform: translateX(0);
    z-index: 1;
    opacity: 1;
  }
}

@keyframes moveToSales {
  0%, 20% {
    transform: translateX(0) scale(1);
    z-index: 1;
    opacity: 1;
  }
  25% {
    transform: translateX(20px) scale(0.9);
    z-index: 2;
    opacity: 0.8;
  }
  30%, 40% {
    transform: translateX(calc(100% + 15px)) scale(0.95);
    z-index: 2;
    opacity: 0.9;
  }
  45% {
    transform: translateX(calc(100% + 15px)) scale(1);
    z-index: 1;
    opacity: 1;
  }
  85%, 100% {
    transform: translateX(0);
    z-index: 1;
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsividade */
@media (max-width: 767px) {
  .kanban-board {
    flex-direction: column;
  }
  
  .kanban-column {
    min-height: 150px;
    width: 100%;
    margin-bottom: 15px;
  }
  
  #card1, #card2, #card3 {
    animation: none;
  }

  .user-avatar {
    min-width: 35px;
    width: 35px;
    height: 35px;
  }

  .card-content {
    width: calc(100% - 45px);
  }
} 