@import "./destination-layout.css";
@import "./experience-cards.css";
@import "./radar-dashboard.css";

:root {
  --xscope-bg: #0b0f1a;
  --xscope-surface: #141b2e;
  --xscope-surface-strong: #121c31;
  --xscope-text: #ffffff;
  --xscope-muted: #9aa3b2;
  --xscope-primary: #6e7cff;
  --xscope-accent: #00d4ff;
  --xscope-border: #23324d;
  --xscope-success: #34d399;
  --xscope-warning: #f59e0b;
  --xscope-danger: #f87171;
  --radius-sm: 8px;
  --radius-md: 14px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --container-width: 1200px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #16203a 0%, var(--xscope-bg) 55%);
  background-attachment: fixed;
  color: var(--xscope-text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; margin-bottom: var(--space-2); }
h2 { font-size: 1.5rem; margin-bottom: var(--space-1); }
h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--xscope-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input[type="range"],
input[type="text"],
input[type="search"] {
  font-family: inherit;
}

button {
  background: var(--xscope-surface-strong);
  border: 1px solid var(--xscope-border);
  color: var(--xscope-text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  border-color: var(--xscope-accent);
  color: var(--xscope-accent);
}

input[type="text"],
input[type="search"] {
  background: #0f172a;
  border: 1px solid var(--xscope-border);
  color: var(--xscope-text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  width: 100%;
}

input[type="text"]:focus,
input[type="search"]:focus {
  outline: 2px solid var(--xscope-accent);
  outline-offset: 1px;
  border-color: var(--xscope-accent);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--xscope-accent);
}

/* Layout primitives */

.container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2);
}

.card {
  background: var(--xscope-surface-strong);
  border: 1px solid var(--xscope-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  margin-bottom: var(--space-2);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.12);
  color: var(--xscope-accent);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.badge--food {
  background: rgba(245, 158, 11, 0.12);
  color: var(--xscope-warning);
  border-color: rgba(245, 158, 11, 0.35);
}

.badge--night {
  background: rgba(110, 124, 255, 0.14);
  color: var(--xscope-primary);
  border-color: rgba(110, 124, 255, 0.4);
}

.badge--attraction {
  background: rgba(52, 211, 153, 0.12);
  color: var(--xscope-success);
  border-color: rgba(52, 211, 153, 0.35);
}

/* Status pills: radar health, provider states, data loading */

.status-ok,
.status-healthy,
.status-degraded,
.status-watch,
.status-critical,
.status-loading,
.status-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-ok,
.status-healthy {
  color: var(--xscope-success);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
}

.status-degraded,
.status-watch {
  color: var(--xscope-warning);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
}

.status-critical {
  color: var(--xscope-danger);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
}

.status-loading {
  color: var(--xscope-accent);
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
}

.status-disabled {
  color: var(--xscope-muted);
  background: rgba(154, 163, 178, 0.08);
  border-color: var(--xscope-border);
}

.data-status-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--xscope-muted);
}

/* Homepage trust links + CTA */

.trust-links {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.trust-links li {
  font-size: 0.9rem;
  color: var(--xscope-muted);
}

.dashboard-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Utility spacing */

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }

/* Responsive */

@media (max-width: 720px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .container { width: calc(100% - 1.5rem); }
  .grid { grid-template-columns: 1fr; }
  .dashboard-cta { flex-direction: column; align-items: stretch; }
}
