/* ===================================================
   WHIMSICAL SCRAPBOOK, LIBRARY & DECORATIVE DETAILS
   =================================================== */

/* 1. Neapolitan Gingham & Paper Pattern Background */
body {
  background-color: #fff9f6;
  background-image: 
    linear-gradient(90deg, rgba(244, 140, 167, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(244, 140, 167, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 145, 139, 0.06) 15px, transparent 15px),
    linear-gradient(rgba(176, 145, 139, 0.06) 15px, transparent 15px);
  background-size: 20px 20px, 20px 20px, 60px 60px, 60px 60px;
}

/* 2. Washi Tape & Polaroid Elements */
.polaroid-frame {
  background: #ffffff;
  padding: 12px 12px 34px 12px;
  border-radius: 4px;
  box-shadow: var(--shadow-polaroid);
  position: relative;
  display: inline-block;
  margin: 14px 0;
  transition: transform 0.3s ease;
  border: 1px solid rgba(176, 145, 139, 0.15);
  text-align: center;
  max-width: 100%;
}

.polaroid-frame.tilt-left {
  transform: rotate(-2deg);
}

.polaroid-frame.tilt-right {
  transform: rotate(2.5deg);
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
  z-index: 5;
}

.polaroid-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--vanilla-tint), var(--strawberry-light));
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cocoa-medium);
  font-family: var(--font-handwritten);
  font-size: 1.25rem;
  border: 1px dashed rgba(244, 140, 167, 0.35);
  padding: 10px;
  text-align: center;
}

.polaroid-caption {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  color: var(--cocoa);
  margin-top: 10px;
}

/* Washi Tape Strip */
.washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background-color: rgba(244, 140, 167, 0.65);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.4) 10px, rgba(255,255,255,0.4) 20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  opacity: 0.9;
  border-left: 2px dashed rgba(255,255,255,0.6);
  border-right: 2px dashed rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 2;
}

.washi-tape.tape-green {
  background-color: rgba(183, 213, 184, 0.7);
}

.washi-tape.tape-cocoa {
  background-color: rgba(196, 158, 133, 0.6);
}

/* 3. DAE Before / After Comparison Slider */
.comparison-slider-wrapper {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-cozy);
  border: 2px solid var(--vanilla-tint);
  user-select: none;
  width: 100%;
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background-color: var(--cocoa-soft);
}

@media (max-width: 600px) {
  .comparison-slider {
    height: 250px;
  }
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-before-box,
.slider-after-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cocoa-medium);
  font-family: var(--font-handwritten);
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  text-align: center;
  padding: 10px;
}

.slider-before-box {
  background: linear-gradient(135deg, #e9ecef, #ced4da);
}

.slider-after-box {
  background: linear-gradient(135deg, #ffd1dc, #fce4ec);
}

.comparison-badge {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-handwritten);
  font-size: 1.05rem;
  font-weight: 700;
  z-index: 4;
}

.badge-before {
  left: 12px;
  background: rgba(92, 69, 66, 0.85);
  color: #ffffff;
}

.badge-after {
  right: 12px;
  background: var(--strawberry);
  color: #ffffff;
}

/* Slider Drag Handle */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 5;
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 3px solid var(--strawberry);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--cocoa);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* 4. "Song of the Week" Lo-Fi Cassette Widget */
.music-widget {
  background: linear-gradient(135deg, #ffffff, var(--vanilla-tint));
  border: 2px solid var(--strawberry-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-cozy);
}

.cassette-box {
  background: var(--cocoa-soft);
  border: 2px solid var(--cubby-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cassette-reel {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px dashed var(--cocoa-medium);
  display: inline-block;
  animation: spinReel 4s linear infinite;
  animation-play-state: paused;
}

.cassette-reel.playing {
  animation-play-state: running;
}

@keyframes spinReel {
  100% { transform: rotate(360deg); }
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-music-play {
  background: var(--strawberry);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 10px rgba(244, 140, 167, 0.4);
}

.btn-music-play:hover {
  background: var(--strawberry-hover);
  transform: scale(1.08);
}

.song-info {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: var(--cocoa);
}

/* 5. Whimsical Sparkle Cursor */
.sparkle-particle {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  color: var(--strawberry);
  user-select: none;
  z-index: 9999;
  animation: fadeSparkle 0.8s forwards ease-out;
}

@keyframes fadeSparkle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), var(--ty, -25px)) scale(0.3);
  }
}

