/* decred.zip — styles
   Dark theme with a blue→teal accent (HSL triplets below). */

:root {
  --background: 222 47% 5%;
  --foreground: 210 40% 98%;
  --card: 222 47% 8%;
  --card-to: 222 47% 10%;
  --border: 217 32% 17%;
  --muted: 217 32% 17%;
  --muted-foreground: 215 20% 65%;
  --primary: 217 91% 60%;          /* Decred blue  */
  --secondary: 173 80% 40%;        /* Decred teal  */
  --radius: 0.75rem;

  --maxw: 1100px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 30px rgb(0 0 0 / 0.25);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Large blurred background glow blobs (blue + teal) */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.18;
  pointer-events: none;
}
body::before {
  top: -18vw;
  left: -12vw;
  background: hsl(var(--primary));
}
body::after {
  bottom: -22vw;
  right: -14vw;
  background: hsl(var(--secondary));
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Header ---------- */
.site-header {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__logo {
  width: clamp(44px, 8vw, 56px);
  height: clamp(44px, 8vw, 56px);
  border-radius: 14px;
  box-shadow: 0 0 0 1px hsl(var(--border)), 0 10px 30px hsl(var(--primary) / 0.35);
}

.brand__name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__name .tld {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 1rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

/* ---------- Search / filter ---------- */
.toolbar {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.search {
  position: relative;
  width: min(440px, 100%);
}
.search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  font: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--card) / 0.7);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.1rem);
  backdrop-filter: blur(12px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search input::placeholder { color: hsl(var(--muted-foreground)); }
.search input:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.7);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

/* ---------- Sections ---------- */
main { padding-bottom: 4rem; }

.section { margin-top: clamp(2rem, 5vw, 3rem); }

.section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
}
.section__title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
}
.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, hsl(var(--border)), transparent);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--card-to)));
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.card::after {
  /* subtle gradient sheen on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, hsl(var(--primary) / 0.08), hsl(var(--secondary) / 0.06));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.55);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 40px hsl(var(--primary) / 0.18);
}
.card:hover::after { opacity: 1; }
.card:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}
.card__arrow {
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
  flex: none;
  transition: transform 0.18s ease, color 0.18s ease;
}
.card:hover .card__arrow {
  color: hsl(var(--primary));
  transform: translate(2px, -2px);
}
.card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
}

.no-results {
  display: none;
  color: hsl(var(--muted-foreground));
  text-align: center;
  padding: 2rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}
.brand--sm { gap: 0.55rem; }
.brand__logo--sm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px hsl(var(--border)), 0 6px 18px hsl(var(--primary) / 0.3);
}
.brand__name--sm {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-footer__tagline { margin: 0.4rem 0 0; max-width: 48ch; }
.site-footer__meta {
  margin: 0;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground) / 0.7);
}
.count { color: hsl(var(--foreground)); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover { transform: none; }
}
