/**
 * Rich content styles — shared between block editor and frontend (.itk-prose).
 */

/* ── Inline highlights ── */
.itk-prose mark.itk-hl,
.editor-styles-wrapper mark.itk-hl {
  padding: 0.1em 0.45em;
  border-radius: 0.35em;
  font-weight: 600;
  font-style: normal;
  line-height: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.itk-hl-yellow,
mark.itk-hl-yellow {
  background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
  color: #713f12;
}

.itk-hl-blue,
mark.itk-hl-blue {
  background: linear-gradient(180deg, #bfdbfe 0%, #93c5fd 100%);
  color: #1e3a8a;
}

.itk-hl-green,
mark.itk-hl-green {
  background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
  color: #14532d;
}

.itk-hl-cyber,
mark.itk-hl-cyber {
  background: linear-gradient(180deg, #ffd4c4 0%, #ffb89e 100%);
  color: #7c2d12;
}

.itk-hl-purple,
mark.itk-hl-purple {
  background: linear-gradient(180deg, #e9d5ff 0%, #d8b4fe 100%);
  color: #581c87;
}

.itk-hl-dark,
mark.itk-hl-dark {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
}

/* ── Inline badge ── */
.itk-badge-inline,
.itk-prose .itk-badge-inline {
  display: inline-block;
  padding: 0.15em 0.65em;
  font-size: 0.85em;
  font-weight: 700;
  border-radius: 999px;
  background: var(--cyber-500);
  color: #fff;
  line-height: 1.5;
}

/* ── Paragraph block styles ── */
.itk-prose .is-style-itk-lead,
.editor-styles-wrapper .is-style-itk-lead {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.9;
  color: var(--navy-900);
}

.itk-prose .is-style-itk-muted,
.editor-styles-wrapper .is-style-itk-muted {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.itk-prose .is-style-itk-badge,
.editor-styles-wrapper .is-style-itk-badge {
  display: inline-block;
  width: auto;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  background: #ffe8e0;
  color: var(--cyan-700);
  margin-bottom: 1rem;
}

.itk-prose .is-style-itk-gradient,
.editor-styles-wrapper .is-style-itk-gradient {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.6;
  background: linear-gradient(135deg, var(--cyber-500) 0%, var(--cyan-600) 50%, var(--navy-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Group callout boxes ── */
.itk-prose .wp-block-group[class*="is-style-itk-callout"],
.editor-styles-wrapper .wp-block-group[class*="is-style-itk-callout"],
.itk-prose .wp-block-group.is-style-itk-callout-dark,
.editor-styles-wrapper .wp-block-group.is-style-itk-callout-dark {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  margin: 1.5rem 0;
  border: 1px solid transparent;
}

.itk-prose .is-style-itk-callout-info,
.editor-styles-wrapper .is-style-itk-callout-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  border-right: 4px solid #3b82f6;
  color: #1e3a8a;
}

.itk-prose .is-style-itk-callout-success,
.editor-styles-wrapper .is-style-itk-callout-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
  border-right: 4px solid #22c55e;
  color: #14532d;
}

.itk-prose .is-style-itk-callout-warning,
.editor-styles-wrapper .is-style-itk-callout-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  border-right: 4px solid #f59e0b;
  color: #78350f;
}

.itk-prose .is-style-itk-callout-danger,
.editor-styles-wrapper .is-style-itk-callout-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
  border-right: 4px solid #ef4444;
  color: #7f1d1d;
}

.itk-prose .is-style-itk-callout-cyber,
.editor-styles-wrapper .is-style-itk-callout-cyber {
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%);
  border-color: #ffb89e;
  border-right: 4px solid var(--cyber-500);
  color: var(--navy-900);
}

.itk-prose .is-style-itk-callout-dark,
.editor-styles-wrapper .is-style-itk-callout-dark {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  border-right: 4px solid var(--cyber-500);
  color: #e2e8f0;
}

.itk-prose .is-style-itk-callout-dark a,
.editor-styles-wrapper .is-style-itk-callout-dark a {
  color: #7dd3fc;
}

/* ── Quote styles ── */
.itk-prose .wp-block-quote.is-style-itk-quote-cyber,
.editor-styles-wrapper .wp-block-quote.is-style-itk-quote-cyber {
  border: none;
  border-right: 4px solid var(--cyber-500);
  background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  font-style: normal;
  font-weight: 600;
  color: var(--navy-900);
}

.itk-prose .wp-block-quote.is-style-itk-quote-minimal,
.editor-styles-wrapper .wp-block-quote.is-style-itk-quote-minimal {
  border: none;
  border-right: 2px solid var(--gray-300);
  background: transparent;
  padding: 0.5rem 1.25rem 0.5rem 0;
  font-style: normal;
  color: var(--gray-500);
}

/* ── Checklist ── */
.itk-prose .wp-block-list.is-style-itk-checklist,
.editor-styles-wrapper .wp-block-list.is-style-itk-checklist {
  list-style: none;
  padding-right: 0;
}

.itk-prose .wp-block-list.is-style-itk-checklist li,
.editor-styles-wrapper .wp-block-list.is-style-itk-checklist li {
  position: relative;
  padding-right: 1.75rem;
  margin-bottom: 0.65rem;
}

.itk-prose .wp-block-list.is-style-itk-checklist li::before,
.editor-styles-wrapper .wp-block-list.is-style-itk-checklist li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0.15em;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--cyber-500);
  border-radius: 999px;
}

/* ── Separator ── */
.itk-prose .wp-block-separator.is-style-itk-separator-gradient,
.editor-styles-wrapper .wp-block-separator.is-style-itk-separator-gradient {
  border: none;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--cyber-500), var(--cyan-600), transparent);
  opacity: 1;
  margin: 2rem auto;
  max-width: 240px;
}

/* ── Heading accent ── */
.itk-prose .wp-block-heading.is-style-itk-heading-accent,
.editor-styles-wrapper .wp-block-heading.is-style-itk-heading-accent {
  position: relative;
  padding-bottom: 0.5rem;
}

.itk-prose .wp-block-heading.is-style-itk-heading-accent::after,
.editor-styles-wrapper .wp-block-heading.is-style-itk-heading-accent::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyber-500), var(--cyan-600));
}

/* ── Editor wrapper polish ── */
.editor-styles-wrapper {
  font-family: var(--font);
  direction: rtl;
}

.editor-styles-wrapper .wp-block {
  max-width: 720px;
}

.editor-styles-wrapper .wp-block[data-align="wide"] {
  max-width: 960px;
}

.editor-styles-wrapper .wp-block[data-align="full"] {
  max-width: none;
}
