/* ==========================================================================
   INTERACTIVE DIGITAL ALBUMS & 3D FLIPBOOK STYLES
   Colors Production
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Homepage Album Showcase Cards
   -------------------------------------------------------------------------- */
.albums-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #201a1c 0%, #110e10 70%, #0a0809 100%);
  color: #f7f7f7;
  overflow: hidden;
}

.albums-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 600px 300px at 20% 40%, rgba(212, 175, 55, 0.08), transparent 70%),
    radial-gradient(ellipse 600px 300px at 80% 60%, rgba(224, 114, 137, 0.07), transparent 70%);
  pointer-events: none;
}

.albums-section .lead.larger {
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin: 0 auto 40px auto;
}

/* 3D Photobook Presentation Card */
.album-card-wrapper {
  perspective: 1600px;
  margin: 0 auto 40px;
  max-width: 480px;
  width: 100%;
  height: 100%;
}

/* Albums Showcase Grid - 6 col grid from md breakpoint */
.albums-showcase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-left: -15px;
  margin-right: -15px;
}

.albums-showcase-row .album-col {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .albums-showcase-row .album-col {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }
}

/* 3D Photobook Standalone Presentation Item / Card */
.album-presentation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 0 20px 0;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

.album-presentation-item:hover {
  transform: translateY(-8px);
}

.album-book-card {
  background: radial-gradient(circle at 50% 38%, rgba(38, 33, 35, 0.75) 0%, rgba(18, 15, 17, 0.95) 100%);
  border: 1px solid rgba(229, 185, 103, 0.2);
  border-radius: 28px;
  padding: 42px 30px 36px 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 0 30px rgba(0, 0, 0, 0.45),
    0 24px 50px rgba(0, 0, 0, 0.55);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.album-book-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 185, 103, 0.08), rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-25deg);
  transition: 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.album-book-card:hover::after {
  left: 150%;
}

.album-book-card:hover {
  transform: translateY(-10px);
  border-color: rgba(229, 185, 103, 0.5);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 32px 70px rgba(0, 0, 0, 0.7), 
    0 0 40px rgba(229, 185, 103, 0.2);
}

/* 3D Realistic Photobook Mockup */
.book-mockup-stage {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 0 45px 0;
  cursor: pointer;
  position: relative;
  width: 100%;
}

/* Warm ambient gallery spotlight behind the book */
.book-mockup-stage::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 185, 103, 0.16) 0%, rgba(229, 185, 103, 0.04) 50%, transparent 75%);
  filter: blur(25px);
  pointer-events: none;
  transition: all 0.6s ease;
  z-index: 1;
}

.album-presentation-item:hover .book-mockup-stage::before,
.album-book-card:hover .book-mockup-stage::before {
  width: 105%;
  height: 330px;
  background: radial-gradient(circle, rgba(229, 185, 103, 0.28) 0%, rgba(229, 185, 103, 0.08) 55%, transparent 80%);
  filter: blur(30px);
}

/* Realistic pedestal contact shadow */
.book-mockup-stage::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  filter: blur(7px);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.album-presentation-item:hover .book-mockup-stage::after,
.album-book-card:hover .book-mockup-stage::after {
  width: 90%;
  height: 28px;
  transform: translateX(-50%) scale(0.96);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 50%, transparent 80%);
}

.book-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1.41 / 1;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(6deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 
    -18px 24px 38px rgba(0, 0, 0, 0.65),
    -8px 8px 16px rgba(0, 0, 0, 0.45);
  border-radius: 4px 12px 12px 4px;
  z-index: 3;
}

.album-presentation-item:hover .book-3d,
.album-book-card:hover .book-3d {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-8px) scale(1.03);
  box-shadow: 
    -25px 34px 55px rgba(0, 0, 0, 0.75),
    -10px 10px 22px rgba(0, 0, 0, 0.5);
}

/* Realistic Hardcover */
.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px 10px 10px 4px;
  background-size: cover;
  background-position: center;
  z-index: 5;
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(255, 255, 255, 0.15) 30%, 
    rgba(0, 0, 0, 0.5) 70%, 
    rgba(0, 0, 0, 0.2) 100%);
  z-index: 10;
}

.book-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Realistic Gold Gilded Stacked Paper Pages Edge */
.book-pages-side {
  position: absolute;
  top: 5px;
  right: -16px;
  width: 20px;
  height: calc(100% - 10px);
  background: repeating-linear-gradient(
    90deg,
    #e9e0cf 0px,
    #e9e0cf 1px,
    #cbbeaa 2px,
    #cbbeaa 3px
  );
  transform: rotateY(90deg);
  transform-origin: left;
  border-radius: 0 3px 3px 0;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.book-pages-bottom {
  position: absolute;
  bottom: -16px;
  left: 4px;
  width: calc(100% - 8px);
  height: 20px;
  background: repeating-linear-gradient(
    0deg,
    #e9e0cf 0px,
    #e9e0cf 1px,
    #cbbeaa 2px,
    #cbbeaa 3px
  );
  transform: rotateX(-90deg);
  transform-origin: top;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.book-badge-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(14, 12, 13, 0.82);
  border: 1px solid rgba(229, 185, 103, 0.5);
  color: #f7e6be;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.35s ease;
  pointer-events: none;
}

.book-badge-overlay i {
  color: #e5b967;
  font-size: 0.85rem;
  transition: transform 0.35s ease;
}

.album-book-card:hover .book-badge-overlay {
  background: rgba(229, 185, 103, 0.22);
  border-color: rgba(229, 185, 103, 0.75);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 185, 103, 0.35);
  transform: translateY(-2px);
}

.album-book-card:hover .book-badge-overlay i {
  transform: scale(1.15);
  color: #ffe6a3;
}

