/* ========================================
   PHONE MOCKUP COMPONENT
   Desktop: CSS device frame with shadow
   Mobile: Full-width rounded screenshot
   ======================================== */

.phone-mockup {
  position: relative;
  display: inline-block;
  max-width: 280px;
  margin: 0 auto;
}

.phone-mockup__frame {
  position: relative;
  border-radius: 36px;
  background: #1a1a1a;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-mockup__frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  z-index: 2;
}

.phone-mockup__screen {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.phone-mockup__screen picture,
.phone-mockup__screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   MOCKUP CAROUSEL
   Crossfade between multiple screenshots
   ======================================== */

.mockup-carousel {
  position: relative;
}

.mockup-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.mockup-carousel__slide--active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.mockup-carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.mockup-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.mockup-carousel__dot--active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.25);
}

.mockup-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Mobile: no device frame, just rounded screenshot */
@media (max-width: 768px) {
  .phone-mockup {
    max-width: 100%;
    width: 100%;
  }

  .phone-mockup__frame {
    border-radius: 20px;
    background: none;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  }

  .phone-mockup__frame::before {
    display: none;
  }

  .phone-mockup__screen {
    border-radius: 20px;
  }
}
