/* ─────────────────────────────────────────────────────────────────────────
   dstylesheet.css  —  Dgathering global styles
   ───────────────────────────────────────────────────────────────────────── */

/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(100, 149, 237, 0.38)),
    url('../images/name.png') center center / cover fixed;
  color: #fff;
  padding: 20px;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
.navbar {
  background: transparent;
  height: 48px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  border-bottom: none;
}

.nav-logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.5px;
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-logo:hover { color: #7dd3fc; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #38bdf8; }

.signin-btn {
  background: #38bdf8;
  color: #000 !important;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.signin-btn:hover { background: #7dd3fc !important; }

/* ── Main Container ───────────────────────────────────────────────────── */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 92%;
  max-width: 460px;
  padding-top: 48px; /* offset fixed navbar */
}

/* ── Header / Hero ────────────────────────────────────────────────────── */
h1 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* ── Spinner (inside loading status) ─────────────────────────────────── */
@keyframes sac-spin {
  to { transform: rotate(360deg); }
}

.sac-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: sac-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* ── Results fade-in ──────────────────────────────────────────────────── */
@keyframes sac-fadeup {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sac-results li {
  animation: sac-fadeup 0.2s ease both;
}

/* Stagger each result item */
.sac-results li:nth-child(1)  { animation-delay: 0.00s; }
.sac-results li:nth-child(2)  { animation-delay: 0.04s; }
.sac-results li:nth-child(3)  { animation-delay: 0.08s; }
.sac-results li:nth-child(4)  { animation-delay: 0.12s; }
.sac-results li:nth-child(5)  { animation-delay: 0.16s; }
.sac-results li:nth-child(6)  { animation-delay: 0.20s; }
.sac-results li:nth-child(7)  { animation-delay: 0.24s; }
.sac-results li:nth-child(8)  { animation-delay: 0.28s; }
.sac-results li:nth-child(9)  { animation-delay: 0.32s; }
.sac-results li:nth-child(10) { animation-delay: 0.36s; }

/* ── Secondary navigation (trends / bulk search) ─────────────────────── */
.trends-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 12px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.trends-link a,
.trends-link a:visited {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.trends-link a:hover { color: #38bdf8; }

.trends-link-sep {
  color: rgba(255, 255, 255, 0.3);
}

.trends-link-soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.45;
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.main-footer {
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.main-footer p { margin: 0; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 420px) {
  h1 { font-size: 1.9rem; }
  .subtitle { font-size: 0.88rem; }
}