/* ============================================================
   PLUG GODS — Directory Site
   Mobile-first · Light (default) · Gold accent · Dark optional
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #ecece9;
  --border: #dddcd7;
  --gold: #b8860b;
  --gold-fill: #f0c014;
  --gold-dim: #9a7209;
  --text: #141414;
  --muted: #5c5c5c;
  --muted-2: #787878;
  --ink: #0a0a0a;
  --desc: #3f3f3f;
  --header-bg: rgba(245, 245, 243, 0.92);
  --hero-glow: rgba(240, 192, 20, 0.2);
  --card-hover-border: #c8c7c1;
  --card-shadow: 0 14px 32px rgba(20, 20, 20, 0.1);
  --premium-top: #fff6d6;
  --radius: 14px;
  --radius-sm: 8px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --border: #2a2a2a;
  --gold: #f5c518;
  --gold-fill: #f5c518;
  --gold-dim: #b8940e;
  --text: #ffffff;
  --muted: #9a9a9a;
  --muted-2: #6f6f6f;
  --ink: #0a0a0a;
  --desc: #cfcfcf;
  --header-bg: rgba(10, 10, 10, 0.88);
  --hero-glow: rgba(245, 197, 24, 0.1);
  --card-hover-border: #3d3d3d;
  --card-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --premium-top: #1a1705;
}

* { 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: var(--header-bg);
  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-fill); color: var(--ink) !important; }

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

.hero {
  padding: 56px 18px 48px;
  text-align: center;
  background:
    radial-gradient(600px 260px at 50% -40px, var(--hero-glow), 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: var(--ink);
  background: var(--gold-fill);
  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-fill);
  border-color: var(--gold-fill);
  color: var(--ink);
}

/* ============ 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: var(--card-hover-border);
  box-shadow: var(--card-shadow);
}

/* Premium / featured cards — gold-trimmed */
.card.premium {
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, var(--premium-top) 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;
}

.real-badge {
  padding: 3px 8px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-dim);
  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: var(--desc);
  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: var(--ink);
  background: var(--gold-fill);
  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%, var(--hero-glow), 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: var(--ink);
  background: var(--gold-fill);
  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: var(--ink);
  background: var(--gold-fill);
  border-color: var(--gold-fill);
}

.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: var(--ink);
  background: var(--gold-fill);
  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);
}



/* ============ THEME TOGGLE ============ */

.theme-toggle {
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============ 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); }
}


/* ============ IN-SITE WEBSITE VIEWER ============ */

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-fill);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.visit-btn:hover { filter: brightness(0.97); }
.visit-btn[hidden] { display: none !important; }

.site-link {
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-viewer[hidden] { display: none !important; }

.site-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.site-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
}

.site-viewer-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.18);
  animation: viewerIn 0.22s ease;
}

@keyframes viewerIn {
  from { transform: translateX(18px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.site-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-viewer-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-viewer-meta strong {
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-viewer-url {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-viewer-ext,
.site-viewer-close {
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.site-viewer-ext:hover,
.site-viewer-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

.site-viewer-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--surface-2);
}

.site-viewer-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.site-viewer-fallback[hidden] { display: none !important; }

.site-viewer-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  background: var(--bg);
}

body.viewer-open { overflow: hidden; }

@media (max-width: 719px) {
  .site-viewer { align-items: flex-end; }
  .site-viewer-panel {
    width: 100%;
    height: min(92vh, 100%);
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    animation: viewerUp 0.22s ease;
  }
  @keyframes viewerUp {
    from { transform: translateY(24px); opacity: 0.7; }
    to { transform: translateY(0); opacity: 1; }
  }
}

.card-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center;}
