:root {
  /* Global palette – aligned with NerdQaxe copper pages */
  --bg: #020617;
  --panel: #020617;
  --card: #020617;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --accent: #f97316;
  --ring: rgba(148, 163, 255, 0.35);
  --radius: 18px;
}

/* Reset / base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
    sans-serif;
}

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

/* Layout wrapper */
.wrap {
  max-width: 1120px;
  margin: 32px auto 40px;
  padding: 0 20px 24px;
}

/* ---------- TOP BAR / LOGO / NAV ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* The injected nav container at the top of the page */
#site-nav {
  margin-bottom: 24px; /* <<< NEW: space between nav and "Hey, I'm Mike" card */
}

/* Left side (avatar + brand) */
header,
.topbar-left {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.6);
  background: #020617;
  object-fit: cover;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 2px;
}


/* Right side nav container */
.topbar-right,
.rightlinks {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Shared pill style (anchors + Mining button) */
.topbar-right .nav-link,
.rightlinks a,
.nav-dropdown-toggle {
  padding: 6px 11px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  cursor: pointer;
  min-width: 120px;   /* makes all pills visually similar on desktop */
  text-align: center;
}


.topbar-right .nav-link:hover,
.rightlinks a:hover,
.nav-dropdown-toggle:hover {
  color: #f9fafb;
  border-color: rgba(248, 113, 113, 0.7);
}

/* Remove default button chrome for dropdown toggle */
.nav-dropdown-toggle {
  font: inherit;
  background: transparent;
  border-radius: 999px;
}

/* Caret */
.nav-caret {
  font-size: 0.75em;
}

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
}

/* Dropdown menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 190px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 0.75rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.9);
  padding: 0.3rem 0;
  display: none;
  z-index: 40;
}

.nav-dropdown-menu.open {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(148, 163, 184, 0.16);
}

/* ---------- MOBILE NAV (REPLACES OLD 640px BLOCK) ---------- */
/* 2×2 grid, Mining/Wallets same width, dropdown centered */

@media (max-width: 768px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-right,
  .rightlinks {
    width: 100%;
    justify-content: center;
  }

  /* Home, Blog, Mining (dropdown), Wallets = two per row */
  .topbar-right > .nav-link,
  .topbar-right > .nav-dropdown {
    flex: 0 0 calc(50% - 0.75rem);
  }

  /* Pills fill their slot; ignore desktop min-width */
  .topbar-right .nav-link,
  .nav-dropdown-toggle {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Center dropdown under Mining and keep it on-screen */
  .nav-dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: calc(100vw - 2rem);
  }
}

/* ---------- HEADINGS ---------- */

h1 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.4rem);
  margin: 0 8px 0 0;
}

/* ---------- MAIN PANELS / CARDS ---------- */

/* Main intro panel */
.panel {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 255, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(248, 113, 113, 0.1), transparent 60%),
    var(--panel);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  margin-bottom: 18px;
}

.panel p {
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
}

/* Card grid (Latest on X + Latest blog) */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Generic card block */
.card {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 255, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.85), transparent 60%),
    var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 16px 16px 18px;
}

.card h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 8px;
}

/* Button style – match CTA from NerdQaxe page */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #0b1020;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px rgba(248, 113, 113, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(248, 113, 113, 0.35);
}

/* Muted text + post block */
.muted {
  color: var(--muted);
}

.post {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
}

.post h1,
.post h2,
.post h3 {
  margin-top: 1.1em;
}

/* Tag / post-list (used on /posts) */
.tag {
  display: inline-block;
  font-size: 12px;
  color: #ffd8c7;
  background: rgba(239, 106, 58, 0.12);
  border: 1px solid rgba(239, 106, 58, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}

.post-list .item {
  padding: 12px 0;
  border-bottom: 1px solid var(--ring);
}

.post-list .item:last-child {
  border-bottom: none;
}

/* Footer */
.foot {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

/* Contact form (used on old pages – kept so nothing breaks) */
.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  background: #020617;
  border: 1px solid var(--ring);
  color: #e6e9ef;
  border-radius: 10px;
  padding: 10px;
}

/* ---------- ORIGIN CHIPS (CANONICAL) ---------- */

.origin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  margin-bottom: 1.4rem;
}

.origin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #e5e7eb;
  background: transparent;
}

/* DEFAULT (no color class) = GREEN */
.origin-chip .chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* GREEN (explicit class, for pages that use .green) */
.origin-chip .chip-dot.green {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* ORANGE */
.origin-chip .chip-dot.orange {
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
}

/* BLUE */
.origin-chip .chip-dot.blue {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}
/* Use this on any page to force links into brand-blue */
.link-blue {
  color: #38bdf8 !important;
  text-decoration: none;
  font-weight: 500;
}

.link-blue:hover {
  text-decoration: underline;
}

