/**
 * Planet Computers — global look & feel (blog template: gradient bg, glass cards, accents).
 * Load after site-typography.css and tailwind.css
 */
:root {
  --pc-bg-a: #0b1422;
  --pc-bg-b: #121a28;
  --pc-bg-c: #0f1520;
  /* Accent cyan (headlines / highlights) + warm orange (CTAs, nav active) */
  --pc-cyan: #4ecdc4;
  --pc-cyan-bright: #5eead4;
  --pc-orange: #e16e1b;
  --pc-orange-bright: #ff8f4c;
  --pc-text: #f8fafc;
  --pc-text-muted: rgba(248, 250, 252, 0.72);
  --pc-surface: rgba(255, 255, 255, 0.06);
  --pc-surface-2: rgba(255, 255, 255, 0.08);
  --pc-border: rgba(255, 255, 255, 0.1);
  --pc-border-strong: rgba(255, 255, 255, 0.16);
  --pc-radius: 16px;
  --pc-radius-pill: 999px;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--pc-text);
  /* Same gradient as blog / KB (fixed so long pages don’t “shift”) */
  background: linear-gradient(180deg, var(--pc-bg-a) 0%, var(--pc-bg-b) 45%, #0c121c 70%, var(--pc-bg-a) 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

body.with-header-pad {
  padding-top: var(--hdr-pad, 92px);
}

/* Surfaces: cards, panels (matches blog list cards) — use .pc-card; do not target generic .card (shop uses it) */
.pc-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
}

.pc-pill,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: var(--pc-radius-pill);
  border: 1px solid var(--pc-border-strong);
  background: var(--pc-surface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Section bands (replaces flat bg-slate-900 stripes on the home page) */
.pc-section-band {
  background: rgba(15, 23, 42, 0.28);
  border-top: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
}

/* Blog-style hero kicker */
.pc-kicker-dot::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pc-orange);
  margin-right: 0.5rem;
  box-shadow: 0 0 0 3px rgba(225, 110, 27, 0.25);
}

/* Accent text (use with Tailwind-friendly names) */
.text-pc-cyan,
.pc-text-cyan {
  color: var(--pc-cyan) !important;
}

.text-pc-orange {
  color: var(--pc-orange) !important;
}

.bg-pc-cyan {
  background-color: var(--pc-cyan) !important;
}

/* Search row input (blog / KB) */
.pc-input-search {
  width: 100%;
  max-width: 36rem;
  border-radius: 0.75rem;
  background: var(--pc-surface-2);
  border: 1px solid var(--pc-border-strong);
  color: var(--pc-text);
  padding: 0.5rem 0.75rem;
  outline: none;
}
.pc-input-search::placeholder {
  color: rgba(248, 250, 252, 0.45);
}
.pc-input-search:focus {
  box-shadow: 0 0 0 2px rgba(225, 110, 27, 0.35);
  border-color: rgba(225, 110, 27, 0.5);
}

/* Primary button (search, CTAs) */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.pc-btn-primary {
  background: var(--pc-orange) !important;
  color: #0f172a !important;
}
.pc-btn-primary:hover {
  background: var(--pc-orange-bright) !important;
}

/* Filter chip: inactive */
.pc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--pc-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
  color: var(--pc-text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pc-chip:hover {
  background: var(--pc-surface-2);
  color: var(--pc-text);
}

/* Filter chip: active (matches nav pill) */
.pc-chip-active {
  background: var(--pc-orange) !important;
  color: #0f172a !important;
  border-color: transparent !important;
}

/* Footer: seamless with page */
.footer-bg {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.92) 0%, #060a10 100%) !important;
  border-top: 1px solid var(--pc-border) !important;
}

/* Prose links inside articles */
.pc-prose a,
article.prose a {
  color: #7dd3fc;
}
.pc-prose a:hover,
article.prose a:hover {
  text-decoration: underline;
}
