/* LOCALIZE.CSS — Location-Aware Localization V2.4 */

/* ── Location Consent Toast ───────────────────────────────────── */
.nx-loc-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9250;
  background: var(--panel, #181c25);
  border: 1px solid var(--accent, #6366f1);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  max-width: 330px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  color: var(--text, #e2e8f0);
  animation: nx-loc-in 0.35s ease-out;
}
.nx-loc-toast__title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--accent, #6366f1);
}
.nx-loc-toast__body {
  margin-bottom: 0.7rem;
  line-height: 1.45;
}
.nx-loc-toast__actions {
  display: flex;
  gap: 0.5rem;
}
.nx-loc-toast__actions button {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border, #2d3348);
  background: var(--surface, #1e2233);
  color: var(--text, #e2e8f0);
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.nx-loc-toast__actions button:hover {
  background: var(--accent, #6366f1);
  color: #fff;
}
.nx-loc-toast__close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--muted, #64748b);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* ── Region Suggestion Toast ──────────────────────────────────── */
.nx-loc-suggest {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9240;
  background: var(--panel, #181c25);
  border: 1px solid var(--border, #2d3348);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  max-width: 310px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.86rem;
  color: var(--text, #e2e8f0);
  animation: nx-loc-in 0.3s ease-out;
}
.nx-loc-suggest__title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.nx-loc-suggest__region {
  color: var(--accent, #6366f1);
  font-weight: 500;
}
.nx-loc-suggest__actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.nx-loc-suggest__actions button {
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--border, #2d3348);
  background: var(--surface, #1e2233);
  color: var(--text, #e2e8f0);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.nx-loc-suggest__actions button:hover {
  background: var(--accent, #6366f1);
  color: #fff;
}

/* ── Animation ────────────────────────────────────────────────── */
@keyframes nx-loc-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nx-loc-toast,
  .nx-loc-suggest { animation: none; }
}

/* ── Light Theme ──────────────────────────────────────────────── */
[data-theme="aurora-light"] .nx-loc-toast,
[data-theme="solar-light"] .nx-loc-toast,
[data-theme="aurora-light"] .nx-loc-suggest,
[data-theme="solar-light"] .nx-loc-suggest {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
