/* Custom styles and scrollbar polish for FitPrep Hub */

:root {
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Custom sleek scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Smooth fade-in animation for dynamic panels */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-panel {
  animation: fadeInSlide 0.22s ease-out forwards;
}

/* Food preference pill state transitions */
.food-chip {
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.food-chip:hover {
  transform: translateY(-1px);
}

/* Exercise dual-image hover & motion toggle */
.exercise-thumb-box {
  position: relative;
  overflow: hidden;
}

.exercise-thumb-box .img-secondary {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.exercise-thumb-box:hover .img-secondary,
.exercise-thumb-box.show-contracted .img-secondary {
  opacity: 1;
}

.exercise-thumb-box .motion-badge {
  transition: all 0.2s ease;
}

.exercise-thumb-box:hover .motion-badge,
.exercise-thumb-box.show-contracted .motion-badge {
  background-color: rgba(16, 185, 129, 0.9);
  color: #020617;
}

/* Mobile bottom navigation safe-area and touch target polish */
#mobileBottomNav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 767px) {
  .food-chip,
  .mobile-nav-btn {
    min-height: 44px;
  }
}

/* Legal document reader formatting */
.legal-prose h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.legal-prose p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.legal-prose ul,
.legal-prose ol {
  margin-left: 1.25rem;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
}

.legal-prose li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

.legal-prose strong {
  color: #34d399;
}

