/* ============================================================
   Simple Typing - certificate.css
   Certificate preview styling.
   ============================================================ */

#st-plugin #st-certificate {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 60px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 22%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.12), transparent 20%),
    linear-gradient(180deg, #08111f, #0f1b31 55%, #13233e 100%);
  border: 1px solid rgba(96, 165, 250, 0.32);
  box-shadow: 0 34px 60px rgba(8, 20, 46, 0.24);
  color: #e2e8f0;
  overflow: hidden;
}

#st-plugin #st-certificate::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(148, 197, 255, 0.16);
  border-radius: 18px;
  pointer-events: none;
}

#st-plugin .cert-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(96, 165, 250, 0.68);
  border-style: solid;
  opacity: 0.78;
}

#st-plugin .cert-corner-tl {
  top: 22px;
  left: 22px;
  border-width: 2px 0 0 2px;
}

#st-plugin .cert-corner-tr {
  top: 22px;
  right: 22px;
  border-width: 2px 2px 0 0;
}

#st-plugin .cert-corner-bl {
  bottom: 22px;
  left: 22px;
  border-width: 0 0 2px 2px;
}

#st-plugin .cert-corner-br {
  bottom: 22px;
  right: 22px;
  border-width: 0 2px 2px 0;
}

#st-plugin .cert-glow-1,
#st-plugin .cert-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#st-plugin .cert-glow-1 {
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0));
}

#st-plugin .cert-glow-2 {
  bottom: -90px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
}

#st-plugin #st-certificate > *:not(.cert-corner):not(.cert-glow-1):not(.cert-glow-2) {
  position: relative;
  z-index: 1;
}

#st-plugin .cert-header {
  text-align: center;
  margin-bottom: 28px;
}

#st-plugin .cert-issuer {
  margin-bottom: 10px;
  color: #93c5fd;
  font-family: var(--st-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

#st-plugin .cert-title {
  font-family: var(--st-display);
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #f8fbff;
}

#st-plugin .cert-subtitle {
  margin-top: 8px;
  color: #7c91b6;
  font-size: 0.9rem;
}

#st-plugin .cert-divider {
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.46), rgba(96, 165, 250, 0));
}

#st-plugin .cert-body {
  text-align: center;
}

#st-plugin .cert-presented {
  color: #8fa3c5;
  font-size: 0.88rem;
}

#st-plugin .cert-name {
  min-height: 2.8rem;
  margin: 14px 0 16px;
  color: #d9e7ff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
}

#st-plugin .cert-achievement {
  max-width: 620px;
  margin: 0 auto 26px;
  color: #b5c4de;
  font-size: 0.95rem;
  line-height: 1.9;
}

#st-plugin .cert-achievement strong {
  color: #f8fbff;
}

#st-plugin .cert-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(96, 165, 250, 0.14);
  overflow: hidden;
}

#st-plugin .cert-stat {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}

#st-plugin .cert-stat-divider {
  width: 1px;
  background: rgba(96, 165, 250, 0.12);
}

#st-plugin .cert-stat-val {
  color: #f8fbff;
  font-family: var(--st-mono);
  font-size: 1.9rem;
  font-weight: 800;
}

#st-plugin .cert-stat-label {
  margin-top: 8px;
  color: #8095b7;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#st-plugin .cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 30px;
}

#st-plugin .cert-date {
  color: #93a9cc;
  font-size: 0.9rem;
  font-weight: 600;
}

#st-plugin .cert-id {
  margin-top: 4px;
  color: #6b7f9f;
  font-family: var(--st-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

#st-plugin .cert-signature {
  text-align: center;
}

#st-plugin .cert-sig-name {
  color: #cde1ff;
  font-family: var(--st-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

#st-plugin .cert-sig-line {
  width: 150px;
  height: 1px;
  margin: 8px auto 6px;
  background: rgba(148, 197, 255, 0.28);
}

#st-plugin .cert-sig-label {
  color: #6f83a5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#st-plugin .cert-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.38);
  background: rgba(255, 255, 255, 0.03);
}

#st-plugin .cert-seal-star {
  color: #93c5fd;
  font-size: 1.1rem;
}

#st-plugin .cert-seal-text {
  color: #7489ac;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (max-width: 820px) {
  #st-plugin #st-certificate {
    padding: 34px 22px;
    border-radius: 22px;
  }

  #st-plugin .cert-stats {
    flex-direction: column;
  }

  #st-plugin .cert-stat-divider {
    width: 100%;
    height: 1px;
  }

  #st-plugin .cert-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
