/* ===============================
   UNIVERSAL SNEAK-PEEK STICKY NOTES MODULE
   =============================== */

:root {
  --note-yellow: #ffea74;
  --note-green: #c9f6bc;
  --note-shadow: 0 10px 24px rgba(15,23,42,0.18);
}

/* Desktop: Side peek notes */
@media (min-width: 1025px) {
  .sticky-notes-mobile { display: none !important; }
}

/* Tablet: Hide both versions */
@media (min-width: 768px) and (max-width: 1024px) {
  .sticky-notes-container { display: none !important; }
  .sticky-notes-mobile { display: none !important; }
}

/* Mobile: Hide desktop peek, show mobile cards */
@media (max-width: 767px) {
  .sticky-notes-container { display: none !important; }
}

.sticky-notes-container {
  position: fixed;
  top: 140px;
  left: 0;
  width: 100vw;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.3s ease;
}

/* Hide when near footer */
.sticky-notes-container.near-footer {
  opacity: 0;
  pointer-events: none;
}

.sticky-note {
  width: 260px;
  padding: 14px 16px 16px 16px;
  border-radius: 10px;
  background: var(--note-yellow);
  box-shadow: var(--note-shadow);
  line-height: 1.35;
  color: #3a3320;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.35s ease;
  position: absolute;
}

/* LEFT */
.sticky-note-left {
  left: 0;
  transform: translateX(-100%);
  background: var(--note-yellow);
}
.sticky-note-left:hover {
  transform: translateX(12px);
}

/* RIGHT */
.sticky-note-right {
  right: 0;
  transform: translateX(95%);
  background: var(--note-green);
}
.sticky-note-right:hover {
  transform: translateX(-12px);
}

/* PEEK TAB */
.sticky-note::after {
  content: attr(data-tab);
  position: absolute;
  top: 30px;
  width: 34px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  color: #1f2933;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.sticky-note-left::after {
  right: -34px;
  background: var(--note-yellow);
}

.sticky-note-right::after {
  left: -34px;
  background: var(--note-green);
}

/* Tape */
.sticky-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 22px;
  width: 64px;
  height: 18px;
  background: rgba(255,255,255,0.6);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(15,23,42,0.16);
  transform: rotate(-4deg);
}

/* TEXT */
.note-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.note-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.note-body {
  font-size: 0.86rem;
  opacity: 0.85;
  margin-bottom: 10px;
}

.note-link {
  font-size: 0.86rem;
  font-weight: 700;
}

/* ===============================
   MOBILE STICKY NOTES (FULL VISIBLE)
   =============================== */

.sticky-notes-mobile {
  display: none;
  padding: 1.5rem 1rem 2rem 1rem;
  background: var(--bg, #f6f8fa);
}

@media (max-width: 767px) {
  .sticky-notes-mobile {
    display: block;
  }
}

.mobile-notes-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

.mobile-note {
  flex: 1;
  max-width: 48%;
  padding: 18px 14px 20px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.15);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  animation: gentleFloat 3s ease-in-out infinite;
}

/* Beginner - Left - Yellow - Tilt left */
.mobile-note-beginner {
  background: var(--note-yellow);
  transform: rotate(-3deg);
  animation-delay: 0s;
}

/* Pro - Right - Green - Tilt right */
.mobile-note-pro {
  background: var(--note-green);
  transform: rotate(3deg);
  animation-delay: 1.5s;
}

/* Tape effect */
.mobile-note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(15,23,42,0.12);
}

/* Tap effect */
.mobile-note:active {
  transform: scale(0.98) rotate(-3deg);
  box-shadow: 0 4px 12px rgba(15,23,42,0.2);
}

.mobile-note-pro:active {
  transform: scale(0.98) rotate(3deg);
}

/* Text styles */
.mobile-note-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #1f2933;
}

.mobile-note-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #1f2933;
}

.mobile-note-body {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #3a3320;
  opacity: 0.9;
}

.mobile-note-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fc7306;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Gentle float animation */
@keyframes gentleFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0px); }
  50% { transform: rotate(-3deg) translateY(-3px); }
}

.mobile-note-pro {
  animation-name: gentleFloatRight;
}

@keyframes gentleFloatRight {
  0%, 100% { transform: rotate(3deg) translateY(0px); }
  50% { transform: rotate(3deg) translateY(-3px); }
}

/* Stack for very small screens */
@media (max-width: 360px) {
  .mobile-notes-grid {
    flex-direction: column;
    gap: 16px;
  }

  .mobile-note {
    max-width: 100%;
  }

  .mobile-note-beginner {
    transform: rotate(-2deg);
  }

  .mobile-note-pro {
    transform: rotate(2deg);
  }
}
