/* ==========================================================================
   iDominiqe Knowledge Base — Blog & Article Stylesheet
   ========================================================================== */

.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.08s linear;
}

.omnibox-pulse {
  animation: omniboxPulse 0.45s ease;
}

@keyframes omniboxPulse {
  0% { opacity: 0.55; transform: translateY(-1px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Top Nav Blog Pill & Animation Picker */
.anim-quick-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.anim-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 13px;
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.anim-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.anim-chip.active {
  border-color: var(--glass-highlight);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Blog Preview Grid on Home & Blog Hub */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transform-style: preserve-3d;
}

.blog-card:hover {
  background: var(--glass-card-hover);
  border-color: var(--glass-highlight);
  transform: translateY(-3px);
}

.blog-card-banner {
  height: 112px;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.blog-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Article Page Layout */
.article-hero {
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  z-index: 0;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.article-breadcrumbs a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 86px;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.toc-link:hover,
.toc-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-soft);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-block {
  border-radius: 24px;
  padding: 24px;
  scroll-margin-top: 96px;
}

.article-block h2 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-block p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-block p:last-child {
  margin-bottom: 0;
}

.article-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border-left: 3px solid var(--accent-2);
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.87rem;
  color: var(--text-primary);
}

.article-code {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(6, 9, 20, 0.65);
  border: 1px solid var(--glass-border-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #bae6fd;
  overflow-x: auto;
  white-space: pre;
}

html[data-lighting="light"] .article-code {
  background: rgba(15, 23, 42, 0.88);
  color: #e0f2fe;
}

/* Interactive Knowledge Widgets */
.widget-box {
  border-radius: 24px;
  padding: 22px;
}

.dns-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.dns-tab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dns-tab-btn.active {
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 0.84rem;
}

.check-item.checked {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pager-card {
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pager-card:hover {
  background: var(--glass-card-hover);
  border-color: var(--glass-highlight);
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: relative;
    top: 0;
  }
}

@media (max-width: 760px) {
  .blog-grid,
  .checklist-grid,
  .article-pager {
    grid-template-columns: 1fr;
  }
  .anim-quick-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
