/* Veo Video Generation App - Custom CSS */

:root {
  --font-body: 'Inter', sans-serif;
  --font-special: 'Permanent Marker', cursive;
  --yellow-primary: #facc15;
  --yellow-secondary: #fde047;
  --text-neutral-200: #e5e7eb;
  --text-neutral-400: #9ca3af;
  --text-neutral-500: #6b7280;
  --text-neutral-700: #374151;
  --purple-primary: #8b5cf6;
  --purple-secondary: #a78bfa;
}

/* Base styles */
body {
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Custom button animations */
.btn-hover-scale {
  transition: all 0.2s ease-in-out;
}

.btn-hover-scale:hover {
  transform: scale(1.05);
}

/* Image preview animations */
#image-preview img {
  transition: all 0.3s ease-in-out;
}

#image-preview img:hover {
  transform: scale(1.02);
}

/* Progress bar animation */
#progress-fill {
  transition: width 0.5s ease-in-out;
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Custom file input styling */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: -9999px;
}

/* Video preview styling */
#result-video {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease-in-out;
}

#result-video:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Status message animations */
#status-section {
  transition: all 0.3s ease-in-out;
}

/* Loading spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Gradient background animation */
.gradient-bg {
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Character counter styling */
#char-count {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
}

/* Upload area hover effects */
#upload-area {
  transition: all 0.3s ease-in-out;
}

#upload-area:hover {
  transform: translateY(-2px);
  border-color: var(--purple-primary);
}

/* API key input security styling */
#api-key {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

#api-key[type="text"] {
  color: #374151;
}

#api-key[type="password"] {
  color: #6b7280;
}

/* Success/Error states */
.status-success {
  border-left: 4px solid #10b981;
}

.status-error {
  border-left: 4px solid #ef4444;
}

.status-info {
  border-left: 4px solid #3b82f6;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .gradient-bg {
    padding: 2rem 0;
  }
  
  .gradient-bg h1 {
    font-size: 2rem;
  }
  
  .gradient-bg p {
    font-size: 1rem;
  }
  
  .max-w-4xl {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .gradient-bg h1 {
    font-size: 1.75rem;
  }
  
  .bg-white.rounded-xl {
    border-radius: 0.5rem;
    margin: 0 0.5rem;
  }
  
  #generate-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1f2937;
    --bg-secondary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
  }
}

/* Print styles */
@media print {
  .gradient-bg,
  #status-section,
  #generate-btn,
  .fas {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}