/* ════════════════════════════════════════
   SCROLLING AI SEARCHES ANIMATION
   ════════════════════════════════════════ */

.scrolling-searches {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 282px;
  max-height: 282px;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
}

/* Container for animated items */
.search-items-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: scrollSearches 8s linear infinite;
  will-change: transform;
}

@keyframes scrollSearches {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-282px);
  }
}

/* Individual search item */
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(124, 92, 252, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 50px;
  transition: all 0.3s ease;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(124, 92, 252, 0.5);
  transform: translateX(8px);
}

/* Search icon logo */
.search-icon-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.2);
  padding: 4px;
}

.search-icon-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: brightness(0.8);
}

/* Search text */
.search-text {
  flex: 1;
  min-width: 0;
}

.search-query {
  font-size: 14px;
  font-weight: 500;
  color: #1a202c;
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.search-industry {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Pause animation on hover for the whole container */
.scrolling-searches:hover .search-items-container {
  animation-play-state: paused;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .scrolling-searches {
    min-height: 300px;
    gap: 10px;
  }

  .search-items-container {
    gap: 10px;
  }

  .search-item {
    padding: 12px;
    min-height: 55px;
    gap: 10px;
  }

  .search-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .search-query {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .scrolling-searches {
    min-height: 280px;
  }

  .search-item {
    padding: 10px;
    gap: 8px;
  }

  .search-query {
    font-size: 13px;
  }

  .search-industry {
    font-size: 11px;
  }
}