/* ===================================================
   6. PASTEL WOODEN BOOKSHELF (Softened Colors & Clean Responsive)
   =================================================== */

/* Color Guide Plaque */
.bookshelf-color-guide {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px dashed rgba(216, 186, 169, 0.6);
  box-shadow: 0 4px 12px rgba(92, 69, 66, 0.05);
  margin-bottom: 22px;
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: var(--cocoa);
  flex-wrap: wrap;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-color-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}

.badge-blog {
  background-color: #f48ca7; /* Strawberry Pink */
}

.badge-dae {
  background-color: #b08974; /* Soft Warm Cocoa (Lightened!) */
}

.badge-study {
  background-color: #b7d5b8; /* Soft Matcha */
}

/* Library Stage Container */
.library-stage-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 30px;
  max-width: 980px;
  width: 100%;
  padding: 0 4px;
}

/* Big Navigation Arrows on sides of the bookshelf */
.stage-arrow-btn {
  background: #ffffff;
  border: 2px solid var(--strawberry);
  color: var(--strawberry);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(244, 140, 167, 0.3);
  transition: all 0.25s ease;
  z-index: 20;
  flex-shrink: 0;
}

.stage-arrow-btn:hover {
  background: var(--strawberry);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 8px 22px rgba(244, 140, 167, 0.45);
}

.stage-arrow-btn.prev-btn {
  margin-right: 14px;
}

.stage-arrow-btn.next-btn {
  margin-left: 14px;
}

/* The Wooden Bookshelf Furniture Unit (Softened Pastel Birch/Latte Wood!) */
.bookshelf-unit {
  flex: 1;
  background: #fffcf8; /* Soft vanilla interior */
  border: 10px solid var(--cubby-border); /* Soft milky latte border (no harsh brown!) */
  border-radius: 20px;
  box-shadow: 
    0 16px 40px rgba(92, 69, 66, 0.12),
    inset 0 0 20px rgba(216, 186, 169, 0.2);
  position: relative;
  padding: 28px 20px 0 20px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 100%;
}

/* Top decorative wood molding sign */
.bookshelf-unit::before {
  content: '୨୧ my private library ୨୧';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cubby-border);
  color: #ffffff;
  padding: 4px 22px;
  border-radius: 999px;
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(92, 69, 66, 0.12);
  border: 2px solid var(--cubby-molding);
  white-space: nowrap;
}

/* Shelf Chamber where books rest */
.bookshelf-chamber {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 0px;
  position: relative;
  z-index: 2;
  gap: 20px;
}

/* Left Side: Upright Standing Notebook Spines (Desktop) */
.shelf-standing-spines {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-left: 10px;
  padding-bottom: 2px;
}

