/* ============================================
   Promptolis — Design System
   City of Prompts · Editorial meets Technical
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #4F46E5;          /* Indigo — AI/tech */
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --accent: #10B981;           /* Emerald — for "Copy" / success */
  --accent-dark: #059669;
  --warn: #F59E0B;
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-code: #0F172A;
  --bg-code-text: #E2E8F0;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --max-w: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.8vw, 30px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -0.02em;
}
.nav-logo svg { width: 28px; height: 28px; color: var(--primary); }
.nav-logo-accent { color: var(--primary); }
.nav-links {
  display: flex; gap: 28px; list-style: none; margin-left: 20px; flex: 1;
}
.nav-links a {
  color: var(--text-secondary); font-weight: 500; font-size: 15px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); border-bottom-color: var(--primary); }

.nav-search {
  position: relative; flex-basis: 280px;
}
.nav-search input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 10px 14px 10px 38px;
  font-size: 14px; color: var(--text); transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); background: #fff;
}
.nav-search::before {
  content: ''; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='8'/><path d='M21 21l-4.35-4.35'/></svg>") no-repeat center / contain;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: var(--radius);
  align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-toggle svg { width: 22px; height: 22px; color: var(--text); }
  .nav-inner.is-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    padding: 12px 24px; border-bottom: 1px solid var(--border); margin: 0;
  }
  .nav-inner.is-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

/* --- Sections --- */
section { padding: 72px 0; }
.section-white { background: var(--bg-white); }

/* --- Hero --- */
.hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 13px; font-weight: 600; border-radius: var(--radius-full);
  letter-spacing: 0.02em; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  max-width: 840px; margin: 0 auto 20px;
  line-height: 1.1;
}
.hero h1 .accent { color: var(--primary); }
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 32px;
}

/* Big search in hero */
.hero-search {
  max-width: 640px; margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%; padding: 18px 60px 18px 52px;
  font-size: 17px; border: 2px solid var(--border-strong); border-radius: var(--radius-lg);
  background: #fff;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.hero-search input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.12), var(--shadow);
}
.hero-search::before {
  content: ''; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='8'/><path d='M21 21l-4.35-4.35'/></svg>") no-repeat center / contain;
}
.hero-search-hint {
  font-size: 13px; color: var(--text-muted); margin-top: 14px;
}
.hero-search-hint kbd {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--bg-white); border: 1px solid var(--border-strong);
  padding: 2px 6px; border-radius: 4px;
}
.hero-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px; color: var(--text-muted); font-size: 14px;
}
.hero-stats strong { color: var(--text); font-size: 20px; display: block; font-weight: 700; }

