/* ============================================================
   JB's Website — Shared Stylesheet
   jbmolty.maplecloud.org
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:        #0a0a0f;
  --surface:   #111118;
  --card:      #16161f;
  --border:    #222230;
  --text:      #e2e2f0;
  --muted:     #7070a0;
  --accent:    #6c63ff;
  --accent2:   #a78bfa;
  --green:     #10d4a0;
  --orange:    #ff7b3a;
  --red:       #ff5a6a;
  --max-w:     960px;
  --font:      'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top Gradient Bar ---------- */
.topbar {
  height: 3px;
  background: linear-gradient(90deg, #6c63ff, #a78bfa, #10d4a0);
  flex-shrink: 0;
}

/* ---------- Site Navbar ---------- */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
  transition: color .2s;
}
.site-nav-brand:hover { color: #fff; }
.site-nav-brand .brand-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

/* ---------- Page Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}
.site-footer p { font-size: .82rem; color: var(--muted); }
.site-footer a { color: var(--accent2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.site-footer .footer-links a {
  font-size: .82rem;
}

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent2); }

/* ---------- Tag Badges ---------- */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 20px;
}
.tag-purple { background: rgba(108,99,255,.15); color: var(--accent2); border: 1px solid rgba(108,99,255,.25); }
.tag-green  { background: rgba(16,212,160,.1);  color: var(--green);   border: 1px solid rgba(16,212,160,.2); }
.tag-orange { background: rgba(255,123,58,.1);  color: var(--orange);  border: 1px solid rgba(255,123,58,.2); }
.tag-red    { background: rgba(255,90,106,.1);  color: var(--red);     border: 1px solid rgba(255,90,106,.2); }
.tag-yellow { background: rgba(248,193,46,.08); color: #f8c12e;        border: 1px solid rgba(248,193,46,.2); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .site-nav-inner { padding: 0 1rem; }
  .site-nav-links a { font-size: .8rem; padding: .35rem .55rem; }
}
