/* App.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --text-color: #1B1B18;
  --text-color-light: #6b7280;
  --background-color: #FDFDFC;
  --background-color-alt: #f9fafb;
  --border-color: #e5e7eb;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.5;
}

/* Ensure the video player container looks good */
.video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Code block styling */
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

/* Gradient text effect */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Animation for the copy button */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Dark mode toggle styles */
.dark-mode-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  border-radius: 12px;
  background-color: var(--background-color-alt);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dark-mode-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: transform 0.3s ease;
}

.dark-mode-toggle.dark::after {
  transform: translateX(24px);
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.app-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.example-section {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.example-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.example-section p {
  color: #666;
  margin-bottom: 1rem;
}

.app-footer {
  margin-top: 3rem;
  text-align: center;
  padding: 1rem;
  color: #666;
  border-top: 1px solid #eee;
}

/* Add these transition classes */
.transition-all {
  transition-property: all;
}

.duration-700 {
  transition-duration: 700ms;
}

.ease-out {
  transition-timing-function: ease-out;
}

.transform {
  transform: translateZ(0);
}

.translate-y-0 {
  transform: translateY(0);
}

.translate-y-10 {
  transform: translateY(2.5rem);
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}