/* ==========================================================================
   3D PERSPECTIVE DESK STAGE & OPENING SEQUENCE STYLES
   Recreates the angled paper-on-desk view from frame 00:00 of the video
   ========================================================================== */

.newspaper-stage {
  width: 100%;
  min-height: 100vh;
  perspective: 1800px;
  perspective-origin: 50% 35%;
  background-color: var(--desk-bg);
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

/* When 3D mode is active, center and elevate the paper sheet */
.newspaper-stage.perspective-active {
  padding: 60px 20px 140px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 140vh;
  background: radial-gradient(circle at 50% 30%, #242526 0%, #111213 80%);
}

html.night-edition .newspaper-stage.perspective-active {
  background: radial-gradient(circle at 50% 30%, #18191a 0%, #070809 85%);
}

.newspaper-sheet {
  width: 100%;
  max-width: 1480px;
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: 50% 25%;
  transition: box-shadow 0.5s ease;
  background-color: var(--paper-bg);
}

/* Opening Unfold Keyframe Animation */
.newspaper-sheet.intro-animating {
  animation: newspaperUnfold 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 
    -40px 65px 110px rgba(0, 0, 0, 0.72),
    0 25px 45px rgba(0, 0, 0, 0.45);
}

@keyframes newspaperUnfold {
  0% {
    transform: translateY(-45px) scale(0.72) rotateX(36deg) rotateY(-10deg) rotateZ(-30deg);
    box-shadow: -40px 65px 110px rgba(0, 0, 0, 0.72);
  }
  70% {
    transform: translateY(-8px) scale(0.96) rotateX(6deg) rotateY(-2deg) rotateZ(-4deg);
    box-shadow: -15px 30px 60px rgba(0, 0, 0, 0.5);
  }
  100% {
    transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.45);
  }
}

/* Shadows when tilted in 3D perspective mode */
.newspaper-stage.perspective-active .newspaper-sheet {
  box-shadow: 
    -40px 65px 110px rgba(0, 0, 0, 0.72),
    0 25px 45px rgba(0, 0, 0, 0.45),
    inset 0 0 100px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   BROADSHEET CENTER FOLD CREASES & SECTION TRANSITIONS
   Physical paper fold line across the broadsheet with dynamic 3D depth
   ========================================================================== */

.broadsheet-fold-crease {
  position: relative;
  width: 100%;
  margin: 40px 0 30px 0;
  padding: 8px 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.03) 0%,
    rgba(0, 0, 0, 0.07) 46%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(0, 0, 0, 0.05) 54%,
    transparent 100%
  );
  user-select: none;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

html.night-edition .broadsheet-fold-crease {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(0, 0, 0, 0.4) 46%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(0, 0, 0, 0.25) 54%,
    transparent 100%
  );
}

.crease-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  border-top: 1px dashed rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

html.night-edition .crease-line {
  border-top-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted);
}

.fold-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.fold-indicator::before {
  content: '✁';
  font-size: 13px;
}

.fold-folio {
  font-family: var(--font-display-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-black);
}

.fold-date {
  font-size: 10px;
}

/* ==========================================================================
   TACTILE CORNER DOG-EAR PEEL
   Realistic page corner curl floating at the bottom right
   ========================================================================== */

.broadsheet-corner-peel {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 14px;
  background: var(--paper-bg);
  border: 1px solid var(--border-rule);
  border-radius: 4px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease;
  user-select: none;
}

.broadsheet-corner-peel:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 16px 35px rgba(0, 0, 0, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.15);
}

.peel-dogear-icon {
  width: 22px;
  height: 22px;
  position: relative;
  background: linear-gradient(135deg, transparent 50%, var(--ink-black) 50%);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.broadsheet-corner-peel:hover .peel-dogear-icon {
  transform: rotate(-15deg) scale(1.15);
}

.peel-text-group {
  display: flex;
  flex-direction: column;
}

.peel-section-label {
  font-family: var(--font-display-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-black);
  line-height: 1.2;
}

.peel-sub-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .broadsheet-corner-peel {
    bottom: 16px;
    right: 16px;
    padding: 6px 10px;
  }
  .peel-sub-label {
    display: none;
  }
}