/* Album Card Content */
.album-card-info {
  margin-top: 14px;
  text-align: center;
  position: relative;
  z-index: 4;
  width: 100%;
}

.album-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 40%, #f7e2a9 80%, #dfb55f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.35s ease;
  position: relative;
  display: inline-block;
}

.album-card-title::after {
  content: "";
  display: block;
  width: 0;
  height: 1.5px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, #e5b967, transparent);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.album-presentation-item:hover .album-card-title::after,
.album-book-card:hover .album-card-title::after {
  width: 70px;
}

.album-card-meta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: #cfc5be;
  margin-top: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.album-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.album-card-meta i {
  color: #e5b967;
}

.album-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-open-book {
  background: linear-gradient(135deg, #d4af37 0%, #f3db83 50%, #b8972e 100%);
  color: #121010 !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-open-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.55);
  color: #000000 !important;
}




/* --------------------------------------------------------------------------
   2. Interactive Digital Album Flipbook Modal
   -------------------------------------------------------------------------- */
.digital-album-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 30%, #1f1b1c 0%, #120f11 60%, #070607 100%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  user-select: none;
  -webkit-user-select: none;
}

.digital-album-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Header Bar */
.flipbook-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(15, 13, 14, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  flex-shrink: 0;
}

.flipbook-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.flipbook-brand img {
  height: 32px;
  width: auto;
}

.flipbook-title-group h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.flipbook-title-group p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: #e5b967;
  letter-spacing: 1px;
  margin: 0;
}

.flipbook-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toolbar-btn:hover,
.toolbar-btn.active {
  background: rgba(229, 185, 103, 0.2);
  border-color: #e5b967;
  color: #e5b967;
}

.toolbar-btn.close-btn {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff8585;
  font-size: 1.1rem;
  padding: 7px 12px;
}

.toolbar-btn.close-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

/* Main Flipbook Workspace Stage */
.flipbook-stage-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* Book Container */
.flipbook-viewport {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 95vw;
  max-height: calc(100vh - 90px);
  transition: transform 0.3s ease;
}

/* StPageFlip wrapper */
.st-flip-book {
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 10px 25px rgba(0, 0, 0, 0.5);
  background: #111;
  border-radius: 4px;
}

/* Individual Page Styling in StPageFlip */
.st-page {
  background-color: #fdfdfd;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Realistic Center Spine Shadow Effect */
.spine-shadow-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 50;
}

/* Floating Navigation Arrows */
.flip-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(18, 15, 17, 0.75);
  border: 1px solid rgba(229, 185, 103, 0.4);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-nav-arrow:hover {
  background: #e5b967;
  color: #121010;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(229, 185, 103, 0.45);
}

.flip-nav-arrow.prev-arrow {
  left: 30px;
}

.flip-nav-arrow.next-arrow {
  right: 30px;
}

.flip-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1) !important;
  background: rgba(18, 15, 17, 0.4);
  color: #777;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Canvas Book Shadow & Styling */
.st-flip-book canvas {
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75);
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .flipbook-topbar {
    padding: 12px 18px;
  }
  .flip-nav-arrow.prev-arrow {
    left: 10px;
  }
  .flip-nav-arrow.next-arrow {
    right: 10px;
  }
  .flip-nav-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .keyboard-hint {
    display: none;
  }
}

@media (max-width: 576px) {
  .album-book-card {
    padding: 32px 18px 26px 18px;
    border-radius: 22px;
  }
  .album-card-title {
    font-size: 1.5rem;
  }
  .flipbook-title-group h3 {
    font-size: 1rem;
  }
  .flipbook-brand img {
    display: none;
  }
}

/* Fullscreen Display Support */
.digital-album-modal:fullscreen,
.digital-album-modal:-webkit-full-screen,
.digital-album-modal:-moz-full-screen,
.digital-album-modal:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: radial-gradient(circle at 50% 30%, #1f1b1c 0%, #120f11 60%, #070607 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  z-index: 2147483647 !important;
}

.digital-album-modal:fullscreen .flipbook-stage-container,
.digital-album-modal:-webkit-full-screen .flipbook-stage-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.digital-album-modal:fullscreen .flipbook-viewport,
.digital-album-modal:-webkit-full-screen .flipbook-viewport {
  max-height: calc(100vh - 110px);
  max-width: 96vw;
}

/* Mobile Orientation Suggestion Pill */
.orientation-hint-pill {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 15, 17, 0.92);
  border: 1px solid rgba(229, 185, 103, 0.65);
  color: #f7e6be;
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 95;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  animation: pulseRotateHint 2.5s infinite;
  white-space: nowrap;
  user-select: none;
}

.orientation-hint-pill i {
  color: #e5b967;
  font-size: 0.85rem;
}

@keyframes pulseRotateHint {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  }
  50% {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 6px 22px rgba(229, 185, 103, 0.4);
  }
}

/* Show rotate hint on mobile in portrait */
@media (max-width: 767px) and (orientation: portrait) {
  .orientation-hint-pill {
    display: inline-flex;
  }
}

@media (orientation: landscape) {
  .orientation-hint-pill {
    display: none !important;
  }
}

/* Ultra-compact bars on mobile landscape to maximize the 2-page photobook view */
@media (max-height: 540px) and (orientation: landscape) {
  .flipbook-topbar {
    padding: 6px 16px;
  }
  .flipbook-title-group h3 {
    font-size: 0.95rem;
  }
  .flipbook-title-group p {
    font-size: 0.7rem;
  }
  .flip-nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .flip-nav-arrow.prev-arrow {
    left: 8px;
  }
  .flip-nav-arrow.next-arrow {
    right: 8px;
  }
  .flipbook-viewport {
    max-height: calc(100vh - 65px);
  }
}


