/* Shortcodes inherit page theme — no card background */
.bc-sc {
  background: transparent;
  color: inherit;
  font-family: inherit;
  max-width: 960px;
  margin: 0 0 1.5rem;
}

.bc-sc-instruction {
  margin: 0 0 0.85rem;
  font-size: inherit;
  line-height: 1.55;
  color: inherit;
}

.bc-sc-instruction strong {
  font-weight: 600;
}

/* Repo shortcode */
.bc-sc-repo-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.bc-sc-repo-url {
  flex: 1;
  min-width: 200px;
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-radius: 8px;
  font-size: 0.92em;
  word-break: break-all;
  background: color-mix(in srgb, currentColor 6%, transparent);
}

@supports not (background: color-mix(in srgb, currentColor 6%, transparent)) {
  .bc-sc-repo-url {
    background: rgba(127, 127, 127, 0.08);
  }
}

/* Open browser shortcode */
.bc-sc-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: #4361ee;
  color: #fff;
}

.bc-sc-open-btn:hover {
  opacity: 0.92;
}

.bc-sc-open-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bc-sc-key-gate {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.bc-sc-key-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bc-sc-key-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bc-sc-api-key {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 8px;
  font-size: 14px;
}

.bc-sc-key-submit {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #4361ee;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.bc-sc-key-submit:hover {
  opacity: 0.92;
}

.bc-sc-key-error {
  margin: 10px 0 0;
  color: #b32d2e;
  font-size: 13px;
}

/* Copy button */
.bc-sc-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.bc-sc-copy:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

@supports not (background: color-mix(in srgb, currentColor 8%, transparent)) {
  .bc-sc-copy:hover {
    background: rgba(127, 127, 127, 0.1);
  }
}

.bc-sc-copy.copied {
  border-color: #2a9d8f;
  color: #2a9d8f;
}

.bc-error {
  color: #b32d2e;
  background: #fcf0f1;
  border-left: 4px solid #d63638;
  padding: 10px 14px;
}
