@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;

  /* Orange-themed color palette */
  --primary: #ff7800;
  --primary-light: #ff9a40;
  --primary-dark: #e05e00;
  --accent: #ffc107;
  --secondary: #2a2a2a;
  --tertiary: #f5f5f5;
  --success: #4caf50;
  --error: #f44336;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-primary: var(--primary);
  --color-primary-light: var(--primary-light);
  --color-primary-dark: var(--primary-dark);
  --color-accent: var(--accent);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
    --primary: #ff9a40;
    --primary-light: #ffb266;
    --primary-dark: #ff7800;
    --accent: #ffd54f;
    --tertiary: #333333;
  }
}

html,
body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans), Arial, Helvetica, sans-serif;
}

/* Make sure content containers preserve the full-height layout */
#__next,
.min-h-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Animation for tooltip fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Slow pulse animation for the API button */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}
