/* StoryKrafters Custom Styles */

/* Custom color variables for Tailwind extension */
:root {
  --color-primary: #F97316;
  --color-primary-dark: #EA580C;
  --color-secondary: #8B5CF6;
  --color-secondary-dark: #7C3AED;
  --color-background: #FFFBF5;
  --color-accent: #14B8A6;
  --color-text: #1F2937;
}

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

/* Custom background color */
.bg-warm-cream {
  background-color: var(--color-background);
}

/* Hero section with background image */
.hero-gradient {
  position: relative;
  background-image: url('../images/hero-reading.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(31, 41, 55, 0.80) 100%);
  z-index: 1;
}

.hero-gradient > * {
  position: relative;
  z-index: 2;
}

/* Photo to illustration transformation visual */
.transform-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.transform-arrow {
  color: var(--color-primary);
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(10px);
    opacity: 0.7;
  }
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Billing toggle */
.billing-toggle {
  color: var(--color-text);
  background: transparent;
}

.billing-toggle.active {
  background: var(--color-primary);
  color: white;
}

/* Pricing card highlight */
.pricing-highlight {
  position: relative;
  border: 2px solid var(--color-primary);
}

.pricing-highlight::before {
  content: "Best Value";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Testimonial card */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--color-secondary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Step number badge */
.step-number {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Story spread placeholder */
.story-spread {
  background: linear-gradient(135deg, #FEF3E2 0%, #E0E7FF 100%);
  border-radius: 0.5rem;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.story-spread::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 80%;
  background: rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
}

/* Button pulse animation for CTAs */
.btn-pulse {
  animation: btn-pulse 3s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
}

/* Star rating */
.stars {
  color: #FBBF24;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #E5E7EB;
}

.faq-question {
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-answer.open {
  max-height: 500px;
  padding: 0 1.5rem 1rem;
}

/* Image placeholder styling */
.img-placeholder {
  background: linear-gradient(135deg, #E0E7FF 0%, #FCE7F3 50%, #FEF3C7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
}

/* Photo frame styling */
.photo-frame {
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.illustration-frame {
  border: 4px solid var(--color-secondary);
  box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
  overflow: hidden;
}

/* Image carousel */
.image-carousel {
  position: relative;
}

.image-carousel .carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.image-carousel .carousel-image.active {
  opacity: 1;
}

/* Feature icon container */
.feature-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 1rem;
  color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .testimonial-card::before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }
}
