/**
 * Play Mundo da Alegria - Stylesheet Principal
 */

:root {
  --radius: 1rem;

  /* Brand palette */
  --joy-yellow: #ffd447;
  --joy-blue: #43b3f2;
  --joy-green: #5ed46a;
  --joy-pink: #ff7eb6;
  --joy-purple: #8b5cf6;
  --joy-orange: #ff914d;
  --joy-cream: #fff8ec;
  --joy-ink: #273043;
  --whatsapp: #25d366;

  --background: #fff8ec;
  --foreground: #273043;
  --card: #ffffff;
  --card-foreground: #273043;
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #43b3f2;
  --secondary-foreground: #ffffff;
  --muted: #fff1d6;
  --muted-foreground: #5b6478;
  --accent: #ffd447;
  --accent-foreground: #273043;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #f1e6cf;
  --input: #f1e6cf;
  --ring: #8b5cf6;

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-sans: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-balance {
  text-wrap: balance;
}

.shadow-joy {
  box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.35);
}

.shadow-soft {
  box-shadow: 0 8px 24px -10px rgba(39, 48, 67, 0.18);
}

.bg-rainbow {
  background: linear-gradient(
    135deg,
    var(--joy-yellow) 0%,
    var(--joy-orange) 25%,
    var(--joy-pink) 50%,
    var(--joy-purple) 75%,
    var(--joy-blue) 100%
  );
}

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

@keyframes float-y-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(4deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

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

.animate-float-slow {
  animation: float-y-slow 6s ease-in-out infinite;
}

.animate-wiggle {
  animation: wiggle 2.4s ease-in-out infinite;
}

/* Custom transitions and components */
.btn-joy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-joy:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-joy:active {
  transform: scale(0.98);
}

/* Form Styles */
.form-input {
  width: 100%;
  border-radius: 1rem;
  border: 2px solid var(--border);
  background-color: rgba(255, 241, 214, 0.5);
  padding: 0.75rem 1rem;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toast-in 0.3s ease forwards;
}

.toast.success {
  background-color: #10b981;
}

.toast.error {
  background-color: #ef4444;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