.upright-spine {
  width: 42px;
  height: 240px;
  border-radius: 6px 6px 0 0;
  box-shadow: 2px 0 8px rgba(92, 69, 66, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.upright-spine:hover {
  transform: translateY(-14px) scale(1.05);
  box-shadow: 4px 0 14px rgba(92, 69, 66, 0.25);
  z-index: 5;
}

.upright-spine.active-spine {
  transform: translateY(-12px);
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px var(--strawberry);
}

/* Vertical Title along the spine */
.spine-vertical-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  max-height: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spine-ribbon-tag {
  font-size: 0.9rem;
}

/* Center / Featured Active Notebook Display */
.shelf-spotlight-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  position: relative;
  z-index: 10;
}

/* ===================================================
   7. TRUE CAMPUS NOTEBOOK COVER (Softened & Proportional)
   =================================================== */

.featured-notebook-cover {
  width: 290px;
  height: 395px;
  border-radius: 8px;
  background-color: #fff0f5;
  box-shadow: 
    0 16px 36px rgba(92, 69, 66, 0.22),
    0 4px 10px rgba(0,0,0,0.08);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border: 1px solid rgba(176, 145, 139, 0.2);
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  max-width: 100%;
}

.featured-notebook-cover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 24px 44px rgba(92, 69, 66, 0.3),
    0 0 20px rgba(244, 140, 167, 0.35);
}

/* Campus Polka Dot Pattern */
.notebook-dots-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244, 140, 167, 0.3) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
  border-radius: 8px;
  z-index: 1;
}

/* Right Edge: Soft Milk Chocolate Piano Key Binding */
.notebook-spine-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    #ffffff,
    #ffffff 12px,
    #b08974 12px,
    #b08974 24px
  );
  border-left: 2px solid #8c6b58;
  box-shadow: inset 3px 0 6px rgba(0,0,0,0.1);
  border-radius: 0 8px 8px 0;
  z-index: 2;
}

/* Top Date Header */
.notebook-date-header {
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  color: var(--strawberry-hover);
  font-weight: 700;
  text-align: center;
  margin-right: 44px;
  position: relative;
  z-index: 3;
}

/* Scalloped Cloud Title Badge */
.notebook-title-cloud {
  background: #ffffff;
  border: 2px dashed var(--strawberry);
  border-radius: 26px;
  padding: 14px 16px;
  margin: 16px 44px 16px 4px;
  text-align: center;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(244, 140, 167, 0.2);
}

.cloud-bow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--strawberry);
}

.cloud-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--cocoa);
  font-weight: 700;
  line-height: 1.35;
}

/* Bottom Campus Logo Bar */
.notebook-bottom-label {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 50px;
}

.campus-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--cocoa);
  letter-spacing: -1.2px;
  line-height: 1;
}

.notebook-specs {
  font-family: monospace;
  font-size: 0.68rem;
  color: var(--cocoa-light);
  line-height: 1.2;
  text-align: right;
}

/* ===================================================
   8. CORNER PAGE-CURL ANIMATION
   =================================================== */

.page-curl-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent #e8d8c8 transparent;
  box-shadow: -2px -2px 6px rgba(92, 69, 66, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 10;
  border-bottom-right-radius: 8px;
}

.page-peek-layer {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: #fffdfa;
  background-image: repeating-linear-gradient(
    transparent, 
    transparent 10px, 
    rgba(244, 140, 167, 0.35) 11px
  );
  z-index: 5;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  border-bottom-right-radius: 8px;
}

.flip-open-badge {
  position: absolute;
  bottom: 18px;
  right: 44px;
  background: var(--strawberry);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-handwritten);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(244, 140, 167, 0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
  z-index: 12;
  pointer-events: none;
  white-space: nowrap;
}

.featured-notebook-cover:hover .page-curl-corner {
  border-width: 0 0 60px 60px;
  border-color: transparent transparent #f5ebe0 transparent;
  box-shadow: -5px -5px 12px rgba(92, 69, 66, 0.28);
}

.featured-notebook-cover:hover .page-peek-layer {
  opacity: 1;
}

.featured-notebook-cover:hover .flip-open-badge {
  opacity: 1;
  transform: translateY(0);
}

/* The Horizontal Wooden Shelf Beam (Ledge) - Softened Milk Caramel */
.bookshelf-ledge {
  width: 100%;
  height: 20px;
  background: linear-gradient(180deg, #e6cdbf 0%, var(--cubby-shelf) 45%, #b58d79 100%);
  border-radius: 4px;
  box-shadow: 
    0 4px 10px rgba(92, 69, 66, 0.25),
    inset 0 2px 2px rgba(255,255,255,0.4);
  position: relative;
  z-index: 3;
}

.bookshelf-bottom-shadow {
  width: 96%;
  height: 10px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(92, 69, 66, 0.2) 0%, transparent 70%);
}

