/* prompt.css — prompt detail page */
.breadcrumb{--bs-breadcrumb-divider-color:var(--muted);font-size:.85rem;margin-bottom:1.25rem}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--text)}
.breadcrumb-item.active{color:var(--text)}

.detail-img{position:relative;aspect-ratio:4/3;border-radius:var(--radius);border:1px solid var(--line);background-size:cover;background-position:center;overflow:hidden}
.detail-img::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(8,10,20,.55))}
.tool-badge{position:absolute;z-index:1;top:1rem;inset-inline-start:1rem;background:rgba(10,12,24,.65);backdrop-filter:blur(6px);color:#fff;border-radius:999px;padding:.3rem .85rem;font-size:.8rem}
.detail-title{font-size:clamp(1.25rem,2.4vw,1.6rem);font-weight:800;margin-bottom:.6rem}

.prompt-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.prompt-box header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;background:var(--surface-2);border-bottom:1px solid var(--line)}
.prompt-box h2,.tips h2{font-size:1rem;font-weight:700;margin:0}
.prompt-box pre{margin:0;padding:1.1rem;white-space:pre-wrap;word-break:break-word;text-align:left;color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92rem;line-height:1.9}

.btn-copy.copied{background:#16a34a}
.btn-copy.copied:hover{background:#16a34a}

.tips{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.25rem}
.tips ul{margin:.8rem 0 0;padding:0;list-style:none}
.tips li{display:flex;gap:.6rem;font-size:.9rem;color:var(--text);padding:.35rem 0}
.tips li i{color:var(--accent);margin-top:.2rem}

.sticky-side{position:sticky;top:84px}
.info-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--line);font-size:.88rem}
.info-row:last-child{border:0}
.info-row span:first-child{color:var(--muted)}
.info-row i{margin-inline-end:.4rem}

@media(max-width:575.98px){.detail-img{aspect-ratio:auto;height:180px}}

/* rating + comments */
.rate-stars{display:flex;align-items:center;gap:.15rem}
.rate-stars button{background:none;border:0;padding:.1rem .2rem;font-size:1.6rem;line-height:1;color:var(--muted);transition:transform .15s,color .15s}
.rate-stars button:hover,.rate-stars button.on{color:var(--gold);transform:scale(1.1)}
.comment{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem 1rem;margin-bottom:.7rem}
.comment-head{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;margin-bottom:.3rem}
.comment-head small{color:var(--muted)}
.comment p{margin:0;font-size:.9rem;line-height:1.9;color:var(--text)}
/* a visitor's own comment that waits for approval */
.comment.pending{border-style:dashed;opacity:.85}
.badge-pending{display:inline-block;font-size:.72rem;font-weight:600;padding:.1rem .5rem;margin-inline-start:.4rem;border-radius:999px;background:var(--gold, #f5b301);color:#1a1a1a}

/* description box (above the prompt text) */
.desc-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.25rem}
.desc-box h2{font-size:1rem;font-weight:700;margin:0 0 .7rem;display:flex;align-items:center;gap:.45rem}
.desc-box h2 i{color:var(--accent)}
.desc-body{color:var(--text);font-size:.93rem;line-height:2;overflow-wrap:anywhere}

/* click the picture (or the button under it) to see it in full size */
.detail-img .img-open{position:absolute;inset:0;z-index:2;border:0;padding:0;background:transparent;cursor:zoom-in;display:flex;align-items:center;justify-content:center}
.detail-img .img-open i{display:grid;place-items:center;width:3.2rem;height:3.2rem;border-radius:50%;font-size:1.4rem;color:#fff;background:rgba(10,12,24,.62);backdrop-filter:blur(4px);opacity:0;transform:scale(.85);transition:opacity .2s,transform .2s}
.detail-img .img-open:hover i,.detail-img .img-open:focus-visible i{opacity:1;transform:none}
@media (hover:none){.detail-img .img-open{align-items:flex-end;justify-content:flex-start;padding:.6rem}.detail-img .img-open i{opacity:.9;transform:none;width:2.3rem;height:2.3rem;font-size:1.05rem}}
.img-dialog{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100%;height:100%;color:#fff}
.img-dialog::backdrop{background:rgba(5,7,15,.88);backdrop-filter:blur(3px)}
.img-dialog .dlg-inner{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:.75rem}
.img-dialog .dlg-bar{width:100%;max-width:1200px;display:flex;justify-content:space-between;align-items:center}
.img-dialog img{max-width:min(100%,1200px);max-height:calc(100vh - 5.5rem);width:auto;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.dlg-link{color:#fff;opacity:.85;font-size:.85rem;text-decoration:none}
.dlg-link:hover{opacity:1;text-decoration:underline}
.dlg-close{border:0;width:2.5rem;height:2.5rem;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:1rem;cursor:pointer}
.dlg-close:hover{background:rgba(255,255,255,.28)}
html.no-scroll{overflow:hidden}

/* full-size button under the picture; save/share sit at the bottom of the title column, on the same line */
.img-full{display:flex;width:100%;align-items:center;justify-content:center;gap:.4rem;margin-top:.5rem}
.side-actions{display:flex;gap:.5rem;flex-wrap:wrap;padding-top:.75rem}

/* premium prompt: locked box */
.prompt-locked .lock-body{position:relative;padding:1.5rem 1rem 1.75rem}
.prompt-locked .lock-fake{display:grid;gap:.6rem;max-width:520px;margin:0 auto 1rem;opacity:.35;filter:blur(2px)}
.prompt-locked .lock-fake i{display:block;height:.7rem;border-radius:6px;background:var(--text,#cbd5e1)}
.prompt-locked .lock-fake i:nth-child(2){width:88%}.prompt-locked .lock-fake i:nth-child(3){width:94%}.prompt-locked .lock-fake i:nth-child(4){width:60%}
.prompt-locked .lock-ic{font-size:1.8rem;color:var(--gold,#f5c451);display:block;margin-bottom:.4rem}