/* --- Category pills --- */
.categories {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 28px;
}
.category-pill {
  padding: 8px 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.category-pill:hover {
  color: var(--primary); border-color: var(--primary);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.category-pill .count {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: var(--bg); padding: 1px 7px; border-radius: var(--radius-full);
}

/* --- Prompt card grid --- */
.prompt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.prompt-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  min-height: 180px;
}
.prompt-card:hover {
  border-color: var(--primary); transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.prompt-card-cat {
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.prompt-card h3 {
  font-size: 17px; margin-bottom: 8px;
  color: var(--text);
}
.prompt-card p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.prompt-card-link {
  margin-top: 14px; font-size: 13px; font-weight: 600;
  color: var(--primary); display: inline-flex; align-items: center; gap: 4px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }

/* --- Prompt detail --- */
.prompt-hero {
  padding: 48px 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.prompt-hero h1 { margin-bottom: 14px; }
.prompt-hero-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 20px;
}
.prompt-hero-meta span { display: inline-flex; align-items: center; gap: 4px; }
.prompt-desc {
  font-size: 17px; color: var(--text-secondary);
  max-width: 720px; line-height: 1.65;
}

/* Prompt block (the actual prompt text) */
.prompt-block {
  background: var(--bg-code); color: var(--bg-code-text);
  font-family: var(--font-mono); font-size: 14.5px; line-height: 1.7;
  padding: 28px 32px 32px; border-radius: var(--radius-lg);
  white-space: pre-wrap; word-break: break-word;
  position: relative;
  margin: 24px 0;
  box-shadow: var(--shadow-lg);
}
.prompt-block-label {
  position: absolute; top: 14px; left: 28px;
  font-size: 11px; font-weight: 600; color: #64748B;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.prompt-block-content {
  margin-top: 20px;
  user-select: all;
}

/* Action buttons row */
.prompt-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px;
  transition: all var(--transition);
  cursor: pointer; text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-copy {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.btn-copy:hover { background: var(--accent-dark); transform: translateY(-1px); color: #fff; }
.btn-copy.is-copied { background: #065F46; }
.btn-launch {
  background: #fff; color: var(--text);
  border-color: var(--border-strong);
}
.btn-launch:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* --- Content sections (use cases, variations, etc) --- */
.content-block {
  margin: 32px 0;
  max-width: 780px;
}
.content-block h2, .content-block h3 {
  margin-bottom: 14px; margin-top: 32px;
}
.content-block h2:first-child { margin-top: 0; }
.content-block p {
  color: var(--text-secondary); font-size: 16px; line-height: 1.75;
  margin-bottom: 14px;
}
.content-block ul, .content-block ol {
  padding-left: 22px; margin-bottom: 16px;
}
.content-block li { margin: 8px 0; color: var(--text-secondary); line-height: 1.7; }
.content-block strong { color: var(--text); font-weight: 600; }

/* Example output box */
.example-output {
  background: var(--bg); border-left: 3px solid var(--primary);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 18px 0; font-size: 15px; line-height: 1.7;
  color: var(--text-secondary);
}
.example-output-label {
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: #94A3B8;
  padding: 60px 0 32px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-brand span { color: var(--primary); }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #94A3B8; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1E293B;
  margin-top: 32px; padding-top: 24px;
  font-size: 13px; color: #64748B; text-align: center;
}
.footer-bottom a { color: #94A3B8; }

/* --- Utility --- */
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--primary); color: #fff; padding: 8px 14px;
  border-radius: var(--radius); font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* --- Search modal / dropdown results --- */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-height: 460px; overflow-y: auto; z-index: 100;
  display: none;
}
.search-results.is-open { display: block; }
.search-result {
  display: block; padding: 14px 20px; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 14px;
}
.search-result:hover, .search-result.is-active {
  background: var(--bg); color: var(--primary);
}
.search-result:last-child { border: none; }
.search-result-cat {
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

/* --- Code/prompt inline --- */
code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
}

/* --- Index listing --- */
.index-list { list-style: none; }
.index-list li { margin: 6px 0; }
.index-list a {
  display: block; padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text); transition: background var(--transition);
}
.index-list a:hover { background: var(--bg); color: var(--primary); }

/* --- Related prompts aside --- */
.related-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; margin-top: 16px;
}
.related-card {
  padding: 16px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  color: var(--text); transition: all var(--transition);
}
.related-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

/* ============================================
   PROMPTOLIS ORIGINALS — premium styling
   ============================================ */
.original-hero {
  background: linear-gradient(135deg, var(--hero, #4F46E5) 0%, color-mix(in srgb, var(--hero, #4F46E5) 60%, #000) 100%);
  color: #fff;
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.original-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.original-hero .container { position: relative; z-index: 1; }
.original-hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-weight: 800;
}
.original-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.02em;
}
.original-tagline {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  max-width: 780px;
  margin: 0 auto 20px;
}
.original-hero:not(.container[style*="center"]) .original-tagline { margin-left: 0; }
.original-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

/* Originals grid on /originals/ */
.originals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.original-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.original-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--hero, var(--primary));
}
.original-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--hero, var(--primary));
}
.original-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--hero, var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.original-card-emoji {
  font-size: 42px;
  margin-bottom: 12px;
  line-height: 1;
}
.original-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.original-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.original-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.original-card-cta {
  color: var(--hero, var(--primary));
  font-weight: 600;
  font-size: 14px;
}

