/* ============================================================
   ZOLOGIC — BLOG POST STYLES
   Matches landing page design system (navy/cyan/red)
   Enqueue on single posts via functions.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Lato:wght@300;400;700;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ============================================================
   POST WRAPPER — resets Astra prose defaults
   ============================================================ */
.zl-post {
  background: #060d1f;
  color: #e2eaf5;
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ============================================================
   HERO IMAGE
   ============================================================ */
.zp-hero-img {
  position: relative;
  background: #0b1629;
  border-bottom: 1px solid rgba(0,229,255,0.12);
}

.zp-hero-caption {
  text-align: center;
  padding: 20px 40px;
  font-size: 0.9rem;
  color: #6b8aab;
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================================
   BODY — reading column
   ============================================================ */
.zp-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 40px 100px;
}

.zp-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e2eaf5;
  font-weight: 400;
  margin-bottom: 32px;
  border-left: 3px solid #00e5ff;
  padding-left: 24px;
}

.zp-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #8fa8c4;
  margin-bottom: 24px;
  font-weight: 300;
}

.zp-body strong {
  color: #e2eaf5;
  font-weight: 600;
}

.zp-link {
  color: #00e5ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,229,255,0.3);
  transition: border-color 0.2s, color 0.2s;
}

.zp-link:hover {
  color: #ffffff;
  border-color: #00e5ff;
  text-decoration: none;
}

/* ============================================================
   HEADINGS
   ============================================================ */
.zp-h2 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  margin: 56px 0 20px;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 16px;
}

.zp-h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: #00e5ff;
}

.zp-h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

/* ============================================================
   STAT BAR
   ============================================================ */
.zp-stat-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #0d1a2e;
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
}

.zp-stat {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zp-stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.zp-stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00e5ff;
  line-height: 1;
}

.zp-stat-label {
  font-size: 0.72rem;
  color: #3d5a78;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   FEATURE BLOCKS
   ============================================================ */
.zp-feature {
  display: flex;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.zp-feature:last-of-type {
  border-bottom: none;
}

.zp-feature-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 50%;
  background: #0d1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #00e5ff;
  font-weight: 700;
}

.zp-feature-body {
  flex: 1;
  min-width: 0;
}

.zp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.zp-detail-card {
  background: #0d1a2e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px;
}

.zp-detail-card--highlight {
  border-color: rgba(0,229,255,0.2);
  background: linear-gradient(135deg, rgba(0,229,255,0.04), #0d1a2e);
}

.zp-detail-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #00e5ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.zp-detail-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Mini stats inside detail card */
.zp-mini-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.zp-mini-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.zp-mini-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #00e5ff;
  line-height: 1;
}

.zp-mini-label {
  font-size: 0.75rem;
  color: #3d5a78;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================================================
   LIFECYCLE FLOW
   ============================================================ */
.zp-lifecycle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 36px;
  padding: 24px;
  background: #0d1a2e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.zp-lifecycle-step {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #6b8aab;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
}

.zp-lifecycle-step--active {
  color: #00e5ff;
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.08);
}

.zp-lifecycle-arrow {
  color: #3d5a78;
  font-size: 0.9rem;
}

/* ============================================================
   SPECS PANEL
   ============================================================ */
.zp-specs-panel {
  background: #0d1a2e;
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 32px;
}

.zp-specs-header {
  background: #0f1e35;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,229,255,0.12);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zp-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.zp-panel-dot:nth-child(1) { background: #ff5f57; }
.zp-panel-dot:nth-child(2) { background: #ffbd2e; }
.zp-panel-dot:nth-child(3) { background: #00e5ff; }

.zp-specs-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: #3d5a78;
  margin-left: 6px;
  letter-spacing: 1px;
}

.zp-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.04);
}

.zp-spec {
  background: #0d1a2e;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.zp-spec-key {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #3d5a78;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zp-spec-val {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #e2eaf5;
  text-align: right;
}

.zp-spec-val.cyan { color: #00e5ff; }
.zp-spec-val.ok   { color: #86efac; }

/* ============================================================
   CITATION
   ============================================================ */
.zp-citation {
  font-style: italic;
  color: #6b8aab !important;
  border-left: 2px solid rgba(0,229,255,0.3);
  padding-left: 20px;
  margin: 32px 0 !important;
  font-size: 0.95rem !important;
}

/* ============================================================
   GIF DEMO
   ============================================================ */
.zp-demo-wrap {
  margin: 40px 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.zp-demo-caption {
  text-align: center;
  padding: 14px 20px;
  font-size: 0.82rem !important;
  color: #3d5a78 !important;
  font-style: italic;
  background: #0d1a2e;
  margin: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================================
   CTA BOXES
   ============================================================ */
.zp-cta-box {
  background: #0d1a2e;
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  margin: 56px 0;
  position: relative;
}

.zp-cta-top-bar {
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
  background-size: 200%;
  animation: zp-bar-slide 3s linear infinite;
}

@keyframes zp-bar-slide {
  0%   { background-position: 0% }
  100% { background-position: 200% }
}

.zp-cta-inner {
  padding: 48px 44px;
  text-align: center;
}

.zp-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #dc2626;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 100px;
  background: rgba(220,38,38,0.08);
}

.zp-cta-title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  border: none;
  padding: 0;
}

.zp-cta-desc {
  color: #6b8aab !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  max-width: 520px;
  margin: 0 auto 32px !important;
}

.zp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #dc2626;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 0 24px rgba(220,38,38,0.35);
  animation: zp-btn-pulse 3s ease-in-out infinite;
}

.zp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(220,38,38,0.5), 0 8px 24px rgba(220,38,38,0.3);
  color: #ffffff;
  text-decoration: none;
  animation: none;
}

@keyframes zp-btn-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(220,38,38,0.35); }
  50%       { box-shadow: 0 0 44px rgba(220,38,38,0.55), 0 0 60px rgba(220,38,38,0.2); }
}

.zp-cta-note {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-size: 0.75rem !important;
  color: #3d5a78 !important;
}

/* Licenses box variant */
.zp-cta-box--licenses {
  border-color: rgba(220,38,38,0.2);
  background: linear-gradient(135deg, rgba(220,38,38,0.04) 0%, #0d1a2e 50%);
}

.zp-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.zp-ftag {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 16px;
  color: #e2eaf5;
  font-size: 0.82rem;
  font-weight: 500;
}

.zp-cta-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 24px 0 20px;
}

.zp-cta-footer {
  font-size: 0.75rem !important;
  color: #3d5a78 !important;
  margin: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .zp-body {
    padding: 48px 24px 72px;
  }

  .zp-stat-bar {
    flex-direction: column;
    gap: 0;
  }

  .zp-stat-divider {
    width: 100%;
    height: 1px;
  }

  .zp-detail-grid {
    grid-template-columns: 1fr;
  }

  .zp-feature {
    flex-direction: column;
    gap: 16px;
  }

  .zp-specs-grid {
    grid-template-columns: 1fr;
  }

  .zp-lifecycle {
    gap: 6px;
  }

  .zp-cta-inner {
    padding: 32px 24px;
  }

  .zp-lifecycle-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .zp-hero-caption {
    padding: 16px 20px;
  }

  .zp-feature-tags {
    flex-direction: column;
    align-items: stretch;
  }

  .zp-ftag {
    text-align: center;
  }
}