/*
Theme Name: ProtectComply Blog
Description: Blog theme matching protectcomply.com — orchid palette, IBM Plex Sans, same nav/footer, panel card grid.
Version: 1.0.0
Author: ProtectComply
Text Domain: protectcomply-blog
*/

/* ---- Brand tokens (mirrors protect-comply-ui app/globals.css :root) ---- */
:root {
  --bg: #f4f0ff;
  --bg-secondary: #fff8f3;
  --surface: #ffffff;
  --surface-secondary: #f7f6fb;
  --text: #181424;
  --text-secondary: #6d667f;
  --text-soft: #9d95b5;
  --border: #e8e1f7;
  --border-strong: #d8cff0;
  --accent: #7c3aed;
  --accent-strong: #5b21b6;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --accent-soft-strong: rgba(124, 58, 237, 0.2);
  --warning: #f59e0b;
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-strong: 0 12px 32px rgba(124, 58, 237, 0.14);
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--warning) 8%, transparent), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.page-shell { margin: 0 auto; width: min(1240px, calc(100% - 2rem)); }

/* ---- Nav (MarketingNav clone) ---- */
.pc-nav {
  position: sticky; top: 0; z-index: 40; width: 100%;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: box-shadow 250ms ease, background 250ms ease;
}
.pc-nav.is-scrolled {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(124, 58, 237, 0.06);
}
.pc-nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.7rem 0;
}
.pc-logo { display: flex; align-items: center; gap: 0.625rem; }
.pc-logo img { width: 2.25rem; height: 2.25rem; object-fit: contain; flex-shrink: 0; }
.pc-logo-word { line-height: 1.25; display: flex; flex-direction: column; }
.pc-logo-title { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.pc-logo-title .p1 { color: #3d3d6b; }
.pc-logo-title .p2 { color: #9f49ec; }
.pc-logo-sub { font-size: 0.625rem; color: #0a0a0a; font-weight: 800; letter-spacing: 0.01em; }
.pc-nav-links { display: none; align-items: center; gap: 1.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
@media (min-width: 1024px) { .pc-nav-links { display: flex; } }
.pc-nav-links a { transition: color 200ms; }
.pc-nav-links a:hover, .pc-nav-links a.active { color: var(--accent); }
.pc-nav-ctas { display: flex; align-items: center; gap: 0.625rem; }
.pc-signin {
  display: none; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  padding: 0.5rem 0.75rem; border-radius: 999px; transition: color 200ms;
}
@media (min-width: 640px) { .pc-signin { display: inline-flex; } }
.pc-signin:hover { color: var(--text); }
.pc-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.pc-cta:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-strong); }

/* ---- Hero ---- */
.pc-hero { max-width: 48rem; margin: 4.5rem auto 2.5rem; text-align: center; padding: 0 1rem; }
.accent-chip {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--accent-soft-strong);
  background: var(--accent-soft); color: var(--accent);
  padding: 0.4rem 0.9rem; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
}
.pc-hero h1 {
  margin: 1.25rem 0 0; font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.1;
}
.pc-hero p { margin-top: 1rem; font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.55; }

/* ---- Card grid ---- */
.pc-grid-wrap { padding-bottom: 5rem; }
.pc-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  list-style: none; padding: 0; margin: 0;
}
.pc-card {
  display: block; height: 100%; padding: 1.75rem; border-radius: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); border-color: var(--border-strong); }
.pc-card-kicker {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin: 0;
}
.pc-card h2 {
  margin: 0.75rem 0 0; font-size: 1.375rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text); line-height: 1.25;
}
.pc-card-excerpt {
  margin-top: 0.875rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-card-excerpt p { margin: 0; display: inline; }
.pc-card-more { margin-top: 1.25rem; font-size: 0.875rem; color: var(--accent); font-weight: 600; }

/* ---- Pagination ---- */
.pc-pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; font-size: 0.9rem; }
.pc-pagination .page-numbers {
  display: inline-flex; min-width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center;
  padding: 0 0.625rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); transition: all 200ms;
}
.pc-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pc-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Single post ---- */
.pc-single { max-width: 46rem; margin: 4rem auto 5rem; padding: 0 1rem; }
.pc-backlink { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.pc-backlink:hover { text-decoration: underline; }
.pc-single-meta { margin-top: 1.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.pc-single h1.pc-title {
  margin: 0.75rem 0 0; font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text);
}
.pc-featured { margin: 2rem 0 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.pc-featured img { display: block; width: 100%; }

/* Post content typography */
.pc-content { margin-top: 2.25rem; font-size: 1.03rem; line-height: 1.8; color: var(--text-secondary); }
.pc-content h1, .pc-content h2, .pc-content h3, .pc-content h4 {
  color: var(--text); letter-spacing: -0.01em; line-height: 1.3; margin: 2.25rem 0 0.75rem; font-weight: 650;
}
.pc-content h1 { font-size: 1.65rem; }
.pc-content h2 { font-size: 1.45rem; }
.pc-content h3 { font-size: 1.2rem; }
.pc-content h4 { font-size: 1.05rem; }
.pc-content p { margin: 1rem 0; }
.pc-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pc-content a:hover { color: var(--accent-strong); }
.pc-content ul, .pc-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.pc-content li { margin: 0.375rem 0; }
.pc-content blockquote {
  margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--accent); color: var(--text);
}
.pc-content hr { margin: 2.5rem 0; border: none; border-top: 1px solid var(--border); }
.pc-content code { background: var(--accent-soft); border-radius: 0.375rem; padding: 0.1rem 0.35rem; font-size: 0.9em; }
.pc-content figure.wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.pc-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--surface); }
.pc-content th, .pc-content td { border: 1px solid var(--border); padding: 0.625rem 0.875rem; text-align: left; }
.pc-content th { background: var(--surface-secondary); color: var(--text); font-weight: 600; }
.pc-content img { border-radius: 0.75rem; }
.pc-content figure.wp-block-image { margin: 1.5rem 0; }

/* ---- Footer (MarketingFooter clone) ---- */
.pc-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 4rem; }
.pc-footer-inner { padding: 3rem 0 2rem; }
.pc-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.pc-footer-tag { font-size: 0.85rem; color: var(--text-soft); line-height: 1.6; max-width: 200px; margin-top: 0.65rem; }
.pc-footer-col p.h { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin: 0 0 0.75rem; }
.pc-footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pc-footer-col a { font-size: 0.875rem; color: var(--text-secondary); }
.pc-footer-col a:hover { color: var(--accent); }
.pc-footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.pc-footer-powered { margin: 0; font-size: 0.82rem; color: var(--text-secondary); text-align: center; line-height: 1.5; }
.pc-footer-powered strong { color: var(--text); font-weight: 700; }
.pc-footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.pc-footer-row p { margin: 0; font-size: 0.8rem; color: var(--text-soft); }

.pc-empty {
  max-width: 32rem; margin: 2rem auto; padding: 3rem 2rem; border-radius: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  text-align: center; color: var(--text-soft);
}

body.admin-bar .pc-nav { top: 32px; }
