/* Parashar Guru – Unified Design System & Interaction Styles */
@import url('theme.css');

:root {
  /* Spiritual & Premium Palette - Legacy support, will gradually move to theme.css */
  --saffron: var(--primary-saffron);
  --gold: var(--accent-gold);
  --dark: #1A1A1A;
  --bg-aura: var(--bg-main);
  
  --font-body: 'Inter', 'Outfit', system-ui, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}


h1,
h2,
h3,
.heading-spiritual {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.spiritual-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* Animations & Transitions */
* {
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.section {
  animation: fadeIn 0.45s ease-out;
}

.section.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary {
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--saffron-vibrant), var(--gold));
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.btn-primary:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  border: 2px solid var(--saffron);
  color: var(--saffron);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* Day Pillars */
.day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 700;
  transition: all 0.2s ease;
}

.day-pill.done {
  background-color: var(--saffron);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

.day-pill.current {
  background-color: var(--gold);
  color: #fff;
  border: 4px solid var(--saffron);
  transform: scale(1.1);
}

.day-pill.pending {
  background-color: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}

/* Legacy Nav Hidden */
.bottom-nav {
  display: none !important;
}


/* Shimmers & Loaders */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 0.5rem;
  min-height: 1rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Pull to Refresh */
#pull-to-refresh {
  position: fixed;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2001;
  pointer-events: none;
  transition: transform 0.1s linear;
}

.refresh-circle {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--saffron);
}

/* Multi-Step Wizard */
.step-indicator {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-indicator.active {
  background: var(--saffron);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.4);
  transform: scale(1.1);
}

.step-indicator.completed {
  background: #10b981;
  color: white;
}

.form-step {
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & Brand Centering */
.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.om-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--saffron);
  color: white;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.om-circle-sm {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
}

.om-circle-lg {
  width: 5rem;
  height: 5rem;
  font-size: 2rem;
}

/* Utility & Misc */
.aura-circle {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.22), transparent 60%);
  filter: blur(2px);
  z-index: -1;
}

/* Sits above the 64px bottom nav so tabs (Home, Dashboard, …) stay visible */
#pwa-install-banner {
  display: none;
  position: fixed;
  bottom: calc(64px + 0.5rem + env(safe-area-inset-bottom, 0px));
  left: 1rem;
  right: 1rem;
  background: var(--saffron);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  z-index: 2000;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  animation: slideInUp 0.6s ease;
}

#pwa-install-banner.pwa-banner-visible {
  display: flex;
}

#pwa-install-banner .pwa-install-banner-text {
  flex: 1;
  min-width: 0;
}

#pwa-install-banner .pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

#pwa-install-banner #btn-pwa-install {
  background: white;
  color: var(--saffron);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  border: none;
  cursor: pointer;
  animation: bounce 2s infinite ease-in-out;
}

#pwa-install-banner #btn-pwa-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

#pwa-install-banner #btn-pwa-dismiss:hover {
  background: rgba(255, 255, 255, 0.45);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-4px);
  }

  60% {
    transform: translateY(-2px);
  }
}

/* form.html — mobile / notch */
.form-report-page .form-report-topnav {
  padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
}

.form-report-page .step-indicator {
  width: 1.875rem;
  height: 1.875rem;
  font-size: 0.7rem;
}

@media (min-width: 400px) {
  .form-report-page .step-indicator {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
  }
}