/* ==========================================================================
   DIGITAL PLANNER REALISTIC CSS MOCKUPS & UI COMPONENTS
   iPad Frame, Rainbow Tabs, Realistic Stationery, Stickers & Gallery
   ========================================================================== */

/* --- Realistic iPad / Tablet Mockup Container --- */
.ipad-mockup {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: #18181B;
  border-radius: 36px;
  padding: 16px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 4px #27272A,
    0 12px 30px rgba(255, 117, 143, 0.18);
  margin: 0 auto;
  user-select: none;
  transition: transform 0.4s ease;
}

.ipad-mockup:hover {
  transform: translateY(-4px);
}

.ipad-camera-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #3F3F46;
  border-radius: 50%;
  box-shadow: inset 0 0 2px #000000;
}

/* Screen Area */
.ipad-screen {
  background: #FAF8F5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Glass Reflection Overlay */
.ipad-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 60%);
  pointer-events: none;
  z-index: 20;
}

/* --- Planner Page Layout Inside iPad --- */
.planner-page-container {
  display: flex;
  width: 100%;
  height: 100%;
  background: #FDFBF7;
  position: relative;
}

/* Left Sidebar / Quick Nav */
.planner-sidebar-left {
  width: 50px;
  background: #F3EFEA;
  border-right: 1px solid #E5DFD7;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  z-index: 5;
}

.sidebar-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #78716C;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-year-pill {
  font-size: 0.65rem;
  font-weight: 800;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
  color: #BE185D;
  background: #FFE4E6;
  padding: 8px 4px;
  border-radius: 6px;
  margin-top: auto;
}

/* Center Dual Page View */
.planner-spread {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 16px;
  gap: 14px;
  background-color: #FFFFFF;
  background-image: radial-gradient(#E2E8F0 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  position: relative;
  overflow: hidden;
}

/* Center Binding Spine */
.planner-spread::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 16px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 0%, rgba(255,255,255,0.4) 50%, rgba(0,0,0,0.06) 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 4;
}

/* Left Page Column */
.planner-col-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planner-col-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Planner Components */
.planner-header-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 6px;
}

.planner-date-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.planner-date-title span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #BE185D;
  background: #FFE4E6;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Daily Schedule Grid */
.schedule-block-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  color: #64748B;
}

.schedule-time {
  width: 36px;
  font-weight: 700;
  color: #94A3B8;
  font-size: 0.6rem;
}

.schedule-line {
  flex: 1;
  height: 20px;
  background: #F8FAFC;
  border-radius: 4px;
  border: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-weight: 600;
  color: #334155;
}

.schedule-line.filled-pink {
  background: #FFE4E6;
  border: 1px solid #FDA4AF;
  color: #9F1239;
}

.schedule-line.filled-mint {
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

.schedule-line.filled-purple {
  background: #EDE9FE;
  border: 1px solid #C4B5FD;
  color: #5B21B6;
}

/* Mini Habit Tracker Box */
.mini-habit-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px;
}

.mini-box-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.habit-dot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.62rem;
  color: #475569;
}

.dots-group {
  display: flex;
  gap: 3px;
}

.habit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E2E8F0;
}

.habit-dot.checked-1 { background: #F43F5E; }
.habit-dot.checked-2 { background: #10B981; }
.habit-dot.checked-3 { background: #8B5CF6; }
.habit-dot.checked-4 { background: #3B82F6; }

/* Sticky Note Widget */
.sticky-note-visual {
  background: #FEF08A;
  border-radius: 4px;
  padding: 8px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #713F12;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transform: rotate(-1.5deg);
  border-top: 3px solid rgba(234, 179, 8, 0.4);
}

/* Right Rainbow Indexed Tabs */
.planner-tabs-right {
  width: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
}

.rainbow-tab-item {
  height: 18px;
  border-radius: 0 4px 4px 0;
  font-size: 0.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E293B;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.08);
}

.tab-pink { background: #FF8FA3; }
.tab-peach { background: #FFD6A5; }
.tab-yellow { background: #FDFFB6; }
.tab-mint { background: #C4F1BE; }
.tab-sky { background: #BEE1E6; }
.tab-purple { background: #DDD6FE; }
.tab-violet { background: #F5D0FE; }
.tab-rose { background: #FECDD3; }
.tab-teal { background: #A7F3D0; }
.tab-orange { background: #FED7AA; }

/* --- SHOWCASE PREVIEW CARDS (10 Themes) --- */
.showcase-mockup-display {
  background: #FDFBF7;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  min-height: 420px;
}

.showcase-inner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.showcase-preview-paper {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-md);
  padding: 20px;
  position: relative;
  background-image: linear-gradient(rgba(226, 232, 240, 0.4) 1px, transparent 1px);
  background-size: 100% 20px;
}

.showcase-info-pane h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.showcase-info-pane p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.showcase-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.showcase-feature-tag {
  padding: 6px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

/* Washi Tape Graphic */
.washi-tape {
  position: absolute;
  top: -8px;
  left: 40px;
  width: 80px;
  height: 16px;
  background: rgba(255, 143, 163, 0.45);
  border-left: 2px dashed rgba(255, 255, 255, 0.8);
  border-right: 2px dashed rgba(255, 255, 255, 0.8);
  transform: rotate(-3deg);
  z-index: 5;
}

.washi-tape.mint {
  background: rgba(196, 241, 190, 0.6);
  transform: rotate(2deg);
  left: auto;
  right: 40px;
}

/* --- LIGHTBOX MODAL PREVIEW --- */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #475569;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #FFE4E6;
  color: #BE185D;
}

@media (max-width: 768px) {
  .ipad-mockup {
    padding: 10px;
    border-radius: 24px;
  }
  .ipad-screen {
    border-radius: 16px;
  }
  .showcase-inner-grid {
    grid-template-columns: 1fr;
  }
  .floating-card {
    display: none;
  }
}

/* --- PRODUCT IMAGE SHOWCASE & LIGHTBOX STYLES --- */
.product-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-image-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 117, 143, 0.22);
}

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

.product-image-container:hover .product-img {
  transform: scale(1.02);
}

.product-image-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  color: #BE185D;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.hero-product-mockup {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 242, 0.8));
  box-shadow: 
    0 30px 60px -15px rgba(255, 117, 143, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.4s ease;
}

.hero-product-mockup:hover {
  transform: translateY(-6px);
}

.hero-product-mockup .product-img {
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.zoom-overlay-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.hero-product-mockup:hover .zoom-overlay-hint {
  opacity: 1;
}

.lightbox-img-full {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-md);
}
