/* ==========================================================================
   KNOWLEDGE BASE & TUTORIALS STYLES (css/kb.css)
   Acid Holographic Reading Interface
   ========================================================================== */

.kb-page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.kb-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  margin-bottom: 24px;
}

.kb-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.kb-breadcrumb a:hover {
  color: var(--opal-cyan);
}

.kb-breadcrumb span.sep {
  color: #475569;
}

.kb-hub-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.kb-hub-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* Hub Grid Layout */
.kb-grid-wrapper {
  padding: 40px 0 100px;
}

.kb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.kb-article-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.kb-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hologram-rainbow);
  opacity: 0.6;
  transition: opacity var(--transition-smooth);
}

.kb-article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.25);
}

.kb-article-card:hover::before {
  opacity: 1;
}

.kb-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--opal-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  width: fit-content;
}

.kb-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.kb-article-card:hover .kb-card-title {
  color: var(--opal-cyan);
}

.kb-card-excerpt {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.kb-keywords-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kb-keyword-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
}

.kb-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.kb-card-readmore {
  color: var(--opal-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   ARTICLE SINGLE PAGE LAYOUT
   ========================================================================== */
.article-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 40px 0 100px;
  align-items: start;
}

/* Floating Table of Contents */
.article-toc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 20px;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 0.86rem;
  color: #94a3b8;
  text-decoration: none;
  line-height: 1.4;
  transition: all var(--transition-fast);
  display: block;
}

.toc-link:hover, .toc-link.active {
  color: var(--opal-cyan);
  transform: translateX(4px);
}

.article-main-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 50px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  margin-bottom: 20px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-keywords-focus {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kw-label {
  font-size: 0.8rem;
  color: var(--opal-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Article Typography */
.article-body {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.85;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 32px 0 16px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body strong {
  color: #ffffff;
  font-weight: 700;
}

.article-body ul, .article-body ol {
  margin: 0 0 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body li {
  padding-left: 4px;
}

/* Callout Box */
.callout-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(155, 81, 224, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-left: 4px solid var(--opal-cyan);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 32px 0;
  font-size: 0.98rem;
}

.callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom Table for Article Comparisons */
.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.article-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: var(--font-display);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.article-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Code Pre Blocks */
.code-block {
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  margin: 28px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #38bdf8;
}

/* Sticky Article Outbound Conversion Card */
.article-cta-box {
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.9) 0%, rgba(20, 26, 42, 0.9) 100%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 20px;
  padding: 36px 30px;
  margin-top: 60px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.2);
}

.article-cta-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.article-cta-desc {
  font-size: 0.96rem;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 24px;
}

@media (max-width: 992px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  .article-toc-sidebar {
    display: none;
  }
  .article-main-content {
    padding: 30px 24px;
  }
}
