/* Sticky Desk — Physical Memo Presentation Mode */

#sticky-modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
}

#sticky-modal-container.active {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.sticky-desk-note {
  background-color: var(--k-sticky-bg);
  background-image: 
    linear-gradient(rgba(250, 204, 21, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.08) 1px, transparent 1px);
  background-size: 100% 28px, 28px 100%;
  border: 1px solid var(--k-sticky-border);
  box-shadow: var(--k-sticky-shadow), 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 2px 2px 6px 6px;
  position: relative;
  overflow: hidden;
  color: var(--k-sticky-text);
  animation: stickyAppear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

@keyframes stickyAppear {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tape accent at top center */
.sticky-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: rgba(255, 255, 255, 0.65);
  border-left: 2px dashed rgba(200, 180, 100, 0.4);
  border-right: 2px dashed rgba(200, 180, 100, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 2;
  pointer-events: none;
}

/* Top Drag / Header Bar */
.sticky-note-header {
  background: var(--k-sticky-header);
  border-bottom: 1px dashed #eab308;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  touch-action: none;
}

.sticky-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #713f12;
}

.sticky-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-ctrl-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 12px;
  color: #854d0e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sticky-ctrl-btn:hover {
  background: rgba(234, 179, 8, 0.25);
  border-color: #ca8a04;
  color: #713f12;
}

/* Sticky Scrollable Body */
.sticky-note-body {
  padding: 22px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--k-font-sticky);
}

.sticky-note-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #422006;
  border-bottom: 2px solid rgba(234, 179, 8, 0.35);
  padding-bottom: 8px;
}

.sticky-note-content {
  font-size: 17px;
  line-height: 1.7;
  color: #451a03;
}

.sticky-note-content p {
  margin-bottom: 0.8em;
}

.sticky-note-content blockquote {
  border-left: 3px solid #ca8a04;
  padding-left: 12px;
  margin: 10px 0;
  font-style: italic;
}

/* Mounted Photo in Sticky Desk */
.sticky-image-frame {
  background: #ffffff;
  padding: 8px 8px 14px 8px;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(66, 32, 6, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  margin: 10px 0;
  max-width: 100%;
}

.sticky-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* Sticky Note Footer Signature */
.sticky-note-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(234, 179, 8, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #713f12;
}

.sticky-stamp {
  font-weight: 700;
  border: 1.5px solid #a16207;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #854d0e;
  transform: rotate(-2deg);
}

/* Mobile sticky presentation */
/* Mobile sticky presentation (< 768px) */
@media (max-width: 767px) {
  #sticky-modal-container.active {
    padding: 0;
  }

  .sticky-desk-note {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    position: fixed !important;
    transform: none !important;
    margin: 0 !important;
  }

  .sticky-note-header {
    padding-top: calc(8px + var(--k-safe-top));
    padding-bottom: 8px;
  }

  .sticky-ctrl-btn {
    min-height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .sticky-note-body {
    padding: 16px 18px calc(24px + var(--k-safe-bottom)) 18px;
  }

  .sticky-note-title {
    font-size: 20px;
  }

  .sticky-note-content {
    font-size: 16px;
  }
}
