/* ═══════════════════════════════════════════════════════
   GDATA GROUP — post_detail.css
   Scope: Article detail page (3-col layout, TOC, share).
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   0. SHARED LAYOUT
   ───────────────────────────────────────────────────── */
.pd-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.pd-page {
  position: relative;
  padding: 56px 0 110px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(13, 89, 242, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #00112B 0%, #000A1F 100%);
}

/* 3-col grid */
.pd-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 44px;
  align-items: flex-start;
}

/* ─────────────────────────────────────────────────────
   1. LEFT — RELATED READING
   ───────────────────────────────────────────────────── */
.pd-side-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.pd-side-title--bar {
  padding-left: 12px;
  border-left: 3px solid #48D6FF;
  line-height: 1.2;
}

.pd-related {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pd-related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease);
}

.pd-related-card:hover {
  transform: translateY(-2px);
}

.pd-related-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #00112B;
  border: 1px solid rgba(72, 153, 255, 0.18);
}

.pd-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.pd-related-card:hover .pd-related-media img {
  transform: scale(1.04);
}

.pd-related-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.30);
}

.pd-related-badge--blue   { background: #0D59F2; border: 1px solid rgba(72, 214, 255, 0.45); }
.pd-related-badge--purple { background: #7B3DE3; border: 1px solid rgba(168, 132, 255, 0.45); }
.pd-related-badge--cyan   { background: #0BB8C3; border: 1px solid rgba(94, 234, 240, 0.45); }

.pd-related-name {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #E2E8F0;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0;
  transition: color var(--dur) var(--ease);
}

.pd-related-card:hover .pd-related-name {
  color: #FFFFFF;
}

/* Newsletter card */
.pd-brief-card {
  margin-top: 8px;
  padding: 18px 18px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #001E45 0%, #001530 100%);
  border: 1px solid rgba(72, 153, 255, 0.20);
}

.pd-brief-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.pd-brief-desc {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #94A3B8;
  margin: 0 0 14px;
}

.pd-brief-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-brief-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 11, 30, 0.65);
  border: 1px solid rgba(72, 153, 255, 0.25);
  color: #E2E8F0;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 12.5px;
  outline: none;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.pd-brief-input::placeholder {
  color: #5D7A99;
}

.pd-brief-input:focus {
  border-color: #48D6FF;
  box-shadow: 0 0 0 3px rgba(72, 214, 255, 0.18);
}

.pd-brief-submit {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #0D59F2;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(13, 89, 242, 0.40);
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.pd-brief-submit:hover {
  background: #3D7FFF;
  transform: translateY(-1px);
}

.pd-brief-status {
  margin: 10px 0 0;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 11.5px;
  color: #34D399;
}

.pd-brief-status.is-error {
  color: #FF6B81;
}

/* ─────────────────────────────────────────────────────
   2. CENTER — ARTICLE
   ───────────────────────────────────────────────────── */
.pd-article {
  min-width: 0;
}

.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pd-crumb {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #94A3B8;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.pd-crumb:hover {
  color: #FFFFFF;
}

.pd-crumb--accent {
  color: #48D6FF;
}

.pd-crumb-sep {
  color: rgba(148, 163, 184, 0.55);
}

.pd-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
}

.pd-title span {
  display: block;
}

.pd-title-white {
  color: #FFFFFF;
}

.pd-title-accent {
  background: linear-gradient(90deg, #0D59F2 0%, #3D7FFF 60%, #48D6FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Meta row */
.pd-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pd-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(72, 214, 255, 0.40);
  background: #00112B;
  flex-shrink: 0;
}

.pd-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-author-name {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.pd-author-role {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}

.pd-meta-right {
  text-align: right;
}

.pd-meta-date {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 12.5px;
  color: #E2E8F0;
  margin: 0;
}

.pd-meta-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 12px;
  color: #94A3B8;
  margin: 2px 0 0;
}

.pd-meta-read i {
  font-size: 12px;
}

.pd-rule {
  border: 0;
  border-top: 1px solid rgba(72, 153, 255, 0.18);
  margin: 22px 0 28px;
}

/* Hero image */
.pd-hero {
  position: relative;
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(72, 153, 255, 0.18);
}

.pd-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pd-hero-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 11, 30, 0.78);
  border: 1px solid rgba(72, 214, 255, 0.30);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-hero-eyebrow {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #48D6FF;
}

.pd-hero-cap-text {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Body */
.pd-body {
  color: #D0E4F5;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
}

.pd-body p {
  margin: 0 0 1.2em;
}

.pd-inline-link {
  color: #48D6FF;
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 214, 255, 0.45);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.pd-inline-link:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* Section heading inside body */
.pd-h2 {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 44px 0 16px;
}

.pd-h2-num {
  color: #48D6FF;
  margin-right: 4px;
}

/* Pillar cards */
.pd-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 8px;
}

.pd-pillar {
  position: relative;
  padding: 18px 18px 18px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #001E45 0%, #001530 100%);
  border: 1px solid rgba(72, 153, 255, 0.18);
  overflow: hidden;
}

.pd-pillar::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
}

.pd-pillar--blue::before   { background: linear-gradient(180deg, #0D59F2, #3D7FFF); box-shadow: 0 0 12px rgba(13, 89, 242, 0.45); }
.pd-pillar--cyan::before   { background: linear-gradient(180deg, #0BB8C3, #48D6FF); box-shadow: 0 0 12px rgba(72, 214, 255, 0.45); }
.pd-pillar--purple::before { background: linear-gradient(180deg, #7B3DE3, #B488FF); box-shadow: 0 0 12px rgba(123, 61, 227, 0.45); }

.pd-pillar-name {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
  letter-spacing: 0;
}

.pd-pillar-desc {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
}

/* Inline chip — used for token/SDK names within prose */
.pd-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.88em;
  line-height: 1.35;
  background: rgba(11, 184, 195, 0.14);
  border: 1px solid rgba(72, 214, 255, 0.35);
  color: #48D6FF;
  white-space: nowrap;
}

.pd-chip--cyan { color: #48D6FF; }

/* Code block */
.pd-code {
  position: relative;
  margin: 24px 0 28px;
  padding: 0;
  border-radius: 12px;
  background: #050E22;
  border: 1px solid rgba(72, 153, 255, 0.22);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.pd-code-lang {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 184, 0.7);
  z-index: 1;
  pointer-events: none;
}

.pd-code-pre {
  margin: 0;
  padding: 26px 22px 24px;
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #E2E8F0;
}

.pd-code-pre code {
  font: inherit;
  color: inherit;
  background: transparent;
  white-space: pre;
}

/* Syntax tokens */
.tk-k  { color: #C792EA; }                /* keywords: import, const, new, await */
.tk-c  { color: #82AAFF; }                /* class names: GDataMesh */
.tk-cm { color: #5C7290; font-style: italic; } /* comments */
.tk-s  { color: #C3E88D; }                /* strings */
.tk-n  { color: #F78C6C; }                /* numbers */
.tk-b  { color: #FF9CAC; }                /* booleans */
.tk-f  { color: #82AAFF; }                /* method calls: .deploy */

/* Tidy scrollbar inside the code block */
.pd-code-pre::-webkit-scrollbar { height: 8px; }
.pd-code-pre::-webkit-scrollbar-track { background: transparent; }
.pd-code-pre::-webkit-scrollbar-thumb {
  background: rgba(72, 153, 255, 0.25);
  border-radius: 4px;
}
.pd-code-pre::-webkit-scrollbar-thumb:hover {
  background: rgba(72, 153, 255, 0.45);
}

/* Pull-quote */
.pd-quote {
  position: relative;
  margin: 24px 0 28px;
  padding: 22px 24px 22px 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 30, 69, 0.7) 0%, rgba(0, 21, 48, 0.7) 100%);
  border: 1px solid rgba(72, 153, 255, 0.18);
  border-left: 3px solid #48D6FF;
  box-shadow: -4px 0 16px rgba(72, 214, 255, 0.18);
}

.pd-quote p {
  margin: 0;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: #E2E8F0;
  font-style: italic;
}

/* Timeline */
.pd-timeline {
  list-style: none;
  padding: 0;
  margin: 22px 0 32px;
  position: relative;
}

.pd-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(72, 153, 255, 0.55),
    rgba(72, 153, 255, 0.10));
}

.pd-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 6px 0 18px;
}

.pd-tl-item:last-child {
  padding-bottom: 0;
}

.pd-tl-dot {
  position: relative;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border-radius: 50%;
  background: #0D59F2;
  border: 2px solid #48D6FF;
  box-shadow: 0 0 0 4px rgba(13, 89, 242, 0.18),
              0 0 14px rgba(72, 214, 255, 0.55);
  z-index: 1;
}

.pd-tl-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px;
  letter-spacing: 0;
}

.pd-tl-desc {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
}

/* Tags */
.pd-tags {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 17, 43, 0.85);
  border: 1px solid rgba(72, 153, 255, 0.20);
  color: #94A3B8;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-decoration: none;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.pd-tag:hover {
  background: rgba(13, 89, 242, 0.18);
  color: #FFFFFF;
  border-color: rgba(72, 214, 255, 0.50);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────
   3. RIGHT — TOC + HELP
   ───────────────────────────────────────────────────── */
.pd-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pd-toc-card {
  padding: 22px 22px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #001E45 0%, #001530 100%);
  border: 1px solid rgba(72, 153, 255, 0.18);
}

.pd-side-eyebrow {
  display: block;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 14px;
}

/* TOC */
.pd-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-toc li {
  position: relative;
  padding-left: 14px;
}

.pd-toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(72, 153, 255, 0.55);
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.pd-toc-link {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 13px;
  color: #E2E8F0;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.pd-toc-link:hover {
  color: #48D6FF;
}

.pd-toc-link.is-active {
  color: #48D6FF;
  font-weight: 700;
}

.pd-toc li:has(.is-active)::before {
  background: #48D6FF;
  box-shadow: 0 0 8px rgba(72, 214, 255, 0.7);
}

/* Share */
.pd-share {
  display: flex;
  gap: 10px;
}

.pd-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 11, 30, 0.6);
  border: 1px solid rgba(72, 153, 255, 0.25);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.pd-share-btn:hover {
  color: #FFFFFF;
  background: rgba(13, 89, 242, 0.25);
  border-color: rgba(72, 214, 255, 0.55);
  transform: translateY(-1px);
}

.pd-share-btn.is-copied {
  background: rgba(16, 185, 129, 0.20);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.55);
}

/* Help card */
.pd-help-card {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0D59F2 0%, #1B6BFB 100%);
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(13, 89, 242, 0.32);
}

.pd-help-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
  letter-spacing: 0;
}

.pd-help-desc {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

.pd-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}

.pd-help-link i {
  transition: transform var(--dur) var(--ease);
}

.pd-help-link:hover {
  color: #FFFFFF;
}

.pd-help-link:hover i {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────
   4. RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .pd-grid {
    grid-template-columns: 220px minmax(0, 1fr) 240px;
    gap: 32px;
  }
}

@media (max-width: 991px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pd-aside {
    order: 3;
  }

  .pd-related {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .pd-related .pd-side-title {
    grid-column: 1 / -1;
  }

  .pd-brief-card {
    grid-column: 1 / -1;
  }

  .pd-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .pd-container {
    padding: 0 18px;
  }

  .pd-page {
    padding: 40px 0 72px;
  }

  .pd-related {
    grid-template-columns: 1fr;
  }

  .pd-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pd-meta-right {
    text-align: left;
  }

  .pd-hero-caption {
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
  }

  .pd-pillars {
    grid-template-columns: 1fr;
  }

  .pd-h2 {
    margin-top: 36px;
  }

  .pd-code-pre {
    padding: 22px 16px 20px;
    font-size: 12px;
  }

  .pd-quote {
    padding: 18px 18px 18px 22px;
  }

  .pd-tags {
    gap: 8px;
  }

  .pd-tag {
    padding: 5px 10px;
    font-size: 10.5px;
  }
}