/* ===================================================
   9. OPEN NOTEBOOK FLIPBOOK MODAL (Responsive Spread)
   =================================================== */

.notebook-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(92, 69, 66, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.notebook-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.notebook-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--strawberry);
  border: 3px solid #ffffff;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10002;
}

.notebook-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--strawberry-hover);
}

.notebook-flip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--strawberry);
  border: 3px solid #ffffff;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10002;
}

.notebook-flip-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--strawberry-hover);
}

.notebook-flip-btn.prev {
  left: 14px;
}

.notebook-flip-btn.next {
  right: 14px;
}

.open-notebook-container {
  position: relative;
  width: 580px;
  max-width: 94vw;
  height: 520px;
  min-height: 480px;
  max-height: 88vh;
  background: #f7a8b8;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.notebook-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 460px;
  background: #fffdfa;
  border-radius: 12px;
  box-shadow: inset 0 0 12px rgba(176, 145, 139, 0.15);
  position: relative;
  overflow: hidden;
}

.notebook-spread::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg, 
    rgba(0, 0, 0, 0.05) 0%, 
    rgba(0, 0, 0, 0.15) 50%, 
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.notebook-page {
  padding: 22px 18px;
  display: block;
  position: relative;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 25px,
    rgba(244, 140, 167, 0.3) 26px
  );
  background-size: 100% 26px;
  background-position: 0 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 26px;
  color: var(--cocoa);
  overflow-y: auto;
}

.notebook-page.page-left {
  padding-right: 18px;
  border-right: 1px solid rgba(176, 145, 139, 0.1);
}

.notebook-page.page-right {
  padding-left: 18px;
}

.diary-book-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--strawberry-hover);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 4px;
  line-height: 1.25;
}

.diary-book-date {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: var(--cocoa-light);
  text-align: right;
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 20px;
}

.diary-book-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 26px;
  color: var(--cocoa);
  word-break: break-word;
}

.diary-book-body p {
  margin: 0;
  padding: 0;
  line-height: 26px;
  font-family: var(--font-body);
}

.diary-book-body.font-size-small,
.diary-book-body.font-size-small p,
.diary-book-body p.font-size-small,
.live-page .font-size-small {
  font-size: 0.90rem;
  line-height: 26px;
}

.diary-book-body.font-size-medium,
.diary-book-body.font-size-medium p,
.diary-book-body p.font-size-medium,
.live-page .font-size-medium {
  font-size: 0.96rem;
  line-height: 26px;
}

.diary-book-body.font-size-cozy,
.diary-book-body.font-size-cozy p,
.diary-book-body p.font-size-cozy,
.live-page .font-size-cozy {
  font-size: 1.05rem;
  line-height: 26px;
}

/* Explicit blank line for white space matching exactly 1 notebook ruled line */
.diary-blank-line {
  height: 26px;
  display: block;
  margin: 0;
  padding: 0;
}

.diary-page-number {
  text-align: center;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--cocoa-light);
  margin-top: 10px;
}

/* Modal Multi-Page Spread Indicator Pill */
.notebook-spread-indicator {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 140, 167, 0.4);
  padding: 4px 16px;
  border-radius: 999px;
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: var(--strawberry-hover);
  box-shadow: 0 4px 12px rgba(176, 145, 139, 0.18);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  white-space: nowrap;
}

