/* ==========================================================================
   TALAARAWAN - PICNIC NOTEBOOK STYLES
   Picnic blanket, grass, picnic basket, camera, book, and 3D flipping notebook
   ========================================================================== */

.picnic-scene-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 680px;
  background: linear-gradient(180deg, #87ceeb 0%, #b0e2ff 35%, #88d49e 42%, #5bb974 100%);
  border-radius: 24px;
  border: 4px solid #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 30px 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Sky Clouds */
.sky-cloud {
  position: absolute;
  background: #ffffff;
  border-radius: 50px;
  opacity: 0.85;
  filter: drop-shadow(0 4px 10px rgba(255,255,255,0.6));
  animation: float-cloud 45s linear infinite;
  pointer-events: none;
}

.cloud-1 {
  top: 25px;
  left: -120px;
  width: 160px;
  height: 50px;
}
.cloud-1::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 30px;
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
}
.cloud-1::after {
  content: '';
  position: absolute;
  top: -15px;
  right: 25px;
  width: 55px;
  height: 55px;
  background: #fff;
  border-radius: 50%;
}

.cloud-2 {
  top: 70px;
  left: -200px;
  width: 220px;
  height: 65px;
  animation-duration: 65s;
  animation-delay: -20s;
  opacity: 0.75;
}
.cloud-2::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 40px;
  width: 85px;
  height: 85px;
  background: #fff;
  border-radius: 50%;
}

@keyframes float-cloud {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(1400px); }
}

/* Warm Sun with Rays */
.picnic-sun {
  position: absolute;
  top: 25px;
  right: 35px;
  width: 80px;
  height: 80px;
  background: #ffe066;
  border-radius: 50%;
  box-shadow: 0 0 40px #ffdd59, 0 0 70px rgba(255, 221, 89, 0.5);
  animation: sun-pulse 4s ease-in-out infinite alternate;
}

@keyframes sun-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.08); filter: brightness(1.1); }
}

/* Gingham Picnic Blanket */
.picnic-blanket {
  position: relative;
  width: 95%;
  max-width: 1050px;
  margin-top: 50px;
  padding: 35px 25px;
  background-color: #ffffff;
  background-image: 
    linear-gradient(90deg, rgba(239, 83, 80, 0.35) 50%, transparent 50%),
    linear-gradient(rgba(239, 83, 80, 0.35) 50%, transparent 50%);
  background-size: 40px 40px;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(45, 95, 55, 0.35), inset 0 0 20px rgba(0, 0, 0, 0.05);
  border: 6px dashed #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Picnic Props Bar (Basket, Fruits, Water Bottle, Vintage Book, Small Camera) */
.picnic-props-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 900px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 12px 18px;
  border: 2px solid #f8bbd0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
}

.picnic-prop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: #4a3540;
  transition: transform 0.2s ease;
}

.picnic-prop-item:hover {
  transform: translateY(-3px) scale(1.05);
}

.prop-emoji {
  font-size: 1.8rem;
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.15));
}

/* 3D Open Notebook */
.notebook-wrapper {
  perspective: 1600px;
  width: 100%;
  max-width: 900px;
  margin: 10px auto 25px;
  box-sizing: border-box;
}

.notebook-book {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  background: #fdfaf3; /* Realistic Warm Cream Paper */
  border-radius: 16px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 2px 0 #e4d8c5,
    0 4px 0 #d9cbb4,
    0 6px 0 #cfbeaa,
    0 8px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #e2d5c1;
  overflow: hidden;
  box-sizing: border-box;
}

/* Center Spine Shadow & Stitching */
.notebook-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.12) 0%, 
    rgba(0,0,0,0.03) 40%, 
    rgba(255,255,255,0.4) 50%, 
    rgba(0,0,0,0.03) 60%, 
    rgba(0,0,0,0.12) 100%);
  z-index: 5;
  pointer-events: none;
}

/* Red Satin Ribbon Bookmark */
.notebook-ribbon {
  position: absolute;
  top: -10px;
  left: 49%;
  width: 18px;
  height: 120%;
  background: #e53935;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
  z-index: 6;
  border-radius: 2px 2px 0 0;
  pointer-events: none;
}
.notebook-ribbon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 12px solid #fdfaf3;
}

/* Left & Right Pages */
.notebook-page {
  flex: 1;
  padding: 32px 30px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(#d6c7b2 0.75px, transparent 0.75px);
  background-size: 16px 16px;
  color: #1a1a1a;
  box-sizing: border-box;
}

.notebook-page-left {
  border-right: 1px solid #ebdcc9;
  padding-right: 36px;
}

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

/* Page Header & Title */
.page-header {
  border-bottom: 2px dashed #d7c5ad;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-title {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: #2b1f26;
  word-break: break-word;
}

.page-date {
  font-size: 0.78rem;
  color: #6d5b52;
  font-weight: 600;
}

/* Page Content */
.page-body-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1a1a1a;
  white-space: pre-wrap;
  flex: 1;
  font-weight: 500;
  word-break: break-word;
}

/* Page Number & Sticker at bottom */
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #8c7667;
  font-weight: 600;
}

.page-corner-sticker {
  font-size: 1.4rem;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.15));
}

/* Notebook Navigation & Action Controls */
.notebook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 15px;
}

.flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #3e2723;
  border: 2px solid #8d6e63;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.flip-btn:hover {
  background: #fbe9e7;
  transform: translateY(-2px);
}

.flip-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Mobile Rules for Notebook */
@media (max-width: 768px) {
  .picnic-scene-container {
    padding: 18px 10px 32px;
    min-height: auto;
    border-radius: 16px;
  }

  .picnic-blanket {
    width: 100%;
    margin-top: 24px;
    padding: 18px 10px;
    border-radius: 18px;
  }

  .picnic-props-bar {
    padding: 10px 12px;
    gap: 8px;
    justify-content: center;
  }

  .picnic-prop-item {
    font-size: 0.7rem;
    gap: 4px;
  }

  .prop-emoji {
    font-size: 1.3rem;
  }

  .notebook-book {
    flex-direction: column;
    min-height: auto;
  }

  .notebook-book::before {
    display: none;
  }

  .notebook-ribbon {
    display: none;
  }

  .notebook-page {
    padding: 20px 16px;
  }

  .notebook-page-left {
    border-right: none;
    border-bottom: 2px dashed #ebdcc9;
    padding-right: 16px;
  }

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

  .notebook-controls {
    gap: 8px;
  }

  .flip-btn {
    padding: 8px 12px;
    font-size: 0.72rem;
  }
}
