/* =====================================================
   PRINOPIX DESIGN SHOWCASE MASTER STYLESHEET (css/design.css)
===================================================== */

/* NO BODY TOP PADDING (Full natural page view) */
body {
  padding-top: 0 !important;
}

/* FLOATING SIDE THEME NAVIGATOR ARROWS */
.side-theme-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 17, 30, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(239, 89, 41, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.side-theme-nav:hover {
  background: linear-gradient(135deg, #EF5929 0%, #F9AA33 100%);
  border-color: #FFFFFF;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(239, 89, 41, 0.6);
}

.side-theme-nav.prev-theme-btn {
  left: 18px;
}

.side-theme-nav.next-theme-btn {
  right: 18px;
}

/* SLEEK HINT TOAST LOCATED RIGHT NEXT TO THE ARROW MARK */
.arrow-hint-toast {
  position: fixed;
  top: 50%;
  right: 76px;
  transform: translateY(-50%);
  z-index: 9990;
  background: rgba(10, 17, 30, 0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(239, 89, 41, 0.6);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(239, 89, 41, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Little pointer triangle pointing to the side arrow */
.arrow-hint-toast::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid rgba(239, 89, 41, 0.8);
}

.arrow-hint-toast.hidden {
  opacity: 0;
  transform: translateY(-50%) translateX(10px) scale(0.92);
}

/* PHOTOGRAPHER INFO HINT TOAST FADE OUT & VANISH RULES */
.info-hint-toast {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.info-hint-toast.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-6px) scale(0.92) !important;
}

/* HIDE ARROW & HINT WHEN FULLSCREEN MODAL IS OPEN */
body.modal-open .side-theme-nav,
body.modal-open .arrow-hint-toast,
body.modal-open .info-hint-toast {
  display: none !important;
}

/* THEME LAYOUT SCOPING RULES */

/* Themes 1, 2, 3: Header Actions active, Floating Dock hidden */
body.theme-1 .header-actions,
body.theme-2 .header-actions,
body.theme-3 .header-actions {
  display: flex !important;
}

body.theme-1 .floating-dock-container,
body.theme-2 .floating-dock-container,
body.theme-3 .floating-dock-container {
  display: none !important;
}

body.theme-1 #event1FloatingUploadBtn,
body.theme-2 #event1FloatingUploadBtn,
body.theme-3 #event1FloatingUploadBtn {
  display: flex !important;
}

/* Themes 4 & 5: Header Actions hidden, Floating Dock active */
body.theme-4 .header-actions,
body.theme-5 .header-actions {
  display: none !important;
}

body.theme-4 .floating-dock-container,
body.theme-5 .floating-dock-container {
  display: flex !important;
}

body.theme-4 #event1FloatingUploadBtn,
body.theme-5 #event1FloatingUploadBtn {
  display: none !important;
}

/* Theme Specific Overrides */

/* Theme 1: Classic Gold Glassmorphism */
body.theme-1 .event-header {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 16px 20px 24px 20px !important;
  background: rgba(10, 17, 30, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  text-align: center !important;
}

body.theme-1 .header-brand-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Theme 2: Water Droplet Notch Curve & Floating Island Header */
body.theme-2 .event-header {
  position: sticky !important;
  top: 10px !important;
  margin: 12px auto 0 auto !important;
  max-width: 1440px !important;
  width: calc(100% - 40px) !important;
  border-radius: 24px !important;
}

body.theme-2 #topBlurOverlay {
  display: block !important;
  top: 0 !important;
  height: 90px !important;
}

/* Theme 3: Gold Luxe Edition */
body.theme-3 .event-header {
  position: sticky !important;
  top: 0 !important;
}

/* Theme 4: Sunset Coral Ornamental */
body.theme-4 .event-header {
  position: sticky !important;
  top: 0 !important;
}

/* Theme 5: Cinematic Video Reel */
body.theme-5 .event-header {
  position: sticky !important;
  top: 0 !important;
}

/* MOBILE RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  /* Hide side theme navigation arrows on mobile as requested */
  .side-theme-nav {
    display: none !important;
  }

  /* Sleek floating mobile swipe hint toast centered in exact middle of screen */
  .arrow-hint-toast {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    background: rgba(8, 14, 26, 0.96);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1.5px solid #F9AA33;
    color: #FFFFFF;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(249, 170, 51, 0.5);
    z-index: 9995;
    text-align: center;
    line-height: 1.3;
    animation: mobileToastPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .arrow-hint-toast::after {
    display: none !important;
  }

  .arrow-hint-toast.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    animation: none;
  }

  @keyframes mobileToastPop {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.75);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  body.theme-2 .event-header {
    width: calc(100% - 20px) !important;
    margin: 8px auto 0 auto !important;
    padding: 12px 16px !important;
    border-radius: 20px !important;
  }
}

