/* Phone-frame chrome & small helpers not worth expressing as Tailwind utilities. */

body {
  background: #E7E4DD;
}

/* Desktop: fixed mock-phone frame for presenting to the client — looks the same
   regardless of window size. Narrow viewport (real phone, or DevTools device
   toolbar): frame fills the viewport instead, so it behaves like the real app and
   you can check layout across different iPhone/Android sizes without a nested
   double-frame. */
.phone-frame {
  width: 390px;
  max-width: 100vw;
  height: 844px;
  max-height: 100dvh;
  margin: 24px auto;
  background: #F5F3EF;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  body {
    background: #F5F3EF;
  }
  .phone-frame {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.phone-screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar {
  display: none;
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

[x-cloak] {
  display: none !important;
}

/* Peek/scale carousel — see initPeekCarousels() in app.js. Cards overlap (negative
   margin) instead of sitting apart with a gap, so the active card visually sits on top
   of its neighbours' edges, like a stacked deck. */
.peek-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px calc(50% - 88px) 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.peek-carousel::-webkit-scrollbar {
  display: none;
}
.peek-card {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 176px;
  margin-left: -44px;
  transform-origin: center;
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
}
.peek-card:first-child {
  margin-left: 0;
}

/* "Default" react-native-snap-carousel layout — see initSnapCarousels() in app.js.
   Unlike .peek-carousel, cards keep a normal gap (no overlap); only the active card
   is full scale/opacity, neighbours are mildly scaled down + dimmed
   (inactiveSlideScale 0.9 / inactiveSlideOpacity 0.7, the library's own defaults). */
.snap-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* 10% side padding so an 80%-wide card centers with symmetric peek on both edges */
  padding: 4px 10% 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.snap-carousel::-webkit-scrollbar {
  display: none;
}
.snap-card {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 80%;
  aspect-ratio: 8 / 5;
  transform-origin: center;
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
}
