/* ============================================================
   PowerPlatform.wiki — Shared Theme
   ============================================================ */

/* Design tokens */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2128;
  --border: #30363d;
  --accent: #2f81f7;
  --accent2: #58a6ff;
  --accent-glow: rgba(47,129,247,0.15);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --green: #3fb950;
  --yellow: #d29922;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

/* Nav */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent2);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--text-muted); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.footer-built { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.footer-share { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}
.footer-icon-btn svg { width: 9px; height: 9px; fill: currentColor; }
.footer-icon-btn:hover { border-color: var(--accent); color: var(--text); }
