/*
 * Draqee Copy Box
 * A reusable "prompt card" widget: a title + copyable content block
 * with a one-click Copy button. Inserted via the "Add Prompt" button
 * in the admin CKEditor (Tool full description / Blog content) and
 * rendered on the public Tool and Blog pages.
 *
 * Self-contained dark styling so it looks right regardless of the
 * surrounding page's light/dark theme.
 */

.draqee-copy-box {
    position: relative;
    margin: 18px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    font-family: Inter, Arial, sans-serif;
}

.draqee-copy-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.draqee-copy-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.draqee-copy-box-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 7px;
    background: #00b8d4;
    color: #001316;
    cursor: pointer;
    user-select: none;
    transition: .15s;
    line-height: 1;
}

.draqee-copy-box-copy:hover {
    opacity: .88;
}

.draqee-copy-box-copy.is-copied {
    background: #22c55e;
    color: #04170a;
}

.draqee-copy-box-copy-icon {
    font-size: 13px;
    line-height: 1;
}

.draqee-copy-box-body {
    margin: 0;
    padding: 14px 16px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 480px) {
    .draqee-copy-box-title {
        max-width: 140px;
    }
}