/* Custom styles for SocialVideoIndexer */

/* Line clamp utilities for Tailwind */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video aspect ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Smooth transitions */
.transition-colors {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.transition-shadow {
  transition: box-shadow 0.15s ease-in-out;
}

/* Focus styles */
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Custom scrollbar for transcript */
.transcript-scroll {
  max-height: 300px;
  overflow-y: auto;
}

.transcript-scroll::-webkit-scrollbar {
  width: 6px;
}

.transcript-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.transcript-scroll::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.transcript-scroll::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* Uplo
ad Button Burning Border Animation */
.upload-btn {
  position: relative;
  overflow: hidden;
}

.burning-border {
  position: absolute;
  top: 0;
  right: 100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 20%, 
    rgba(255, 255, 255, 0.5) 50%, 
    rgba(255, 255, 255, 0.2) 80%, 
    transparent 100%
  );
  transition: right 0.6s ease-in-out;
  z-index: 1;
}

.upload-btn:hover .burning-border {
  right: -100%;
}

/* Additional burning effect */
.upload-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.upload-btn:hover::before {
  opacity: 1;
}

/* Search Input Enhancements */
.search-input:focus {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

/* Loading Spinner Custom Animation */
@keyframes searchSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search-loading {
  animation: searchSpin 1s linear infinite;
}

/* Mobile Search Slide Animation */
.mobile-search-slide {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-search-slide.show {
  transform: translateY(0);
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse Animation for Processing Status */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  .upload-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .upload-btn svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
  }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  .dark-mode-ready {
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Accessibility Improvements */
.focus-visible:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

/* Login Page Fixes */
.login-page {
  min-height: 100vh;
}

.login-page header {
  position: static !important;
  box-shadow: none !important;
}

.login-page .max-w-7xl {
  max-width: none !important;
}

/* Identity Pages Layout Fix */
.identity-layout {
  background: #f9fafb;
}

.identity-layout header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.identity-layout main {
  padding: 0;
  max-width: none;
}

/* Paste Button Styles */
.paste-button {
  transition: all 0.2s ease-in-out;
}

.paste-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paste-button:active {
  transform: translateY(0);
}

/* Upload Input Container */
.upload-input-container {
  position: relative;
}

.upload-input-container input:focus + .paste-button {
  border-color: #3b82f6;
}