/* Custom Styles for HipSearch */

/* Source badges */
.source-badge {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
}

/* Card hover effects */
.result-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Smooth transitions */
.auth-container, .tab-button, button {
  transition: all 0.3s ease;
}

/* Loading spinner animation override */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Truncate long text in result cards */
.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Auth modal backdrop blur */
.auth-container {
  backdrop-filter: blur(5px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .sm\:flex-row {
    flex-direction: column;
  }
  .sm\:space-x-2 > * + * {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}