/* Example input/output grid */
.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) { .example-grid { grid-template-columns: 1fr; } }
.example-input, .example-output {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.example-label {
  padding: 12px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.example-content {
  padding: 20px 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  font-family: var(--font-sans);
  margin: 0;
}
.example-content.example-rendered {
  white-space: normal;
}
.example-content.example-rendered h3 {
  font-size: 20px; margin: 24px 0 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.example-content.example-rendered h3:first-child { margin-top: 0; }
.example-content.example-rendered h4 {
  font-size: 17px; margin: 20px 0 10px; color: var(--primary);
}
.example-content.example-rendered h5 {
  font-size: 15px; margin: 16px 0 8px;
}
.example-content.example-rendered p { margin: 10px 0; font-size: 14.5px; }
.example-content.example-rendered ul { padding-left: 20px; margin: 10px 0; }
.example-content.example-rendered li { font-size: 14.5px; margin: 6px 0; }

/* Variants grid */
.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.variant-card {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.variant-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.variant-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Use cases list — two columns on desktop */
.use-cases-list {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
}
@media (max-width: 680px) { .use-cases-list { columns: 1; } }
.use-cases-list li {
  font-size: 15px;
  line-height: 1.7;
  margin: 8px 0;
  break-inside: avoid;
}

/* Share bar */
.share-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 8px;
  padding: 10px 16px;
  background: var(--bg);
  border-radius: var(--radius-full);
  width: fit-content;
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}
.share-twitter:hover { background: #000; border-color: #000; color: #fff; }
.share-linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.share-reddit:hover { background: #FF4500; border-color: #FF4500; color: #fff; }
.share-copy:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Featured Originals section on homepage */
.originals-featured {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.originals-featured-label {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #6B5AED 0%, #4F46E5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* --- Engagement bar (copy counter + ratings) --- */
.engagement-bar {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin: 20px 0 -4px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.engagement-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.engagement-metric svg { opacity: 0.7; }
.engagement-metric .engagement-label {
  color: var(--text-muted);
  font-size: 12px;
}
.engagement-rate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.engagement-rate:hover {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.engagement-rate[data-rate="up"]:hover { color: var(--accent); border-color: var(--accent); }
.engagement-rate[data-rate="down"]:hover { color: #DC2626; border-color: #DC2626; }
.engagement-rate.is-rated {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  cursor: default;
}
.engagement-rate.is-rated[data-rate="up"] { background: #D1FAE5; border-color: #10B981; color: #065F46; }
.engagement-rate.is-rated[data-rate="down"] { background: #FEE2E2; border-color: #DC2626; color: #991B1B; }

/* --- Blog article content --- */
.article-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 48px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.article-content h3 {
  font-size: 20px; margin-top: 32px; margin-bottom: 12px;
  color: var(--text);
}
.article-content p {
  font-size: 17px; line-height: 1.8;
  color: var(--text); margin-bottom: 18px;
}
.article-content p.article-meta {
  color: var(--text-muted); font-size: 14px;
  margin-bottom: 28px;
}
.article-content ul, .article-content ol {
  padding-left: 24px; margin: 16px 0 20px;
}
.article-content li {
  font-size: 17px; line-height: 1.75;
  color: var(--text); margin: 10px 0;
}
.article-content li strong { color: var(--text); }
.article-content a {
  color: var(--primary); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-content a:hover { text-decoration-thickness: 2px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content em { font-style: italic; }
.article-content code {
  background: var(--primary-light); color: var(--primary-dark);
  padding: 2px 8px; border-radius: 6px; font-size: 0.92em;
}
.article-content blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.article-content blockquote p { margin: 0; font-size: 17px; color: var(--text); }
