/* GlowYou Custom Styles & PWA Animations */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary-blush: #E58C8A;
  --primary-deep: #A24B5C;
  --bg-peach: #FAF5F0;
  --card-bg: #FFFFFF;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #F3EAE3;
  color: #2D3142;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #E2CFCA;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #CBAAA2;
}

/* App Container Frame */
.mobile-viewport {
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: #FAF5F0;
  position: relative;
  box-shadow: 0 20px 40px -15px rgba(120, 70, 70, 0.15);
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .mobile-viewport {
    min-height: 844px;
    height: 92vh;
    border-radius: 40px;
    margin: 4vh auto;
    overflow: hidden;
    border: 8px solid #2B2527;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(229, 140, 138, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 214, 200, 0.5);
}

/* Camera Mirror Mode */
.mirror-mode {
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
}

/* AI Camera Scanner Animations */
@keyframes scanLaser {
  0% { top: 10%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 88%; opacity: 0.3; }
}

@keyframes scanRing {
  0% { transform: scale(0.97); opacity: 0.6; }
  50% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(0.97); opacity: 0.6; }
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-scan-laser {
  animation: scanLaser 2s infinite ease-in-out alternate;
}

.animate-scan-ring {
  animation: scanRing 2.2s infinite ease-in-out;
}

.animate-radar-sweep {
  animation: radarSweep 4s linear infinite;
}

/* Safe Area Paddings for PWA */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}
.pt-safe {
  padding-top: env(safe-area-inset-top, 20px);
}

/* Hide scrollbar for clean horizontal card scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

