/* Landing Page Custom Styles */

/* ==========================================================================
   Rainbow Gradient Text Effects
   WCAG AA Accessible - All colors meet 3:1+ contrast on white for large text
   ========================================================================== */

.landing-gradient-rainbow {
  /* Accessible rainbow: deeper colors for better contrast */
  background: linear-gradient(135deg, #dc2626 0%, #d97706 25%, #16a34a 50%, #2563eb 75%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #dc2626;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-rainbow-bright {
  /* Accessible bright rainbow: saturated but darker for contrast */
  background: linear-gradient(135deg, #db2777 0%, #ea580c 20%, #ca8a04 40%, #16a34a 60%, #2563eb 80%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #db2777;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-rainbow-pastel {
  /* Accessible pastel: warm tones with better contrast */
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 20%, #d97706 40%, #059669 60%, #2563eb 80%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #e11d48;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-rainbow-animated {
  background: linear-gradient(135deg, #dc2626 0%, #d97706 25%, #16a34a 50%, #2563eb 75%, #7c3aed 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: #dc2626;
  -webkit-text-fill-color: transparent;
  animation: landing-rainbow-shift 3s ease-in-out infinite;
}

@keyframes landing-rainbow-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Other Landing Page Gradients - WCAG AA Accessible */
.landing-gradient-sunny {
  /* Accessible sunny: deeper orange/red for contrast */
  background: linear-gradient(135deg, #d97706 0%, #dc2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #d97706;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-ocean {
  /* Accessible ocean: deeper blue/teal for contrast */
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #2563eb;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-purple {
  /* Accessible purple: deeper violet/rose for contrast */
  background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #7c3aed;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-green {
  /* Accessible green: deeper green/blue for contrast */
  background: linear-gradient(135deg, #16a34a 0%, #2563eb 100%);
}

/* Landing Page Animations */
@keyframes landing-bounce-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

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

.landing-animate-bounce-slow {
  animation: landing-bounce-slow 4s ease-in-out infinite;
}

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

/* Landing Page Shadows */
.landing-shadow-playful {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.landing-shadow-fun {
  box-shadow: 0 20px 40px -10px rgba(255, 107, 107, 0.3);
}

/* Landing Page Layout */
.landing-section {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .landing-section {
    padding: 5rem 0;
  }
}

.landing-section-large {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .landing-section-large {
    padding: 6rem 0;
  }
}

.landing-section-hero {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .landing-section-hero {
    padding: 5rem 0;
  }
}

@media (min-width: 1280px) {
  .landing-section-hero {
    padding: 8rem 0;
  }
}

.landing-heading {
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .landing-heading {
    margin-bottom: 3rem;
  }
}

.landing-heading p {
  margin-top: 1.25rem;
}

.landing-background-decor {
  pointer-events: none;
}

.landing-background-decor > * {
  pointer-events: none;
}

.landing-card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .landing-card-grid {
    gap: 2.5rem;
  }
}

.landing-card-grid.stretch > * {
  height: 100%;
}

.landing-feature-card {
  border: 2px solid;
  border-radius: 1.5rem;
}

.landing-cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.landing-cta-button:hover {
  transform: translateY(-2px);
}

.landing-section-divider {
  height: 1px;
  max-width: 64rem;
  margin: 3rem auto;
  background: linear-gradient(90deg, rgba(157, 96, 255, 0.05) 0%, rgba(157, 96, 255, 0.4) 50%, rgba(72, 134, 255, 0.05) 100%);
}

@media (min-width: 1024px) {
  .landing-section-divider {
    margin: 4rem auto;
  }
}

.landing-text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.15));
}

/* Playful Shapes */
.landing-blob-1 {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.landing-blob-2 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.landing-blob-3 {
  border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
}

/* Flexible Bubble Styles */
.landing-bubble-flexible {
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  min-width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-bubble-flexible-multiline {
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  min-width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.375;
}

/* Background Patterns */
.landing-pattern-dots {
  background-image: radial-gradient(circle, #ffd93d 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
}

.landing-pattern-stars {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd93d' fill-opacity='0.1'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.05;
}

/* Font Families */
.landing-font-fredoka {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; /* Softer than 700+ */
  letter-spacing: -0.02em; /* Slightly tighter for better readability */
}

.landing-font-inter {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6; /* Better breathing room */
}

.landing-font-nunito {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Typography Hierarchy */
.landing-h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .landing-h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .landing-h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .landing-h1 {
    font-size: 4rem;
  }
}

.landing-h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

@media (min-width: 640px) {
  .landing-h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .landing-h2 {
    font-size: 2.25rem;
  }
}

.landing-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .landing-h3 {
    font-size: 1.5rem;
  }
}

.landing-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .landing-body {
    font-size: 1.125rem;
  }
}

.landing-body-large {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .landing-body-large {
    font-size: 1.25rem;
  }
}

/* Hero Carousel Styles */
.hero-carousel-container {
  position: relative;
  overflow: hidden;
}

.hero-carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-carousel-slide.active {
  display: block;
  opacity: 1;
}

.hero-carousel-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-dot.active {
  background-color: #8b5cf6 !important;
  transform: scale(1.2);
}

.hero-carousel-dot:hover {
  transform: scale(1.1);
}

/* Carousel fade transition */
.hero-carousel-slide {
  animation: carousel-fade-in 0.5s ease-in-out;
}

@keyframes carousel-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Formatting Fixes */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  min-width: fit-content;
}

.btn-primary:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* Ensure button text doesn't wrap awkwardly */
.btn-primary span {
  white-space: nowrap;
}
