/*
 * Zabarvan CyberPunk - Rich Content, CMS & Legal Information
 * Aesthetic: Tech Spec Documentation, Decrypted Protocols, Legal Dossiers
 * Scoped to [data-theme="cyberpunk"] :is(.cp-page-content, .rich-content). All rules unlayered.
 */

/* ---------- 1. Page Frame ---------- */
[data-theme="cyberpunk"] .cp-page-content {
  background-color: #030508;
  color: #EDF2F7;
}

[data-theme="cyberpunk"] .cp-page-content h1 {
  font-family: var(--font-orbitron), sans-serif !important;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  margin-bottom: 24px;
}

/* ---------- 2. Rich Content Typography ---------- */
[data-theme="cyberpunk"] .rich-content h1,
[data-theme="cyberpunk"] .rich-content h2,
[data-theme="cyberpunk"] .rich-content h3,
[data-theme="cyberpunk"] .rich-content h4 {
  font-family: var(--font-orbitron), sans-serif !important;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-theme="cyberpunk"] .rich-content h2 {
  color: var(--cp-yellow) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 12px;
  margin-top: 36px;
}

[data-theme="cyberpunk"] .rich-content h3 {
  color: var(--cp-cyan) !important;
  margin-top: 28px;
}

[data-theme="cyberpunk"] .rich-content p {
  color: #CBD5E0;
  line-height: 1.8;
  margin-bottom: 16px;
}

[data-theme="cyberpunk"] .rich-content a {
  color: var(--cp-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

[data-theme="cyberpunk"] .rich-content a:hover {
  color: var(--cp-yellow);
  text-shadow: 0 0 8px rgba(var(--cp-yellow-rgb), 0.5);
}

/* Blockquotes: Tactical Dossier Citation */
[data-theme="cyberpunk"] .rich-content blockquote {
  border-left: 3px solid var(--cp-yellow);
  background: rgba(7, 11, 20, 0.8);
  padding: 18px 24px;
  margin: 24px 0;
  color: #EDF2F7;
  font-family: var(--font-mono);
  box-shadow: -4px 0 12px rgba(var(--cp-yellow-rgb), 0.25);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

/* Lists: Tech Bracket Bullets */
[data-theme="cyberpunk"] .rich-content ul {
  list-style-type: none;
  padding-left: 0;
}

[data-theme="cyberpunk"] .rich-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

[data-theme="cyberpunk"] .rich-content ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cp-cyan);
  font-family: var(--font-mono);
  font-weight: 900;
}

/* Code & Pre Blocks */
[data-theme="cyberpunk"] .rich-content pre,
[data-theme="cyberpunk"] .rich-content code {
  font-family: var(--font-mono) !important;
  background-color: #04070E;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cp-cyan);
}

[data-theme="cyberpunk"] .rich-content code {
  padding: 2px 6px;
}

[data-theme="cyberpunk"] .rich-content pre {
  padding: 20px;
  overflow-x: auto;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

/* FAQ Accordions */
[data-theme="cyberpunk"] .cp-page-content [class*="accordion"],
[data-theme="cyberpunk"] .cp-page-content details {
  background: #070B14;
  border: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 16px;
  padding: 16px 20px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

[data-theme="cyberpunk"] .cp-page-content summary {
  font-family: var(--font-orbitron);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  cursor: pointer;
}

[data-theme="cyberpunk"] .cp-page-content summary:hover {
  color: var(--cp-cyan);
}
