@import './prompt-column-detail.css';

.pc-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 28px 0;
}
.pc-tabs button,
.pc-list-tools button,
.pc-confirm button {
  font: inherit;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  padding: 10px 15px;
  background: var(--raised, #ffffff0a);
  color: inherit;
}
.pc-tabs button {
  color: var(--muted, #929299);
  background: transparent;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.pc-tabs [aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent, #f3d458) 20%, transparent);
  color: var(--ink, #ececef);
}
.pc-tabs button:hover {
  background: color-mix(in srgb, var(--accent, #f3d458) 12%, transparent);
  transform: scale(1.015);
}
.pc-list-tools {
  display: flex;
  gap: 12px;
}
/* Only the library's segmented navigation uses the shared topbar surface.
   Administrator preview controls retain their existing independent layout. */
.pc-tabs[data-prompt-tabs] {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.pc-tabs[data-prompt-tabs] > button {
  position: relative;
  z-index: 1;
  flex: none;
  border-radius: 999px;
  background: transparent;
  transition: color var(--motion-fast) ease;
}
.pc-tabs[data-prompt-tabs] > button:hover {
  background: transparent;
  transform: none;
  color: var(--ink);
}
.pc-tabs[data-prompt-tabs] > button[aria-pressed="true"] {
  color: #111;
  background: transparent;
}
:root:not([data-theme="dark"]) [data-prompt-tabs]:has(button[aria-pressed="true"]:hover) .nav-active-indicator {
  background: var(--accent-hover);
}
.pc-list-tools input {
  flex: 1;
  background: var(--prompt-panel, var(--panel, #171719));
  border: 1px solid #8883;
  border-radius: 10px;
  padding: 12px;
  color: inherit;
  font: inherit;
}
.pc-library-search input { min-width: 0; }
.pc-library-search [data-pc-refresh] {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 7px;
  margin-right: -7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #929299);
}
.pc-library-search [data-pc-refresh]:hover { background: #8881; color: var(--ink); }
.pc-column-meta { display: flex; justify-content: space-between; gap: 12px; }
.pc-column-price { color: var(--accent-text, #b7a76b); }
.pc-confirm {
  border: 1px solid #8883;
  border-radius: 18px;
  background: var(--prompt-panel, var(--panel, #171719));
  color: var(--prompt-text, var(--ink, #ececef));
  box-shadow: 0 22px 100px #0005;
}
.pc-confirm {
  max-width: 440px;
  width: calc(100vw - 48px);
  padding: 28px;
  box-sizing: border-box;
}
.pc-confirm::backdrop {
  background: #0008;
  backdrop-filter: blur(5px);
}
.pc-detail-header {
  text-align: left !important;
  display: grid;
  gap: 15px;
  padding: 12px 0 26px;
}
.pc-detail-header h2 {
  font-size: 30px;
  margin: 0;
}
.pc-detail-header p {
  margin: 0;
  line-height: 1.7;
}
.pc-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent, #c9b36c);
}
.pc-muted,
.pc-rights {
  color: var(--muted, #96969d);
  font-size: 12px;
  line-height: 1.7;
}
.pc-primary {
  background: var(--accent, #e5c957) !important;
  color: #211e14 !important;
  justify-self: start;
}
.pc-owned {
  color: var(--accent, #d1ba72);
  font-size: 13px;
}
.pc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-tags span {
  font-size: 11px;
  padding: 5px 8px;
  background: #8881;
  border-radius: 5px;
}
.pc-entry {
  padding: 24px 0;
  border-top: 1px solid #8883;
}
.pc-entry header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 15px;
}
.pc-entry h3 {
  font-size: 17px;
}
.pc-entry h3 span {
  font-size: 12px;
  color: #96969d;
}
.pc-entry header small {
  font-size: 11px;
  color: #aaa;
}
.pc-entry pre {
  font: 13px/1.8 inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #8881;
  border-radius: 10px;
  padding: 20px;
}
.pc-entry figure {
  margin: 15px 0;
}
.pc-entry figure img,
.pc-entry figure video {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.pc-entry figcaption {
  color: #999;
  font-size: 12px;
  padding-top: 8px;
}
.pc-parameters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.pc-parameters div {
  display: flex;
  gap: 8px;
  background: #8881;
  padding: 8px;
  border-radius: 7px;
}
.pc-parameters dt {
  color: #999;
}
.pc-parameters dd {
  margin: 0;
}
.pc-price {
  font-size: 28px;
}
.pc-confirm footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.pc-confirm label {
  display: grid;
  gap: 10px;
}
.pc-confirm select {
  max-width: 100%;
  font: inherit;
  padding: 10px;
  border-radius: 8px;
  background: inherit;
  color: inherit;
  border: 1px solid #8885;
}
.pc-confirm button:disabled,
.pc-dialog button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
[data-prompt-columns][hidden],
[data-free-prompts][hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .pc-detail-header h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc-tabs button {
    transition: none;
  }
  .pc-tabs button:hover {
    transform: none;
  }
}