/* =====================================================
   FULLSCREEN ANIMATED THEME SWITCH OVERLAY & TRANSITIONS
===================================================== */

/* Page content exit/enter animation classes */
body.theme-transitioning #eventHeader,
body.theme-transitioning #results,
body.theme-transitioning #floatingDockContainer,
body.theme-transitioning #event1FloatingUploadBtn {
  opacity: 0.15 !important;
  transform: scale(0.97) translateY(8px) !important;
  filter: blur(4px) !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease !important;
}

#eventHeader,
#results,
#floatingDockContainer,
#event1FloatingUploadBtn {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Stagger photo card entrance pop animation */
body.theme-switched .photo-card {
  animation: cardThemePop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.theme-switched .photo-card:nth-child(1) {
  animation-delay: 0.02s;
}

body.theme-switched .photo-card:nth-child(2) {
  animation-delay: 0.04s;
}

body.theme-switched .photo-card:nth-child(3) {
  animation-delay: 0.06s;
}

body.theme-switched .photo-card:nth-child(4) {
  animation-delay: 0.08s;
}

body.theme-switched .photo-card:nth-child(5) {
  animation-delay: 0.10s;
}

body.theme-switched .photo-card:nth-child(6) {
  animation-delay: 0.12s;
}

body.theme-switched .photo-card:nth-child(7) {
  animation-delay: 0.14s;
}

body.theme-switched .photo-card:nth-child(8) {
  animation-delay: 0.16s;
}

body.theme-switched .photo-card:nth-child(9) {
  animation-delay: 0.18s;
}

body.theme-switched .photo-card:nth-child(10) {
  animation-delay: 0.20s;
}

body.theme-switched .photo-card:nth-child(11) {
  animation-delay: 0.22s;
}

body.theme-switched .photo-card:nth-child(12) {
  animation-delay: 0.24s;
}

@keyframes cardThemePop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Side theme nav button click active pulse animation */
.side-theme-nav:active {
  transform: translateY(-50%) scale(0.88) !important;
}

.side-theme-nav.btn-animating {
  animation: navBtnPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes navBtnPulse {
  0% {
    transform: translateY(-50%) scale(1);
  }

  40% {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 35px rgba(249, 170, 51, 0.8);
  }

  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* THEME SWITCH OVERLAY CONTAINER */
.theme-switch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.theme-switch-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.theme-switch-card {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 24, 42, 0.94) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1.5px solid rgba(249, 170, 51, 0.45);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(239, 89, 41, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  padding: 32px 48px;
  border-radius: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
  max-width: 90vw;
  transform: scale(1) translateY(0);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-switch-overlay.hidden .theme-switch-card {
  transform: scale(0.85) translateY(20px);
}

.theme-switch-icon {
  font-size: 36px;
  margin-bottom: 8px;
  animation: iconSpin 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iconSpin {
  0% {
    transform: scale(0.3) rotate(-180deg);
    opacity: 0;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.theme-switch-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F9AA33;
  margin-bottom: 6px;
}

.theme-switch-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(249, 170, 51, 0.4);
  background: linear-gradient(135deg, #FFFFFF 30%, #FFE29F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.theme-switch-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #9CA3AF;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.theme-switch-loader {
  width: 100%;
  max-width: 220px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.theme-switch-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #EF5929 0%, #F9AA33 50%, #FFE29F 100%);
  border-radius: 10px;
  box-shadow: 0 0 12px #F9AA33;
  transition: width 0.35s ease-in-out;
}