/* Publish Status - inline badge with link actions
 * -------------------------------------------------------------------------- */

.publish-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  position: relative;
}

/* Badge (pill shape) */
.publish-status__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2em 0.625em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

/* Live variant - green */
.publish-status__badge--live {
  background: oklch(0.92 0.08 145);
  color: oklch(0.35 0.12 145);
}

[data-color-scheme="dark"] .publish-status__badge--live {
  background: oklch(0.30 0.08 145);
  color: oklch(0.85 0.12 145);
}

/* Pulsing dot */
.publish-status__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.55 0.18 145);
  animation: publish-status-pulse 2s ease-in-out infinite;
}

[data-color-scheme="dark"] .publish-status__dot {
  background: oklch(0.70 0.18 145);
}

@keyframes publish-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scheduled variant - amber */
.publish-status__badge--scheduled {
  background: oklch(0.92 0.08 85);
  color: oklch(0.40 0.12 85);
}

[data-color-scheme="dark"] .publish-status__badge--scheduled {
  background: oklch(0.30 0.08 85);
  color: oklch(0.85 0.12 85);
}

/* Icon buttons (external link, copy) */
.publish-status__link,
.publish-status__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-border--light);
  background: var(--color-bg--surface);
  color: var(--color-ink--surface);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.publish-status__link:hover,
.publish-status__copy:hover {
  background: var(--color-bg--container);
  border-color: var(--color-border);
}

.publish-status__link svg,
.publish-status__copy svg {
  width: 16px;
  height: 16px;
}

/* Copy button relative positioning for tooltip */
.publish-status__copy {
  position: relative;
}

.publish-status__copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* "Copied!" tooltip */
.publish-status__tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-bg--inverse);
  color: var(--color-ink--inverse);
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: var(--layer-tooltip, 100);
}

.publish-status__tooltip.show {
  opacity: 1;
}

/* Mobile: keep compact */
@media (max-width: 640px) {
  .publish-status {
    gap: 0.25rem;
  }

  .publish-status__link,
  .publish-status__copy {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publish-status__dot {
    animation: none;
  }
}
