/* PREVIEW.css — prévia visual estilo mensagem do Discord */

.ed-preview-wrap {
    margin-bottom: 14px;
}

.dc-preview-caption {
    font-size: var(--p10);
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dc-msg {
    display: flex;
    gap: 12px;
    background: #1a1d23;
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    padding: 12px 14px;
}

.dc-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-muted);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-avatar-icon {
    width: 22px;
    height: 22px;
}

.dc-msg-body {
    min-width: 0;
    flex: 1;
}

.dc-msg-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.dc-msg-author {
    font-size: var(--p14);
    font-weight: var(--fw-semi);
    color: var(--text-bright);
}

.dc-msg-bottag {
    font-size: 9px;
    font-weight: var(--fw-bold);
    background: var(--accent);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.4;
}

.dc-msg-content {
    font-size: var(--p14);
    color: var(--text);
    line-height: 1.5;
}

.dc-plaintext {
    white-space: pre-wrap;
}

/* ── Embed ──────────────────────────────────────────────── */

.dc-embed {
    position: relative;
    margin-top: 6px;
    max-width: 460px;
    background: #1e2128;
    border-radius: 4px;
    border-left: 4px solid var(--embed-color, #2b7fff);
    padding: 10px 14px;
}

.dc-embed-empty {
    font-size: var(--p12);
    color: var(--text-muted);
    font-style: italic;
}

.dc-embed-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--p13);
    font-weight: var(--fw-semi);
    color: var(--text-bright);
    margin-bottom: 6px;
}

.dc-embed-author-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.dc-embed-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.dc-embed-text {
    min-width: 0;
    flex: 1;
}

.dc-embed-title {
    font-size: var(--p14);
    font-weight: var(--fw-semi);
    color: var(--text-bright);
    margin-bottom: 4px;
}

.dc-embed-desc {
    font-size: var(--p13);
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.dc-quote {
    border-left: 3px solid var(--text-faint);
    padding-left: 8px;
    color: var(--text-dim);
    margin: 2px 0;
}

.dc-embed-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 4px;
    object-fit: cover;
}

.dc-embed-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 10px;
}

.dc-embed-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: var(--p11);
    color: var(--text-dim);
}

.dc-embed-footer-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Button ─────────────────────────────────────────────── */

.dc-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 3px;
    background: var(--btn-color, #4E5058);
    color: #fff;
    font-size: var(--p13);
    font-weight: var(--fw-medium);
    pointer-events: none;
    user-select: none;
}

.dc-button-emoji {
    font-size: var(--p14);
    line-height: 1;
}
