/**
 * ====== PLAN D: FINAL LASER TESSERACT STYLES ======
 * CSS for the iframe-embedded tesseract animation
 */

/* Wrapper container */
.laser-tesseract-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 1;
  min-height: 0;
}

/* The iframe itself */
.laser-tesseract-iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: none;
  background: transparent;
  pointer-events: none; /* Let clicks pass through to overlay */
}

/* Invisible click overlay for Easter egg */
.easter-egg-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  z-index: 10;
  /* Debug: uncomment to see clickable area */
  /* background: rgba(255, 0, 0, 0.2); */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .laser-tesseract-wrapper {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED EASTER EGG OVERLAY (Hacker Feedback Form)
   ═══════════════════════════════════════════════════════════════════ */

.easter-egg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 9999;
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.easter-egg-overlay.active {
  display: flex;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Back button (top-left) */
.easter-back-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: transparent;
  border: 1px solid var(--primary, #00f3ff);
  color: var(--primary, #00f3ff);
  padding: 0.5rem 1rem;
  font-family: 'Outfit', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.easter-back-btn:hover {
  background: rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Hacker terminal container */
.hacker-terminal {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* Typewriter text */
.typewriter-text {
  color: #00f3ff;
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  min-height: 3rem;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.terminal-cursor {
  display: inline-block;
  width: 12px;
  height: 24px;
  background: #00f3ff;
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Hide cursor when form is visible */
.hacker-feedback-form.visible ~ .terminal-cursor,
.hacker-feedback-form.visible + .hacker-response + .easter-subtitle ~ .terminal-cursor {
  display: none;
}

/* Hidden initially, shown after typewriter completes */
.easter-subtitle {
  color: #666;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.easter-subtitle.visible {
  opacity: 1;
}

/* Feedback form (hidden until typewriter completes) */
.hacker-feedback-form {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.5s ease forwards;
}

.hacker-feedback-form.visible {
  display: flex;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feedback textarea */
.hacker-input {
  width: 100%;
  min-height: 100px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid #00f3ff;
  border-radius: 4px;
  padding: 1rem;
  color: #00f3ff;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
}

.hacker-input:focus {
  border-color: #fff;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hacker-input::placeholder {
  color: rgba(0, 243, 255, 0.4);
}

/* Send button */
.hacker-send-btn {
  background: linear-gradient(135deg, #00f3ff 0%, #00a8ff 100%);
  border: none;
  color: #000;
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.hacker-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.hacker-send-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

/* Response message */
.hacker-response {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hacker-response.visible {
  opacity: 1;
}
