/* Import Tailwind CSS via CDN in HTML - this file contains custom styles */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@700&display=swap');

/* Design System - Color Variables */
:root {
  --background: 0 0% 100%;
  --foreground: 180 5% 15%;

  --card: 0 0% 100%;
  --card-foreground: 180 5% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 180 5% 15%;

  --primary: 166 57% 40%;
  --primary-foreground: 0 0% 100%;

  --secondary: 324 56% 56%;
  --secondary-foreground: 0 0% 100%;

  --code-input: 324 56% 56%;

  --muted: 174 20% 95%;
  --muted-foreground: 174 5% 45%;

  --accent: 340 82% 67%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 174 20% 90%;
  --input: 174 20% 90%;
  --ring: 174 72% 56%;

  --radius: 0.5rem;
}

.dark {
  --background: 180 8% 8%;
  --foreground: 0 0% 95%;

  --card: 180 8% 12%;
  --card-foreground: 0 0% 95%;

  --popover: 180 8% 12%;
  --popover-foreground: 0 0% 95%;

  --primary: 166 57% 40%;
  --primary-foreground: 0 0% 100%;

  --secondary: 324 56% 56%;
  --secondary-foreground: 0 0% 100%;

  --code-input: 324 56% 56%;

  --muted: 180 8% 18%;
  --muted-foreground: 174 5% 60%;

  --accent: 340 82% 67%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 100%;

  --border: 180 8% 20%;
  --input: 180 8% 20%;
  --ring: 174 72% 56%;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

/* Custom font utilities */
.font-bebas {
  font-family: 'Bebas Neue', cursive;
}

.font-code {
  font-family: 'Rajdhani', monospace;
  font-weight: 700;
}

/* Custom color utilities */
.text-primary {
  color: hsl(var(--primary));
}

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

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

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

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

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

.bg-primary {
  background-color: hsl(var(--primary));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.bg-background {
  background-color: hsl(var(--background));
}

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

.ring-ring {
  --tw-ring-color: hsl(var(--ring));
}

/* Button styles */
.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* Input styles */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background-color: transparent;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.1);
}

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

/* Placeholder styling for code input */
.input::placeholder {
  color: hsla(var(--muted-foreground), 0.4);
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
}

/* Focus ring color */
.focus\:ring-2:focus {
  --tw-ring-color: hsl(var(--ring));
}

/* Label styles */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Select styles */
.select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.1);
}

/* Card styles */
.card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
}

/* Background gradient overlay */
.bg-gradient-white {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* Logo hover effect */
.logo-hover:hover {
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
  transition: filter 0.3s ease;
}

/* Animation classes for page transitions */
.page-step {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.4s ease forwards;
}

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

.page-step.exit {
  animation: fadeOutUp 0.4s ease forwards;
}

@keyframes fadeOutUp {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .md\:pt-20 {
    padding-top: 5rem;
  }

  .md\:w-1\/3 {
    width: 33.333333%;
  }
}

/* Form field spacing */
.form-field {
  margin-bottom: 0;
}

/* Hide/show utilities for steps */
.hidden {
  display: none !important;
}

.block {
  display: block;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}