/* ========== Integration Landing Page Styles ========== */
/* Shared across all 18 integration pages (EN + ZH) */

/* --- Layout --- */
.integration-page {
  max-width: 800px;
  margin: 100px auto 0;
  padding: 2rem;
}

/* --- Hero Area --- */
.integration-hero {
  margin-bottom: 2.5rem;
}

.integration-hero .section-label {
  display: inline-block;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.integration-hero .hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.2);
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.integration-page h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.2;
}

.integration-page .subtitle {
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 600px;
}

/* --- Install Command (top - lightweight inline) --- */
.install-cmd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-block;
  margin: 1.5rem 0 0;
}

/* --- Section Headings (h2 with gold left border) --- */
.integration-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1.2rem;
  color: var(--text);
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
}

/* --- Body Text --- */
.integration-page p {
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.integration-page ul {
  color: var(--text-dim);
  line-height: 1.85;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.integration-page li {
  margin-bottom: 0.6rem;
}

.integration-page li strong {
  color: var(--text);
}

/* --- Code Block with Copy Button --- */
.code-block {
  position: relative;
  margin-bottom: 1.5rem;
}

.code-block pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  padding-right: 3.5rem;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

/* Syntax highlighting (hand-tagged spans) */
.code-block .kw { color: #c678dd; }      /* keywords: import, from, class, def, for, if, return */
.code-block .fn { color: #61afef; }      /* function/method names */
.code-block .str { color: #98c379; }     /* strings */
.code-block .cm { color: #5c6370; font-style: italic; }  /* comments */
.code-block .num { color: #d19a66; }     /* numbers */
.code-block .op { color: #56b6c2; }      /* operators */

/* Copy button */
.code-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font);
  transition: color 0.2s, border-color 0.2s;
  z-index: 1;
}

.code-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.code-copy.copied {
  color: var(--green);
  border-color: var(--green);
}

/* Mobile code scroll hint */
.code-block::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bg-card));
  border-radius: 0 7px 7px 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}


/* --- Related Links (inline card style) --- */
.related-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.related-section h2 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.related-links li {
  margin: 0;
}

.related-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.95rem;
}

.related-links a:hover {
  background: var(--bg-card-hover);
}

/* --- CTA Section (hero-style, full visual break) --- */
.integration-cta {
  text-align: center;
  padding: 5rem 2rem;
  margin-top: 4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(212, 160, 23, 0.05) 50%, transparent 100%);
  border-top: 1px solid var(--border);
}

.integration-cta h2 {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  border-left: none;
  padding-left: 0;
}

.integration-cta .install-cmd {
  display: inline-block; /* explicit: overridden to block on mobile */
  font-size: 1.1rem;
  padding: 1rem 2rem;
  background: rgba(212, 160, 23, 0.08);
  border-color: rgba(212, 160, 23, 0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .code-block::after {
    opacity: 1;
  }

  .integration-page {
    margin-top: 70px;
    padding: 1rem 1.2rem;
  }

  .integration-hero {
    margin-bottom: 1.5rem;
  }

  .integration-hero .hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .integration-page h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .integration-page h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
  }

  .integration-page .subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .integration-page p {
    font-size: 0.93rem;
    line-height: 1.7;
  }

  .install-cmd {
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
  }

  .code-block pre {
    padding: 1rem;
    padding-right: 3rem;
  }

  .code-block code {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .code-copy {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .integration-cta {
    padding: 3rem 1.2rem;
    margin-top: 2.5rem;
  }

  .integration-cta h2 {
    font-size: 1.4rem;
  }

  .integration-cta .install-cmd {
    display: block;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .related-section {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .integration-page h1 {
    font-size: 1.4rem;
  }

  .install-cmd {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .integration-page h2 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
  }

  .code-block code {
    font-size: 0.72rem;
  }

  .integration-cta h2 {
    font-size: 1.25rem;
  }
}
