* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  overflow-x: hidden;
}

.dark body, body.dark {
  background: #0a0a1a;
  color: #faf7f2;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.3);
  border-radius: 3px;
}

/* Wave divider */
.wave-divider {
  position: relative;
  height: 24px;
  overflow: hidden;
}
.wave-divider::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(212, 160, 23, 0.15) 20px,
    rgba(212, 160, 23, 0.15) 22px
  );
  animation: waveFlow 8s linear infinite;
}

@keyframes waveFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Gentle fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Tab transition */
.tab-content {
  animation: fadeIn 0.25s ease-out;
}

/* FAB animation */
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(212, 160, 23, 0.5); }
}

.fab-btn {
  animation: fabPulse 3s ease-in-out infinite;
}

.fab-btn:active {
  transform: scale(0.92) rotate(180deg);
  transition: transform 0.3s ease;
}

/* Progress bar */
.reading-progress {
  transition: width 0.15s ease-out;
}

/* Cross-link pill */
.cross-link-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(212, 160, 23, 0.4);
  color: #d4a017;
  background: rgba(212, 160, 23, 0.08);
}
.cross-link-pill:hover {
  background: rgba(212, 160, 23, 0.2);
  transform: translateY(-1px);
}

/* Splash screen */
@keyframes splitReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.splash-heaven {
  animation: splitReveal 0.8s ease-out;
}
.splash-earth {
  animation: splitReveal 0.8s ease-out 0.2s both;
}

/* Scripture verse highlight */
.verse-highlight {
  background: rgba(212, 160, 23, 0.1);
  border-left: 2px solid #d4a017;
  padding-left: 8px;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s ease;
}

/* Compass rose */
.compass-direction {
  transition: all 0.3s ease;
  cursor: pointer;
}
.compass-direction:hover {
  transform: scale(1.1);
}

/* Dark mode overrides */
.dark .parchment-bg {
  background: #0f0d2e !important;
}

/* Pull quote styling */
.pull-quote {
  position: relative;
  padding: 1rem 1.5rem;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.6;
}
.pull-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-size: 3rem;
  color: #d4a017;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

/* Mobile tap target */
@media (max-width: 768px) {
  .tap-target {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Streak animation */
@keyframes streakGlow {
  0%, 100% { text-shadow: 0 0 4px rgba(212, 160, 23, 0.3); }
  50% { text-shadow: 0 0 12px rgba(212, 160, 23, 0.6); }
}

.streak-active {
  animation: streakGlow 2s ease-in-out infinite;
}

/* Bookmark animation */
@keyframes bookmarkBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.bookmark-added {
  animation: bookmarkBounce 0.4s ease;
}