/* DermaDiary AI - Custom Styles */

:root {
  --primary-green: #7B8B4D;
  --primary-green-light: #8fa058;
  --primary-green-dark: #6a7842;
  --dark-green: #3d4526;
  --bg-light: #fafafa;
  --bg-cream: #f8f7f4;
  --text-dark: #2d2d2d;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Custom gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #f8f7f4 0%, #f0f4e8 50%, #e8f0e0 100%);
}

.gradient-green {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

/* Button styles */
.btn-primary {
  background-color: var(--primary-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 139, 77, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: white;
  transform: translateY(-1px);
}

/* App store buttons */
.store-btn {
  background-color: #000;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.store-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Feature cards */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-green);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #f0f4e8 0%, #e8f0e0 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Pricing cards */
.pricing-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary-green);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-green);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* How it works steps */
.step-number {
  width: 3rem;
  height: 3rem;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  z-index: 2;
}

.phone-mockup-secondary {
  position: absolute;
  top: 2rem;
  right: -6rem;
  max-width: 240px;
  z-index: 1;
  opacity: 0.9;
  transform: rotate(5deg);
}

.phone-frame {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 2.5rem;
  padding: 0.75rem;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  border-radius: 2rem;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.phone-screen-img {
  border-radius: 2rem;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 1.5rem;
  background: #1a1a1a;
  border-radius: 1rem;
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Privacy badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f4e8;
  color: var(--dark-green);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Navigation */
.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-green);
  background: #f0f4e8;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 100;
  padding: 2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer */
footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-green);
}

/* Legal pages */
.legal-content h2 {
  color: var(--dark-green);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.legal-content h3 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Streak visualization */
.streak-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary-green);
}

.streak-dot.empty {
  background: var(--border-light);
}

/* Check list */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237B8B4D' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pricing-card.featured {
    transform: none;
  }

  .phone-mockup {
    max-width: 240px;
  }

  .phone-mockup-secondary {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .phone-mockup-secondary {
    right: -4rem;
    max-width: 200px;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-green);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}
