/* Notify Signup - Tamers of Entropy release notification */

.ns-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 24px;
  background: rgba(0,0,0,0.97);
  border-top: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.ns-container.ns-visible {
  opacity: 1;
  pointer-events: auto;
}

.ns-lang {
  font: 11px Courier, monospace;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
  letter-spacing: 1px;
  user-select: none;
}

.ns-lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font: 11px Courier, monospace;
  cursor: pointer;
  padding: 2px 4px;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.ns-lang-btn:hover {
  color: rgba(255,255,255,0.7);
}

.ns-lang-btn.ns-active {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ns-lang-sep {
  color: rgba(255,255,255,0.2);
  margin: 0 2px;
}

.ns-label {
  font: 15px Courier, monospace;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-bottom: 14px;
  max-width: min(90vw, 520px);
  line-height: 1.4;
}

.ns-form {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: min(90vw, 480px);
  width: 100%;
}

/* Blinking arrow indicators */
.ns-arrow {
  font: bold 16px Courier, monospace;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
  animation: ns-blink 1.2s ease-in-out infinite;
  user-select: none;
}

.ns-arrow-left {
  margin-right: 8px;
}

.ns-arrow-right {
  margin-left: 8px;
}

/* Stop blinking when input is focused */
.ns-form-focused .ns-arrow {
  animation: none;
  opacity: 0.3;
}

@keyframes ns-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.ns-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0;
  min-width: 0;
  transition: border-color 0.2s ease;
}

.ns-input-wrap:focus-within {
  border-color: rgba(255,255,255,0.6);
}

.ns-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font: 15px Courier, monospace;
  padding: 8px 10px;
  outline: none;
  min-width: 0;
}

.ns-input::placeholder {
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

.ns-submit {
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font: bold 15px Courier, monospace;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.ns-submit:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}

.ns-submit:active {
  color: white;
  background: rgba(255,255,255,0.15);
}

.ns-submit:disabled {
  opacity: 0.3;
  cursor: default;
}

.ns-message {
  font: 13px Courier, monospace;
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
  max-width: min(90vw, 520px);
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

.ns-message-error {
  color: rgba(255,100,100,0.9);
}

.ns-message-success {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

.ns-success-state .ns-form {
  display: none;
}

.ns-success-state .ns-label {
  display: none;
}

/* Push Nostr widget up when signup is visible */
.ns-container.ns-visible ~ .nv-widget,
body:has(.ns-container.ns-visible) .nv-widget {
  /* handled via JS for better compat */
}

/* Responsive - small screens */
@media (max-width: 480px) {
  .ns-container {
    padding: 14px 12px 18px;
  }

  .ns-label {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .ns-input {
    font-size: 14px;
    padding: 7px 8px;
  }

  .ns-submit {
    font-size: 14px;
    padding: 7px 10px;
  }

  .ns-arrow {
    font-size: 14px;
  }

  .ns-arrow-left {
    margin-right: 6px;
  }

  .ns-arrow-right {
    margin-left: 6px;
  }
}

/* Very short screens (landscape phones) */
@media (max-height: 500px) and (max-width: 900px) {
  .ns-container {
    padding: 8px 12px 10px;
  }

  .ns-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .ns-lang {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .ns-lang-btn {
    font-size: 10px;
  }

  .ns-input {
    font-size: 13px;
    padding: 5px 6px;
  }

  .ns-submit {
    font-size: 13px;
    padding: 5px 8px;
  }

  .ns-arrow {
    font-size: 13px;
  }
}
