/* code-copy.css — Styling for code block copy buttons (Glass v2) */

.code-block-wrapper {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.code-block-wrapper:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.32);
}

.code-copy-btn:active {
  transform: scale(0.96);
}

/* Success feedback */
.code-copy-btn--ok {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

/* Error feedback */
.code-copy-btn--err {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

/* Language label */
.code-lang-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.5);
  pointer-events: none;
  z-index: 2;
}

/* Table mobile scroll (Phase 5) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 480px;
}
