/* ==========================================================================
   Big Bang Exim — Upgraded Site-Wide Typography & 3D Flipbook Design System
   ========================================================================== */

/* Clean standard root typography scale */
#flipbook-wrapper-section {
  background-color: #FAF6F0 !important;
  position: relative;
  width: 100%;
  padding-top: 2rem !important;
  padding-bottom: 3.5rem !important;
}

@media (min-width: 640px) {
  #flipbook-wrapper-section {
    padding-top: 2.5rem !important;
    padding-bottom: 4rem !important;
  }
}

@media (min-width: 1024px) {
  #flipbook-wrapper-section {
    padding-top: 3rem !important;
    padding-bottom: 4.5rem !important;
  }
}

/* Floating controls bar wrapper with balanced separation */
.fb-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem !important;
}

@media (min-width: 640px) {
  .fb-controls-wrapper {
    margin-bottom: 2rem !important;
  }
}

.fb-viewport-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  margin-bottom: 2.5rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fb-book-wrap {
  position: relative;
  margin: 0 auto;
  box-shadow: 0 30px 60px -15px rgba(46, 20, 4, 0.45), 0 0 40px rgba(200, 146, 42, 0.15);
  border-radius: 6px;
  overflow: visible;
  transition: all 0.3s ease;
}

/* Center spine shadow crease between facing pages in dual spread */
.fb-book-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  transform: translateX(-50%);
  background: linear-gradient(to right, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.03) 42%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.03) 58%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: 25;
}

@media (max-width: 767px) {
  .fb-book-wrap::after {
    display: none; /* Hide spine in portrait single-page mode */
  }
}

.fb-page {
  background-color: #FAF6F0;
  color: #261204;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(78, 33, 5, 0.04);
  position: relative;
}

/* Page inner content container */
.fb-page-content {
  width: 100%;
  height: 100%;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .fb-page-content {
    padding: 1.75rem 1.5rem;
  }
}

/* Hardcover page styling in Primary Brand Colour */
.fb-page-cover {
  background: radial-gradient(circle at 50% 25%, #a65319 0%, #8c4614 70%, #703309 100%) !important;
  color: #FAF6F0 !important;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(200, 146, 42, 0.35) !important;
}

.fb-page-backcover {
  background: radial-gradient(circle at 50% 75%, #a65319 0%, #8c4614 70%, #703309 100%) !important;
  color: #FAF6F0 !important;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(200, 146, 42, 0.35) !important;
}

/* Heyzine style Floating Toolbar in Primary Brand Colour */
.fb-controls-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(140, 70, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 146, 42, 0.35);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 0 0 25px rgba(200, 146, 42, 0.2);
  color: #FAF6F0;
  z-index: 40;
}

.fb-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.fb-btn:hover {
  background: #fbbf24;
  color: #4e2105;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.6);
}

/* Fullscreen mode */
.fb-fullscreen-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  z-index: 9999 !important;
  background: #1c0d03 !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
}
