/* Skincare Routine Generator — Custom Styles */

* {
  font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255, 194, 214, 0.25), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(196, 219, 197, 0.25), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 194, 214, 0.2), transparent 40%);
  background-attachment: fixed;
}

/* Navbar links */
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
}
.nav-link:hover {
  background-color: #ffe4ec;
  color: #d13d74;
}
.nav-link-active {
  background-color: #ffe4ec;
  color: #d13d74;
  font-weight: 600;
}

/* Card component */
.card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(210, 61, 116, 0.2);
}

/* Fade / slide up animation on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.6s ease both;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }
.delay-6 { animation-delay: 0.48s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.animate-float {
  animation: floaty 5s ease-in-out infinite;
}

/* Progress bar (multi-step form) */
.progress-track {
  height: 8px;
  border-radius: 9999px;
  background: #ffe4ec;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #fb7aa8, #d13d74);
  transition: width 0.4s ease;
}

/* Form step transitions */
.form-step {
  display: none;
  animation: fadeUp 0.4s ease both;
}
.form-step.active {
  display: block;
}

/* Option selector cards used in the generator */
.option-card {
  cursor: pointer;
  border: 2px solid #ffe4ec;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  transition: all 0.2s ease;
  text-align: center;
}
.option-card:hover {
  border-color: #ff9fc1;
  transform: translateY(-2px);
}
.option-card.selected {
  border-color: #d13d74;
  background: linear-gradient(135deg, #fff5f7, #ffe4ec);
  box-shadow: 0 4px 14px rgba(210,61,116,0.18);
}
.option-card.selected .option-check {
  opacity: 1;
  transform: scale(1);
}
.option-check {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(90deg, #fb7aa8, #d13d74);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px -10px rgba(210,61,116,0.5);
}
.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px -8px rgba(210,61,116,0.55);
}
.btn-gradient:active {
  transform: translateY(0) scale(0.99);
}
.btn-gradient:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  border: 2px solid #ffc2d6;
  color: #d13d74;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
  background: #fff;
}
.btn-outline:hover {
  background: #ffe4ec;
}

/* Loading spinner */
.loader {
  width: 56px;
  height: 56px;
  border: 5px solid #ffe4ec;
  border-top-color: #d13d74;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb7aa8, #d13d74);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.1rem;
  bottom: -1.5rem;
  width: 2px;
  background: #ffe4ec;
}
.timeline-item:last-child::after {
  display: none;
}

/* Toast */
#toast {
  transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff5f7; }
::-webkit-scrollbar-thumb { background: #ffc2d6; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #ff9fc1; }

/* Print styles for "Save as PDF" */
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #eee; }
  a[href]:after { content: none !important; }
}