.fade-in {
  animation: fadeInCard 0.35s ease forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   10. MOBILE & TABLET RESPONSIVE OVERHAUL (NO OVERLAP)
   =================================================== */

@media (max-width: 768px) {
  /* Clean grid layout: Shelf on top, Arrow buttons centered below */
  .library-stage-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "shelf shelf"
      "prev next";
    justify-items: center;
    gap: 16px;
    width: 100%;
    padding: 0 4px;
    margin: 10px auto 24px;
  }

  .bookshelf-unit {
    grid-area: shelf;
    width: 100%;
    border-width: 8px;
    padding: 24px 10px 0 10px;
    min-height: auto;
  }

  .stage-arrow-btn.prev-btn {
    grid-area: prev;
    justify-self: end;
    margin: 4px 12px 0 0;
  }

  .stage-arrow-btn.next-btn {
    grid-area: next;
    justify-self: start;
    margin: 4px 0 0 12px;
  }

  .bookshelf-unit::before {
    top: -16px;
    font-size: 1rem;
    padding: 3px 16px;
  }

  /* Chamber stacks vertically on mobile without squishing */
  .bookshelf-chamber {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-bottom: 4px;
  }

  .shelf-spotlight-display {
    padding-right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Proportional Featured Book for mobile */
  .featured-notebook-cover {
    width: 240px;
    height: 335px;
    padding: 14px 12px 10px;
    transform: none;
  }

  .notebook-spine-right {
    width: 38px;
  }

  .notebook-date-header {
    font-size: 1.1rem;
    margin-right: 32px;
  }

  .notebook-title-cloud {
    padding: 10px 12px;
    margin: 12px 34px 12px 2px;
  }

  .cloud-title {
    font-size: 1rem;
  }

  .campus-logo-text {
    font-size: 1.7rem;
  }

  .notebook-bottom-label {
    padding-right: 38px;
  }

  /* Upright Spines: Neatly aligned on the wooden shelf with ZERO overlap */
  .shelf-standing-spines {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 2px;
    gap: 8px;
    justify-content: center;
    scrollbar-width: thin;
  }

  .upright-spine {
    width: 38px;
    height: 120px; /* Clean compact height */
    padding: 6px 2px;
  }

  .upright-spine:hover,
  .upright-spine.active-spine {
    transform: translateY(-6px);
  }

  .spine-vertical-title {
    font-size: 0.78rem;
    max-height: 70px;
  }

  .spine-ribbon-tag {
    font-size: 0.75rem;
  }

  /* Flipbook Modal for mobile */
  .open-notebook-container {
    height: 75vh;
    padding: 10px;
  }

  .notebook-spread {
    grid-template-columns: 1fr;
  }

  .notebook-spread::after {
    display: none;
  }

  .notebook-page.page-right {
    display: none; /* Show one page at a time on phones */
  }

  .notebook-page {
    padding: 22px 18px 18px 18px;
  }

  .notebook-flip-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .notebook-flip-btn.prev {
    left: 6px;
  }

  .notebook-flip-btn.next {
    right: 6px;
  }

  .notebook-close-btn {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

@media (max-width: 450px) {
  .featured-notebook-cover {
    width: 220px;
    height: 310px;
  }

  .shelf-standing-spines {
    justify-content: flex-start;
  }
}

/* ===================================================
   11. WHIMSICAL STUDIO (IN-BROWSER CREATOR) STYLES
   =================================================== */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 950px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

.studio-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid rgba(244, 140, 167, 0.3);
  box-shadow: var(--shadow-cozy);
}

.studio-field {
  margin-bottom: 20px;
}

.studio-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--cocoa);
  margin-bottom: 6px;
  font-weight: 700;
}

.studio-input,
.studio-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(176, 145, 139, 0.35);
  background: var(--vanilla-tint);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cocoa);
  outline: none;
  transition: all 0.2s ease;
}

.studio-input:focus,
.studio-textarea:focus {
  border-color: var(--strawberry);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(244, 140, 167, 0.25);
}

