/* Divine Astrology — White & Royal Purple Design System */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --da-purple: #6D28D9;
  --da-deep-purple: #4C1D95;
  --da-accent: #8B5CF6;
  --da-lavender: #F5F0FF;
  --da-gold: #D6A84F;
  --da-ink: #21163D;
  --da-muted: #5B507A;
  --da-canvas: #FAF9FE;
  --da-border: #EBE5F7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--da-ink);
  background-color: var(--da-canvas);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

.font-serif-display {
  font-family: 'Playfair Display', Georgia, serif;
  text-wrap: balance;
}

.font-mono-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Primary Royal Purple CTA */
.btn-royal {
  background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
  color: #FFFFFF;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
  box-shadow: 0 6px 18px -6px rgba(109, 40, 217, 0.45);
}

.btn-royal:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(109, 40, 217, 0.52);
}

.btn-royal:active {
  transform: translateY(0);
}

/* Subtle Card Surface */
.da-card {
  background: #FFFFFF;
  border: 1px solid var(--da-border);
  border-radius: 1.25rem;
  box-shadow: 0 8px 28px -14px rgba(76, 29, 149, 0.12);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease;
}

.da-card-hover:hover {
  transform: translateY(-2px);
  border-color: #D6C7F7;
  box-shadow: 0 14px 34px -14px rgba(109, 40, 217, 0.20);
}

/* Subtle Lavender Hero Blend */
.hero-lavender-overlay {
  background: linear-gradient(
    90deg,
    rgba(251, 249, 255, 0.98) 0%,
    rgba(248, 244, 255, 0.94) 40%,
    rgba(245, 240, 255, 0.58) 64%,
    rgba(245, 240, 255, 0.08) 100%
  );
}

@media (max-width: 767px) {
  .hero-lavender-overlay {
    background: linear-gradient(
      180deg,
      rgba(251, 249, 255, 0.92) 0%,
      rgba(246, 241, 255, 0.84) 55%,
      rgba(246, 241, 255, 0.35) 100%
    );
  }
}

.ai-banner-scrim {
  background: linear-gradient(
    90deg,
    rgba(76, 29, 149, 0.96) 0%,
    rgba(109, 40, 217, 0.86) 52%,
    rgba(109, 40, 217, 0.25) 100%
  );
}

/* Form Controls */
.da-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #DFD7F2;
  background-color: #FFFFFF;
  padding: 0.65rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--da-ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.da-input:focus {
  outline: none;
  border-color: var(--da-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}

/* Loading Skeleton */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #F3EEFD 25%, #EAE2FC 50%, #F3EEFD 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Typing dots for AI Chat */
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.typing-dot {
  animation: dotBounce 1.1s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

/* Mobile Bottom Nav Safe Area */
.mobile-bottom-nav {
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--da-purple);
  outline-offset: 2px;
}

[x-cloak] {
  display: none !important;
}
