@charset "UTF-8";
/* ==== CAROUSEL.CSS ==== */

/* ===========================
   Carousel Base
=========================== */
.carousel {
  width: 100%;
  max-width: 768px;
  margin: 0 auto 40px;
  outline: none;
}

/* ===========================
   Main Media
=========================== */
.carousel-main {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-media {
  animation: fade 300ms ease;
}

.carousel-media.slide {
  animation: slide 300ms ease;
}

.carousel-main img,
.carousel-main video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 1rem;
}

/* ===========================
   Video Play Overlay
=========================== */
.carousel-video-wrapper {
  position: relative;
}

.carousel-play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.carousel-play-overlay::before {
  content: '';
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.3s ease;
}

body.light .carousel-play-overlay::before {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-play-overlay::after {
  content: '';
  position: absolute;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 22px solid white;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  transition: border-left-color 0.3s ease;
}

body.light .carousel-play-overlay::after {
  border-left-color: #000;
}

.carousel-video-wrapper.playing .carousel-play-overlay {
  display: none;
}

/* ===========================
   Caption
=========================== */
.carousel-caption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  transition: color 0.4s ease;
}

body.light .carousel-caption {
  color: #222;
}

/* ===========================
   Thumbnails
=========================== */
.carousel-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  max-height: 120px;
}

.carousel-thumbs img,
.carousel-thumbs video {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
  border-radius: 0.5rem;
  transition: opacity 0.3s ease, outline 0.3s ease;
}

.carousel-thumbs .active {
  opacity: 1;
  outline: 2px solid var(--accent);
}

/* Dark/light theme for thumbs */
body.light .carousel-thumbs .active {
  outline-color: var(--accent-alt);
}

/* ===========================
   HEADER ICON BOX (Monster Meatloaf, Puzzle Box, Turtle)
=========================== */
.success-box {
  text-align: center;
  margin-bottom: 2rem;
}

.success-box .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #000;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(247,74,5,0.55);
  animation: popIn 0.6s ease-out;
}

.success-box h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
}

.success-box p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto;
}

/* ===========================
   Light Mode Adjustments
=========================== */
body.light .success-box .success-icon {
  color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  box-shadow: 0 10px 28px rgba(247,74,5,0.35);
}

body.light .success-box p {
  color: #222;
  opacity: 1;
}

/* ===========================
   Animations
=========================== */
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===========================
   Optional Responsive Adjustments
=========================== */
@media (max-width: 768px) {
  .success-box .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .success-box h1 {
    font-size: 1.75rem;
  }

  .success-box p {
    font-size: 1rem;
  }
}


/* ===========================
   Desktop Layout
=========================== */
@media (min-width: 768px) {
  .carousel {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 16px;
    align-items: center;
  }

  .carousel-thumbs {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70vh;
  }

  .carousel-thumbs img,
  .carousel-thumbs video {
    width: 100%;
    height: auto;
  }
}

/* ===========================
   Animations
=========================== */
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