.studio-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Category Picker Pills */
.category-picker-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-select-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(176, 145, 139, 0.3);
  background: var(--vanilla-tint);
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: var(--cocoa);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-select-btn.active {
  background: var(--strawberry);
  color: #ffffff;
  border-color: var(--strawberry);
  font-weight: 700;
}

/* Color Presets Picker */
.palette-picker-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.palette-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.palette-swatch:hover,
.palette-swatch.active {
  transform: scale(1.2);
  outline: 2px solid var(--strawberry);
}

/* Sticky Live Preview */
.live-preview-wrapper {
  position: sticky;
  top: 30px;
}

.live-preview-box {
  background: #f7a8b8; /* Pink notebook cover */
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 15px 35px rgba(92, 69, 66, 0.18);
  min-height: 480px;
}

.live-preview-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 460px;
  background: #fffdfa;
  border-radius: 12px;
  box-shadow: inset 0 0 12px rgba(176, 145, 139, 0.15);
  position: relative;
  overflow: hidden;
}

.live-preview-spread::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.live-page {
  padding: 22px 18px;
  background-image: repeating-linear-gradient(transparent, transparent 25px, rgba(244,140,167,0.3) 26px);
  background-size: 100% 26px;
  background-position: 0 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 26px;
  color: var(--cocoa);
  overflow-y: auto;
}

.live-page.left {
  border-right: 1px solid rgba(176, 145, 139, 0.1);
}

@media (max-width: 600px) {
  .live-preview-spread {
    grid-template-columns: 1fr;
  }
  .live-page.right {
    display: none;
  }
}

/* Publish Big Button */
.btn-publish-sparkle {
  background: linear-gradient(135deg, var(--strawberry), var(--strawberry-hover));
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(244, 140, 167, 0.45);
  transition: all 0.25s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.btn-publish-sparkle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244, 140, 167, 0.6);
}

/* User Posts Manager List */
.entry-manager-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--vanilla-tint);
  border-radius: 12px;
  border: 1px solid rgba(176, 145, 139, 0.2);
  margin-bottom: 10px;
}

.entry-manager-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--cocoa);
}

.btn-delete-entry {
  background: #ff6b6b;
  border: none;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-handwritten);
  font-size: 1rem;
}

/* Attached Notebook Photos in Diary & Live Preview */
.diary-attached-photo-frame {
  margin: 14px auto;
  position: relative;
  max-width: 92%;
  background: #ffffff;
  padding: 8px 8px 12px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(176, 145, 139, 0.25);
  transform: rotate(-1.5deg);
  display: block;
}

.diary-attached-photo-frame:nth-child(even) {
  transform: rotate(1.5deg);
}

.diary-attached-photo-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.diary-attached-photo-frame .photo-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: rgba(244, 140, 167, 0.6);
  backdrop-filter: blur(1px);
  border: 1px dashed rgba(255, 255, 255, 0.6);
}

/* Studio Multi-Page Spread Blocks */
.studio-spread-block {
  background: #fffcf9;
  border: 1px solid rgba(176, 145, 139, 0.22);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
}

.studio-spread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(176, 145, 139, 0.25);
}

.btn-add-spread {
  background: var(--vanilla-tint);
  border: 1.5px dashed var(--strawberry);
  color: var(--strawberry-hover);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.btn-add-spread:hover {
  background: var(--strawberry-light);
  transform: translateY(-1px);
}

.btn-remove-spread {
  background: none;
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #d90429;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-handwritten);
}

/* Studio Preview Spread Flip Switcher */
.preview-spread-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.preview-spread-btn {
  background: white;
  border: 1px solid rgba(176, 145, 139, 0.35);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--cocoa);
  transition: all 0.15s ease;
}

.preview-spread-btn:hover {
  background: var(--strawberry-light);
  border-color: var(--strawberry);
}

/* Homepage Spotlight Tag & Button */
.tag-home-spotlight {
  background: #ffe3a8;
  color: #7f4f24;
  border: 1px solid #ffd166;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-set-home {
  background: white;
  border: 1px solid #ffd166;
  color: #7f4f24;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.btn-set-home:hover {
  background: #fff4d4;
  border-color: #fca311;
}

