/* ========================= */
/* Interactive Canvas Marquee*/
/* ========================= */

.selection-marquee {
  position: fixed;
  border: 1px dashed var(--accent-color);
  background-color: rgba(200, 90, 50, 0.05); /* Extremely subtle terracotta tint */
  pointer-events: none; /* Allows the user to click through it later */
  z-index: 9998; /* Sits right beneath your custom crosshair */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Active while drawing or holding a quote */
.selection-marquee.is-active,
.selection-marquee.is-holding {
  opacity: 1;
}

/* The Quote inside the box */
.marquee-quote {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
  padding: 1rem;
  opacity: 0;
  transform: translateY(10px); /* Starts slightly lower for a glide-up effect */
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.selection-marquee.is-holding .marquee-quote {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* Discoverability Tooltip   */
/* ========================= */

/* This attaches to your existing #crosshair-cursor */
.cursor-tooltip {
  position: absolute;
  top: 15px;
  left: 15px;
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Fades in when hovered over empty space */
#crosshair-cursor.can-draw .cursor-tooltip {
  opacity: 0.9;
}

/* Prevents messy text highlighting while dragging */
body.is-drawing {
  user-select: none;
  -webkit-user-select: none;
}


/* Make the box clickable ONLY when a quote is actively held */
.selection-marquee.is-holding {
  pointer-events: auto; 
}

/* Arrange the quote and the button vertically */
.marquee-quote {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 1.5rem;
}

/* The Secret System Button */
.marquee-about-btn {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg-color); 
  background-color: var(--text-color); 
  padding: 0.6rem 1rem;
  text-decoration: none;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: auto; /* Ensures the button itself is clickable */
}

/* Animate the button in alongside the quote */
.selection-marquee.is-holding .marquee-about-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s; /* Slight delay so it drops in after the text */
}

.marquee-about-btn:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  transform: translateY(-2px);
}
