/* cAri custom styles - complements Tailwind */

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1rem;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.coord-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f1f5f9;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.15s ease;
}
.coord-input::placeholder { color: #64748b; }
.coord-input:focus {
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px -8px rgba(99, 102, 241, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.8); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }

.info-tile {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.625rem;
  padding: 0.5rem 0.75rem;
  min-height: 56px;
}
.info-tile-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}
.info-tile-value {
  font-weight: 600;
  font-size: 0.875rem;
  color: #f1f5f9;
  line-height: 1.2;
  word-break: break-word;
}

.info-tile-code {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.info-tile-code:empty { display: none; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}
.copy-btn:hover { background: rgba(255,255,255,0.15); color: #e2e8f0; border-color: rgba(255,255,255,0.2); }
.copy-btn:active { transform: scale(0.92); }

#map {
  background: #0f172a;
  z-index: 1;
}

.leaflet-container {
  font-family: 'Inter', system-ui, sans-serif;
}

.leaflet-popup-content-wrapper {
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.625rem;
}
.leaflet-popup-tip { background: #0f172a; }

.marker-pulse {
  position: relative;
  width: 22px;
  height: 22px;
}
.marker-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ef4444;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
  z-index: 2;
}
.marker-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  animation: pulse-ring 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: 1;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.toast-show {
  animation: toast-in 0.25s ease-out, toast-out 0.3s ease-in 1.6s forwards;
}
@keyframes toast-in {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
@keyframes toast-out {
  to { transform: translate(-50%, 20px); opacity: 0; }
}

.fade-in {
  animation: fade-in 0.3s ease-out;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.75) !important;
  color: #cbd5e1 !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: #818cf8 !important; }