/* ============================================
   BYD Dolphin UGC Campaign - Main Styles
   ============================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #eeeeee;
}

::-webkit-scrollbar-thumb {
  background: #888888;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

html {
  -ms-overflow-style: auto;
  scrollbar-width: thin;
  scrollbar-color: #888888 #eeeeee;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================
   MobileScaleWrapper
   ============================================ */
.mobile-scale-wrapper {
  width: 720px;
  transform-origin: top center;
  margin: 0 auto;
}

.mobile-scale-outer {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.reveal-left {
  transform: translateX(-100px);
}

.reveal-right {
  transform: translateX(100px);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: 0s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.4s;
}

/* ============================================
   Modal overlay
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  touch-action: none;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  touch-action: none;
}

/* ============================================
   Custom checkbox (hidden native)
   ============================================ */
.custom-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Tab styles
   ============================================ */
.tab-active {
  border-top: 2px solid #000000;
  border-right: 2px solid #000000;
  border-left: 2px solid #000000;
}

.tab-inactive {
  background: #ffffff;
  border-bottom: 2px solid #000000;
}

/* ============================================
   Form input styles
   ============================================ */
.form-input {
  height: 80px;
  background: #f3f3f3;
  border: 1px solid #d5d5d5;
  width: 100%;
  padding: 0 36px;
  font-family: 'Noto Sans', Helvetica, sans-serif;
  font-size: 28px;
  letter-spacing: -0.84px;
  color: #333333;
}

.form-input::placeholder {
  color: #999999;
}

.form-input:focus {
  outline: none;
}

/* ============================================
   Cookie consent bar
   ============================================ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Scrollbar hide utility
   ============================================ */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   Toast notification
   ============================================ */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #16a34a;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   Upload progress bar
   ============================================ */
.progress-bar-track {
  width: 192px;
  background: #e6e6e6;
  border-radius: 9999px;
  height: 8px;
}

.progress-bar-fill {
  background: #7ffff3;
  border-radius: 9999px;
  height: 8px;
  transition: width 0.3s ease;
}

/* ============================================
   Image/video preview in gallery modal
   ============================================ */
.gallery-media {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* ============================================
   Swiper Custom Pagination
   ============================================ */
.swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: #121212 !important;
  opacity: 1 !important;
  border-radius: 4px !important;
  transition: width 0.3s ease-in-out !important;
  margin: 0 !important;
}

.swiper-pagination-bullet-active {
  width: 29px !important;
}

.swiper-pagination-bullet:only-child {
  display: inline-block !important;
}