/* =========================================================
   SustainAxis Academy — credential sharing styles
   ---------------------------------------------------------
   Loaded by the course pages and by courses/certificate.html.
   The certificate page is a standalone, print-critical artifact and is
   deliberately NOT coupled to styles.css, so every design token here
   carries a literal fallback and this file stands on its own.
   ========================================================= */

/* =========================================================
   Credential sharing — "I earned this" rather than
   "here is a course you might like". Used on the course
   completion panel and on the certificate page itself.
   ========================================================= */
.cred-share {
  margin-top: var(--s-6, 24px);
  padding-top: var(--s-6, 24px);
  border-top: 1px solid rgba(15,23,42,0.10);
  text-align: left;
}
.cred-share__lead {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-900, #0F172A);
  margin-bottom: var(--s-2, 8px);
}
.cred-share__lead svg { color: var(--green-600, #157A33); flex-shrink: 0; }
.cred-share__sub {
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-600, #475569);
  max-width: 52ch;
  margin: 0 auto var(--s-5, 20px);
  line-height: 1.6;
}

/* The LinkedIn profile action is the one that earns lasting value, so it
   is visually the primary button rather than one chip among six. */
.cred-share__primary {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-2, 8px);
  margin-bottom: var(--s-5, 20px);
}
.cred-share__li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  background: #0A66C2;
  color: var(--white, #FFFFFF);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.cred-share__li:hover { background: #084b8f; transform: translateY(-1px); }
.cred-share__li:focus-visible { outline: 2px solid var(--green-500, #1B8E3D); outline-offset: 3px; }
.cred-share__note {
  font-size: 0.8125rem;
  color: var(--slate-500, #64748B);
  text-align: center;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cred-share__row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.cred-share__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 999px;
  color: var(--slate-700, #334155);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.cred-share__btn:hover { transform: translateY(-1px); color: var(--white, #FFFFFF); }
.cred-share__btn svg { flex-shrink: 0; }
.cred-share__btn:focus-visible { outline: 2px solid var(--green-500, #1B8E3D); outline-offset: 2px; }
.cred-share__btn--linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.cred-share__btn--whatsapp:hover { background: #25D366; border-color: #25D366; }
.cred-share__btn--x:hover        { background: #0F172A; border-color: #0F172A; }
.cred-share__btn--facebook:hover { background: #1877F2; border-color: #1877F2; }
.cred-share__btn--email:hover    { background: var(--slate-700, #334155); border-color: var(--slate-700, #334155); }
.cred-share__btn--copy:hover     { background: var(--green-500, #1B8E3D); border-color: var(--green-500, #1B8E3D); }
.cred-share__btn--copy.is-copied {
  background: var(--green-500, #1B8E3D); border-color: var(--green-500, #1B8E3D); color: var(--white, #FFFFFF);
}

.cred-share__draft {
  width: 100%;
  max-width: 560px;
  margin: var(--s-4, 16px) auto 0;
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--r-md, 10px);
  background: var(--white, #FFFFFF);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-800, #1E293B);
  /* Tall enough to show the whole default draft without scrolling: three
     paragraphs plus the two blank lines between them. */
  min-height: 176px;
  margin-bottom: var(--s-4, 16px);
  resize: vertical;
}
.cred-share__draft:focus {
  outline: 0;
  border-color: var(--green-500, #1B8E3D);
  box-shadow: 0 0 0 3px rgba(27,142,61,.12);
}

@media (max-width: 600px) {
  .cred-share__row .cred-share__btn { flex: 1; justify-content: center; min-width: 104px; }
}
