/* Money Sticky Wall Styles */
.sticky-wall-section {
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  background: rgba(251, 247, 240, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  padding-top: var(--nav-height);
  backdrop-filter: blur(2px);
}

.sticky-wall-section.hidden {
  opacity: 0;
  transform: translateY(-50px);
  pointer-events: none;
}

.sticky-wall-section.removed {
  display: none;
}

.sticky-wall-container {
  position: relative;
  width: 90%;
  max-width: 90rem;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: rgba(254, 252, 247, 0.85);
}

.sticky-notes {
  position: relative;
  width: 100%;
  height: 100%;
}

.sticky-note {
  position: absolute;
  padding: 0.4rem 0.3rem;
  border-radius: 0.375rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  width: 11rem;
  height: 11rem;
  opacity: 0;
  animation: fadeInNote 0.5s ease forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@keyframes fadeInNote {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sticky-note-tape {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.125rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 3rem;
  height: 0.5rem;
}

.sticky-note-text {
  white-space: pre-line;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #1c1917;
  font-size: 0.85rem;
  margin: 0;
  overflow-wrap: break-word;
  padding: 0.15rem;
}

/* Sticky note colors */
.note-amber-300 { background-color: #fcd34d; }
.note-teal-200 { background-color: #99f6e4; }
.note-sky-200 { background-color: #bae6fd; }
.note-amber-200 { background-color: #fde68a; }
.note-rose-300 { background-color: #fda4af; }
.note-amber-400 { background-color: #fbbf24; }
.note-cyan-200 { background-color: #a5f3fc; }
.note-yellow-200 { background-color: #fef08a; }
.note-emerald-200 { background-color: #a7f3d0; }

/* Receipts group */
.receipts-group {
  position: absolute;
  left: 85%;
  top: 15%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: 180px;
  height: 180px;
  opacity: 0.8;
}

.receipt {
  position: absolute;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.receipt-1 {
  width: 140px;
  left: -6px;
  top: 2px;
  transform: rotate(-18deg);
}

.receipt-2 {
  width: 160px;
  left: 8px;
  top: -6px;
  transform: rotate(6deg);
}

.receipt-3 {
  width: 140px;
  left: 20px;
  top: 6px;
  transform: rotate(18deg);
}

/* Calculator */
.calculator {
  position: absolute;
  right: 1.5rem;
  top: 25%;
  width: 10rem;
  z-index: 8;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
  opacity: 0.9;
}

/* Sticky controls */
.sticky-controls {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 120;
}

.shuffle-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: #1c1917;
  color: white;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.shuffle-btn:hover {
  background: #292524;
  transform: scale(1.05);
}

.shuffle-btn:active {
  transform: scale(0.95);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  text-align: center;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-indicator:hover {
  transform: translateX(-50%) scale(1.1);
  opacity: 0.8;
}

.scroll-arrow {
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.scroll-text {
  font-size: 0.875rem;
  color: var(--brand);
  margin: 0;
  font-weight: 500;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Hero section adjustment when sticky wall is visible */
.hero-section {
  margin-top: 0;
  transition: margin-top 0.3s ease;
  position: relative;
  z-index: 1;
}

body.sticky-wall-active .hero-section {
  margin-top: 0;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--nav-height));
  background: var(--bg);
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sticky-wall-container {
    aspect-ratio: 16 / 9;
  }
  
  .sticky-note {
    width: 9rem;
    height: 9rem;
    padding: 0.3rem 0.25rem;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .sticky-note-text {
    font-size: 0.75rem;
    line-height: 1.1;
  }
  
  .calculator {
    width: 8rem;
    top: 30%;
  }
  
  .receipts-group {
    width: 140px;
    height: 140px;
    left: 88%;
    top: 18%;
  }
}

/* Hide sticky wall completely on mobile */
@media (max-width: 768px) {
  .sticky-wall-section {
    display: none;
  }
}

