/* Macarun Global Styles */

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F3F4F6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', 'Inter', sans-serif;
}

/* Mobile container — phone frame on desktop */
.app-container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #FFFFFF;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (min-width: 480px) {
  .app-container {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
  }
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s ease;
}

/* Hide scrollbars */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Card styles */
.card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Purple gradient */
.gradient-purple {
  background: linear-gradient(135deg, #662480 0%, #7B2D99 50%, #4A1A5E 100%);
}

/* Status bar spacer for PWA standalone mode */
@media (display-mode: standalone) {
  .status-bar-spacer {
    height: env(safe-area-inset-top, 0px);
  }
}

/* Category badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  background-color: #D1D5DB;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-switch.active {
  background-color: #662480;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.animate-fade-in-delay {
  animation: fadeInDelay 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

/* Urgent notification */
.urgent-border {
  border-left: 4px solid #EF4444;
}

/* Safe area bottom padding for tab bar */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Splash screen pulse */
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}
