/* YouTube Insights Modern Design System */

:root {
  /* Superior Design System Colors - Converted to HSL */
  --primary: 217 91% 60%; /* #3b82f6 */
  --primary-foreground: 0 0% 100%; /* #ffffff */
  --accent: 142 71% 45%; /* #22c55e (success green) */
  --accent-foreground: 0 0% 100%;
  --background: 0 0% 100%;
  --foreground: 220 13% 18%; /* #111827 */
  --muted: 210 40% 96%; /* #f8f9fa */
  --muted-foreground: 215 16% 47%; /* #6b7280 */
  --card: 0 0% 100%;
  --card-foreground: 220 13% 18%;
  --border: 220 13% 91%; /* #e5e7eb */
}

/* Background Utilities */
.bg-background {
  background-color: hsl(var(--background));
}

.bg-gradient-hero {
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--primary)) 100%);
}

/* Text Utilities */
.text-primary {
  color: hsl(var(--primary));
}

.text-accent {
  color: hsl(var(--accent));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-transparent {
  color: transparent;
}

/* Border Utilities */
.border-primary {
  border-color: hsl(var(--primary));
}

.border-accent {
  border-color: hsl(var(--accent));
}

.border-border {
  border-color: hsl(var(--border));
}

/* Shadow Utilities */
.shadow-elegant {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-glow {
  box-shadow: 0 20px 40px -12px hsla(var(--primary), 0.3);
}

.hover\:shadow-glow:hover {
  box-shadow: 0 20px 40px -12px hsla(var(--primary), 0.3);
}

.hover\:shadow-elegant:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animate-slide-left {
  animation: slideLeft 0.6s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.animate-slide-right {
  animation: slideRight 0.6s ease-out forwards;
  opacity: 0;
  transform: translateX(20px);
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 0;
  transform: scale(0.95);
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes fadeIn {
  to { 
    opacity: 1; 
  }
}

@keyframes slideUp {
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideLeft {
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slideRight {
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes scaleIn {
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-10px); 
  }
}

/* Button Utilities */
.btn-gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  color: hsl(var(--primary-foreground));
  border: none;
}

.btn-gradient-primary:hover {
  box-shadow: 0 20px 40px -12px hsla(var(--primary), 0.3);
  transform: translateY(-1px);
}

/* Card Utilities */
.card-elegant {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
}

.card-gradient {
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--muted)) 100%);
}

/* Badge Utilities */
.badge-primary {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
}

.badge-accent {
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent) / 0.2);
}

/* Progress Bar */
.progress-bar {
  height: 0.5rem;
  background-color: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

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

.group:hover .group-hover-float {
  animation: float 3s ease-in-out infinite;
}

/* Progress Bar Animations */
#analysis-progress {
  animation: analysisProgress 3s ease-in-out infinite;
  width: 0%;
}

@keyframes analysisProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Social Media Button Colors */
.social-twitter {
  background-color: #3b82f6 !important;
  color: white !important;
}

.social-twitter:hover {
  background-color: #2563eb !important;
}

.social-facebook {
  background-color: #1d4ed8 !important;
  color: white !important;
}

.social-facebook:hover {
  background-color: #1e40af !important;
}

.social-linkedin {
  background-color: #1e40af !important;
  color: white !important;
}

.social-linkedin:hover {
  background-color: #1e3a8a !important;
}

.social-more {
  background-color: #4b5563 !important;
  color: white !important;
}

.social-more:hover {
  background-color: #374151 !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .animate-slide-up,
  .animate-slide-left,
  .animate-slide-right,
  .animate-scale-in {
    animation-duration: 0.4s;
  }
}
