/* Card estilo post social (X) — usado com html2canvas; fundo sólido */
.tpc-capture {
    --tpc-outer: #1e2a4a;
    --tpc-text: #0f1419;
    --tpc-muted: #536471;
    --tpc-line: #eff3f4;
    --tpc-accent: #1d9bf0;
    --tpc-heart: #f91880;
    --tpc-media-bg: #e8ecf0;
    --tpc-media-text: #0d9488;

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.tpc-capture *,
.tpc-capture *::before,
.tpc-capture *::after {
    box-sizing: border-box;
}

/* Área de captura html2canvas: quadrada 1:1 (PNG final na mesma proporção) */
#post-card-capture {
    width: 600px;
    height: 600px;
    flex-shrink: 0;
    overflow: hidden;
}

.tpc-outer {
    background: var(--tpc-outer);
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 20px;
}

.tpc-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    width: 340px;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.tpc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.tpc-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tpc-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c896, #0a8f6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tpc-avatar--brand {
    /* mesmo verde do EP (sem roxo) */
    font-size: 13px;
}

.tpc-name-line {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tpc-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--tpc-text);
}

.tpc-badge {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tpc-sub {
    font-size: 13px;
    color: var(--tpc-muted);
    margin-top: 2px;
    line-height: 1.3;
    white-space: pre-line;
}

.tpc-dots {
    color: var(--tpc-muted);
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    user-select: none;
}

.tpc-bio {
    font-size: 14px;
    color: var(--tpc-text);
    line-height: 1.55;
    margin: 0 0 14px;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.tpc-bio strong {
    font-weight: 600;
}

.tpc-media {
    border-radius: 14px;
    overflow: hidden;
    min-height: 100px;
    height: 120px;
    background: var(--tpc-media-bg);
    border: 1px solid #dde4ea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    text-align: center;
    color: var(--tpc-media-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    word-break: break-all;
}

.tpc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--tpc-line);
    flex-shrink: 0;
}

.tpc-metric {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tpc-muted);
    font-size: 13px;
}

.tpc-metric svg {
    flex-shrink: 0;
}

.tpc-metric--heart {
    color: var(--tpc-heart);
}

.tpc-metric--heart svg {
    fill: var(--tpc-heart);
    stroke: none;
}

.tpc-capture--offscreen {
    position: fixed;
    left: -10000px;
    top: 0;
    z-index: 0;
    pointer-events: none;
}
