/* ===== Custom Styles for Link Saver Website ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(26, 115, 232, 0.3); }
  50% { box-shadow: 0 0 40px rgba(26, 115, 232, 0.6); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  animation: fade-in-up 0.5s ease-out forwards;
}
.stagger-children > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4)  { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6)  { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8)  { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9)  { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(13) { animation-delay: 0.65s; }
.stagger-children > *:nth-child(14) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(15) { animation-delay: 0.75s; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1a73e8 0%, #38bdf8 50%, #1a73e8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Prose styles for legal pages ===== */
.prose-legal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.prose-legal h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-legal p {
  color: #475569;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-legal ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-legal ul li {
  color: #475569;
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

.prose-legal a {
  color: #1a73e8;
  text-decoration: underline;
}

.prose-legal a:hover {
  color: #1557b0;
}

/* Primary color utilities (supplement Tailwind) */
.bg-primary      { background-color: #1a73e8; }
.bg-primary-dark { background-color: #1557b0; }
.text-primary    { color: #1a73e8; }
.text-primary-dark { color: #1557b0; }
.border-primary  { border-color: #1a73e8; }

.hover\:bg-primary-dark:hover { background-color: #1557b0; }
.hover\:text-primary:hover    { color: #1a73e8; }
.hover\:text-primary-dark:hover { color: #1557b0; }

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feature card hover */
.feature-card:hover .feature-icon {
  background-color: #1a73e8;
  color: #ffffff;
}

/* Step hover */
.step-card:hover .step-number {
  transform: scale(1.1);
}
