@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Light Theme CSS variables (semantic fallback tokens) */
  --background: #f4f4f5; /* zinc-100 */
  --foreground: #09090b; /* zinc-950 */
  --card: #ffffff;
  --card-foreground: #09090b;
  --border: #e4e4e7; /* zinc-200 */
  --input: #f4f4f5;
  --primary: #4f46e5; /* indigo-600 */
  --primary-foreground: #ffffff;
  --muted: #71717a; /* zinc-500 */
  --radius: 0.75rem;
}

.dark {
  /* Dark Theme CSS variables */
  --background: #09090b; /* zinc-950 */
  --foreground: #f4f4f5; /* zinc-100 */
  --card: #18181b; /* zinc-900 */
  --card-foreground: #f4f4f5;
  --border: #27272a; /* zinc-800 */
  --input: #09090b;
  --primary: #6366f1; /* indigo-500 */
  --primary-foreground: #ffffff;
  --muted: #a1a1aa; /* zinc-400 */
}

/* Flexbox sticky footer layout rules */
html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

#root {
  flex: 1 0 auto !important;
}

/* Code block / Monospace font override */
code, pre, .font-mono {
  font-family: var(--font-mono) !important;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium scale animations on hover */
.hover-premium-scale {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.hover-premium-scale:hover {
  transform: translateY(-2px) scale(1.01);
}

/* Shared Core UI Footer Styling */
.shared-footer {
  flex-shrink: 0 !important;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: #3f3f46; /* zinc-700 in light mode (very legible) */
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.dark .shared-footer {
  color: #e4e4e7; /* zinc-200 in dark mode (very legible) */
}

.shared-footer .footer-content {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Align left and right components */
  align-items: center;
  box-sizing: border-box;
}

.shared-footer .footer-link {
  color: #4f46e5; /* indigo-600 in light mode */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.dark .shared-footer .footer-link {
  color: #818cf8; /* indigo-400 in dark mode */
}

.shared-footer .footer-link:hover {
  text-decoration: underline;
  color: #312e81; /* indigo-900 */
}

.dark .shared-footer .footer-link:hover {
  color: #c7d2fe; /* indigo-200 */
}

.shared-footer .footer-right-link {
  color: #71717a; /* zinc-500 */
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.dark .shared-footer .footer-right-link {
  color: #a1a1aa; /* zinc-400 */
}

.shared-footer .footer-right-link:hover {
  color: #4f46e5; /* indigo-600 */
}

.dark .shared-footer .footer-right-link:hover {
  color: #818cf8; /* indigo-400 */
}
