/* Page Discovery Notification - Gaming-style achievement notification */

.page-discovery-notification {
  position: fixed;
  top: 250px;
  left: 20px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 4px;
  padding: 20px 40px;
  min-width: 200px;
  max-width: 355px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* Animation setup - slides down and out from nav */
  transform: translateY(-150%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

/* Active state - slides down from nav */
.page-discovery-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Hide state - slides back up behind nav */
.page-discovery-notification.hide {
  transform: translateY(-150%);
  opacity: 0;
}

/* Content wrapper */
.page-discovery-notification-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* "DISCOVERED" text */
.discovered-text {
  font-family: "usual", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #0033a0;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Page name text */
.page-name-text {
  font-family: "bitcount-prop-single-square", monospace, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0033a0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* "LEVEL UP!" text with icon */
.level-up-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "bitcount-prop-single-square", monospace, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #000000;
  text-transform: uppercase;
}

/* Level up icon (star/badge) */
.level-up-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ffdc00;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: levelUpPulse 2s ease-in-out infinite;
}

/* Pulse animation for the icon */
@keyframes levelUpPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Test button (for development/testing) */
.page-discovery-test-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  padding: 10px 16px;
  background: #ffdc00;
  border: 2px solid #1b365d;
  border-radius: 4px;
  font-family: "Usual", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-discovery-test-btn:hover {
  background: #ffd000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-discovery-notification {
    top: 10px;
    left: 10px;
    min-width: 180px;
    max-width: calc(100vw - 20px);
    padding: 12px 16px;
  }

  .page-name-text {
    font-size: 14px;
  }

  .discovered-text {
    font-size: 10px;
  }

  .level-up-text {
    font-size: 9px;
  }

  .level-up-icon {
    width: 10px;
    height: 10px;
  }
}

/* Accessibility - respects reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-discovery-notification {
    transition: opacity 0.3s ease;
    transform: none !important;
  }

  .page-discovery-notification.show {
    opacity: 1;
  }

  .page-discovery-notification.hide {
    opacity: 0;
  }

  .level-up-icon {
    animation: none;
  }
}
