/* ==========================================================================
   TALAARAWAN - SCRAPBOOK & PHOTO ALBUM STYLES
   Craft paper texture, tilted polaroids, washi tapes, stickers & slideshow
   ========================================================================== */

.scrapbook-desk {
  background: #fdf5eb;
  background-image: 
    radial-gradient(#ebd5bf 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 235, 238, 0.4) 0%, rgba(232, 245, 233, 0.4) 100%);
  background-size: 20px 20px, 100% 100%;
  border-radius: 28px;
  border: 4px dashed #d7ccc8;
  padding: 40px 30px;
  box-shadow: inset 0 0 40px rgba(141, 110, 99, 0.08), 0 12px 36px rgba(0, 0, 0, 0.08);
  position: relative;
  min-height: 600px;
}

/* Cute Corner Paper Clips */
.scrapbook-desk::before {
  content: '📎';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 2rem;
  opacity: 0.8;
  transform: rotate(-30deg);
}

.scrapbook-desk::after {
  content: '🏷️';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  opacity: 0.8;
  transform: rotate(20deg);
}

.scrapbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  border: 2px solid #ffccbc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Polaroid Grid */
.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px;
  padding: 15px;
}

/* Polaroid Card */
.polaroid-card {
  background: #ffffff;
  padding: 16px 16px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0.1s;
  cursor: pointer;
  border: 1px solid #f0eae1;
}

.polaroid-card:hover {
  transform: scale(1.06) rotate(0deg) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  z-index: 20 !important;
}

/* Washi Tape Strip */
.washi-strip {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  border-left: 3px dashed rgba(255, 255, 255, 0.6);
  border-right: 3px dashed rgba(255, 255, 255, 0.6);
  opacity: 0.88;
}

.washi-strawberry {
  background: repeating-linear-gradient(45deg, #ff80ab, #ff80ab 10px, #ff4081 10px, #ff4081 20px);
}

.washi-floral {
  background: repeating-linear-gradient(-45deg, #a5d6a7, #a5d6a7 8px, #c8e6c9 8px, #c8e6c9 16px);
}

.washi-plaid {
  background: 
    repeating-linear-gradient(90deg, rgba(255, 224, 130, 0.8), rgba(255, 224, 130, 0.8) 8px, transparent 8px, transparent 16px),
    repeating-linear-gradient(rgba(255, 179, 0, 0.6), rgba(255, 179, 0, 0.6) 8px, #fff9c4 8px, #fff9c4 16px);
}

.washi-glitter {
  background: linear-gradient(135deg, #b39ddb, #80deea, #ffccbc);
}

/* Photo Thumbnail Inside Polaroid */
.polaroid-photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e0e0e0;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.03);
}

/* Polaroid Caption (Handwritten Font) */
.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: #333333;
  margin-top: 14px;
  text-align: center;
  line-height: 1.3;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-date {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: #8d6e63;
  text-align: center;
  margin-top: 4px;
}

/* Stickers Placed on Photo */
.sticker-cluster {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  font-size: 1.4rem;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.sticker-corner-top {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 1.2rem;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

/* Polaroid Action Buttons */
.polaroid-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px dashed #eee;
  padding-top: 8px;
}

.btn-card-action {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #757575;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: #ffebee;
  color: #c2185b;
}

/* Slideshow Modal */
.slideshow-modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.slideshow-content {
  position: relative;
  max-width: 650px;
  width: 100%;
  text-align: center;
}

.slideshow-polaroid {
  background: #ffffff;
  padding: 24px 24px 36px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: inline-block;
  width: 100%;
}

.slideshow-img-box {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.slideshow-img-box img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.slideshow-caption {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: #222;
  margin-top: 18px;
}

.slideshow-stickers {
  font-size: 2rem;
  margin-top: 8px;
}

.slideshow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--accent-pink);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.slideshow-prev { left: -70px; }
.slideshow-next { right: -70px; }

.slideshow-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slideshow-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .slideshow-prev { left: 10px; }
  .slideshow-next { right: 10px; }
}