/* ===================================================
   11. TRADITIONAL ART SKETCHBOOK ALBUM & LIGHTBOX
   =================================================== */

.traditional-sketchbook-wrapper {
  background: linear-gradient(180deg, #fdfbf7 0%, #f7ede2 100%);
  border: 1px solid rgba(176, 145, 139, 0.35);
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 16px 36px rgba(176, 145, 139, 0.22);
  position: relative;
  margin-top: 48px;
}

.sketchbook-desk-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.sketchbook-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 960px;
  background: #faf4eb;
  border: 1px solid rgba(176, 145, 139, 0.25);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(176, 145, 139, 0.1), 0 12px 28px rgba(112, 77, 72, 0.15);
  padding: 28px;
  position: relative;
}

/* Center spiral/ring spine binding */
.sketchbook-spread::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  background-image: radial-gradient(circle, #5c4542 3px, transparent 4px), radial-gradient(circle, #d8baa9 6px, transparent 7px);
  background-size: 28px 24px;
  background-position: center;
  z-index: 5;
  opacity: 0.65;
}

.sketchbook-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.sketch-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(176, 145, 139, 0.2);
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(176, 145, 139, 0.18);
}

.sketch-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(244, 140, 167, 0.35);
}

.sketch-img-container {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #fbf7f4, #f4e8e1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cocoa-medium);
  font-family: var(--font-handwritten);
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(176, 145, 139, 0.3);
}

.sketch-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sketch-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 140, 167, 0.5);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--strawberry-hover);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.sketch-card:hover .sketch-zoom-badge {
  opacity: 1;
}

.sketch-corner-tape {
  position: absolute;
  top: -6px;
  left: 14px;
  width: 50px;
  height: 16px;
  background: rgba(244, 140, 167, 0.65);
  backdrop-filter: blur(1px);
  border: 1px dashed rgba(255, 255, 255, 0.7);
  transform: rotate(-3deg);
  z-index: 2;
}

/* Sketchbook navigation arrow buttons */
.sketchbook-flip-btn {
  background: white;
  border: 2px solid var(--strawberry-light);
  color: var(--strawberry-hover);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(176, 145, 139, 0.2);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sketchbook-flip-btn:hover {
  background: var(--strawberry-light);
  transform: scale(1.08);
}

/* Lightbox Modal */
.art-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 30, 27, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.art-lightbox-backdrop.open {
  display: flex;
  animation: fadeInModal 0.25s ease forwards;
}

.art-lightbox-content {
  background: #fffbf9;
  border-radius: 16px;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  border: 2px solid rgba(244, 140, 167, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.art-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: white;
  border: 1px solid rgba(176, 145, 139, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--cocoa);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.art-lightbox-close:hover {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

.art-lightbox-img-box {
  width: 100%;
  max-height: 520px;
  background: #f4ede6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(176, 145, 139, 0.2);
}

.art-lightbox-img-box img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

/* ===================================================
   12. STUDIO TAB SWITCHER
   =================================================== */

.studio-tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.studio-tab-btn {
  background: white;
  border: 1.5px solid rgba(244, 140, 167, 0.35);
  color: var(--cocoa);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(176, 145, 139, 0.12);
}

.studio-tab-btn:hover {
  border-color: var(--strawberry);
  transform: translateY(-1px);
}

.studio-tab-btn.active {
  background: var(--strawberry);
  color: white;
  border-color: var(--strawberry);
  box-shadow: 0 4px 14px rgba(244, 140, 167, 0.4);
}

.studio-tab-pane {
  display: none;
}

.studio-tab-pane.active {
  display: block;
}

@media (max-width: 768px) {
  .sketchbook-spread {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .sketchbook-spread::before {
    display: none;
  }
}


