/* VidSpark AI - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { box-sizing: border-box; }

:root {
  --brand-500: #d946ef;
  --brand-600: #c026d3;
  --brand-700: #a21caf;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #d946ef, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Custom scroll for overflow containers */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #374151; border-radius: 2px; }

/* Grid background */
.grid-bg {
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { from { background-position: -1000px 0; } to { background-position: 1000px 0; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.3); } 50% { box-shadow: 0 0 20px 4px rgba(217, 70, 239, 0.1); } }

.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-slide-in { animation: slideIn 0.3s ease forwards; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #c026d3, #9333ea);
  transition: all 0.2s ease;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(192, 38, 211, 0.3); }

/* Card hover effects */
.card-hover {
  transition: all 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Line clamp */
.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; }

/* Prose styles for generated content */
#content-output h1, #content-output h2, #content-output h3 {
  color: #f9fafb;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}
#content-output h1 { font-size: 1.5rem; }
#content-output h2 { font-size: 1.25rem; }
#content-output h3 { font-size: 1.1rem; }
#content-output p { color: #d1d5db; line-height: 1.7; margin: 0.75rem 0; }
#content-output ul, #content-output ol { color: #d1d5db; padding-left: 1.5rem; margin: 0.75rem 0; }
#content-output li { margin: 0.25rem 0; line-height: 1.6; }
#content-output strong { color: #f9fafb; font-weight: 600; }
#content-output em { color: #e5e7eb; font-style: italic; }
#content-output blockquote { border-left: 3px solid #c026d3; padding-left: 1rem; color: #9ca3af; margin: 1rem 0; }

/* FAQ styles */
.faq-content { transition: all 0.2s ease; }
.faq-icon.rotate { transform: rotate(180deg); }

/* Content type selected state */
.content-checkbox:checked + .content-type-card {
  background: rgba(192, 38, 211, 0.15);
  border-color: rgba(192, 38, 211, 0.5);
}
.content-checkbox:checked + .content-type-card .check-icon { display: block !important; }

/* Notification toggle */
.notification-toggle.active { background: #c026d3 !important; }

/* Processing steps */
.step-active .step-icon { background: rgba(192, 38, 211, 0.3); border-color: rgba(192, 38, 211, 0.5); }
.step-active .step-icon i { color: #d946ef; }
.step-active .step-label { color: #f9fafb; }
.step-done .step-icon { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.4); }
.step-done .step-icon i { color: #22c55e; }
.step-done .step-label { color: #86efac; }

/* Responsive sidebar */
@media (max-width: 768px) {
  #sidebar { position: fixed; left: -100%; top: 0; height: 100vh; z-index: 50; transition: left 0.3s ease; }
  #sidebar.open { left: 0; }
}

/* Toast notifications */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}
.toast-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }
.toast-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.toast-info { background: rgba(192, 38, 211, 0.15); border: 1px solid rgba(192, 38, 211, 0.3); color: #e879f9; }

/* Loading spinner */
.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* Rich text formatting in generated content */
pre { white-space: pre-wrap; font-family: 'Inter', sans-serif; }
