/* ============================================================
   PLUG GODS — Directory Site
   Mobile-first · Dark · Gold accent
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --border: #2a2a2a;
  --gold: #f5c518;
  --gold-dim: #b8940e;
  --text: #ffffff;
  --muted: #9a9a9a;
  --muted-2: #6f6f6f;
  --radius: 14px;
  --radius-sm: 8px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { vertical-align: middle; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.85em;
}

.gold { color: var(--gold); }

/* ============ STICKY HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 18px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.header-nav a { color: var(--text); }
.header-nav a:hover { color: var(--gold); text-decoration: none; }

.nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold) !important;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--gold); color: #0a0a0a !important; }

/* ============ HERO ============ */

.hero {
  padding: 56px 18px 48px;
  text-align: center;
  background:
    radial-gradient(600px 260px at 50% -40px, rgba(245, 197, 24, 0.10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 auto 26px;
  max-width: 480px;
  color: var(--muted);
  font-size: 1.02rem;
}

.search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 15px 18px 15px 46px;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#search-input::placeholder { color: var(--muted-2); font-weight: 500; }

#search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18);
}

/* ============ SECTIONS ============ */

.section { padding: 34px 18px; }

.section-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gold-pill {
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #0a0a0a;
  background: var(--gold);
  border-radius: 999px;
  white-space: nowrap;
}

.count { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* ============ CATEGORY CHIPS ============ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip:hover { border-color: var(--gold); color: var(--gold); }

.chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}

/* ============ GRIDS ============ */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ============ LISTING CARDS ============ */

.card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #3d3d3d;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

/* Premium / featured cards — gold-trimmed */
.card.premium {
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, #1a1705 0%, var(--surface) 55%);
  box-shadow: inset 0 1px 0 rgba(245, 197, 24, 0.25), 0 6px 22px rgba(245, 197, 24, 0.06);
}
.card.premium:hover { border-color: var(--gold); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cat-badge {
  padding: 4px 10px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  white-space: nowrap;
}

.demo-badge {
  padding: 3px 8px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card .hood {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.card .desc {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #cfcfcf;
  flex-grow: 1;
}

.card .meta {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.6;
}
.card .meta a { color: var(--gold); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.claim-btn {
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #0a0a0a;
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.35);
}

.claim-btn:active { transform: translateY(0); }

/* ============ EMPTY / ERROR STATES ============ */

.empty {
  padding: 46px 18px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 900; }
.empty-sub { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ============ FOOTER ============ */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(245, 197, 24, 0.08), transparent 70%),
    var(--bg);
}

.footer-cta {
  padding: 48px 18px 34px;
  text-align: center;
}

.footer-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
}

.footer-cta p {
  margin: 0 auto 22px;
  max-width: 420px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--gold);
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 197, 24, 0.3);
}

.city-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 18px;
  border-top: 1px solid var(--border);
}

.city-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.city {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.city em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.city.active {
  color: #0a0a0a;
  background: var(--gold);
  border-color: var(--gold);
}

.city.soon { cursor: default; }

.footer-note {
  margin: 0;
  padding: 0 18px 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.footer-copy {
  margin: 0;
  padding: 0 18px 26px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* ============ TOAST ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 100;
  max-width: min(92vw, 420px);
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--gold);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ BREAKPOINTS ============ */

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 72px; }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .site-header { padding: 14px 28px; }
  .section { padding: 44px 28px; }
  .hero { padding: 88px 28px 64px; }
}

@media (min-width: 1200px) {
  .section { padding-left: calc((100vw - 1100px) / 2); padding-right: calc((100vw - 1100px) / 2); }
  .site-header { padding-left: calc((100vw - 1100px) / 2); padding-right: calc((100vw - 1100px) / 2); }
}
