* {
    box-sizing: border-box;
}

:root {
    --bg: #07111f;
    --bg-2: #0b1d34;
    --card: rgba(12, 26, 46, .78);
    --card-solid: #0d1b2f;
    --text: #f7fbff;
    --muted: #9fb1c7;
    --line: rgba(136, 170, 210, .22);
    --accent: #38bdf8;
    --accent-2: #8b5cf6;
    --accent-3: #22c55e;
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, .14);
    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, .14);
    --shadow: 0 26px 80px rgba(0, 0, 0, .38);
    --radius: 28px;
}

html[data-theme="light"] {
    --bg: #f4f7fb;
    --bg-2: #eaf1f8;
    --card: rgba(255, 255, 255, .82);
    --card-solid: #ffffff;
    --text: #111827;
    --muted: #5d6b7d;
    --line: rgba(17, 24, 39, .12);
    --accent: #0369a1;
    --accent-2: #6d28d9;
    --accent-3: #15803d;
    --danger: #b42318;
    --danger-bg: #ffe4e1;
    --success: #137333;
    --success-bg: #e6f4ea;
    --shadow: 0 22px 60px rgba(15, 23, 42, .12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .22), transparent 30rem),
        radial-gradient(circle at 85% 10%, rgba(139, 92, 246, .18), transparent 28rem),
        linear-gradient(135deg, var(--bg), var(--bg-2));
    color: var(--text);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 80%);
    z-index: -2;
}

html[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(3, 105, 161, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 105, 161, .07) 1px, transparent 1px);
}

.tech-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.tech-bg::before,
.tech-bg::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .45;
}

.tech-bg::before {
    width: 260px;
    height: 260px;
    right: 10%;
    top: 18%;
    background: rgba(56, 189, 248, .18);
}

.tech-bg::after {
    width: 220px;
    height: 220px;
    left: 8%;
    bottom: 14%;
    background: rgba(139, 92, 246, .16);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topo {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 17, 31, .68);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .topo {
    background: rgba(244, 247, 251, .74);
}

.topo-conteudo {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.marca {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.marca span {
    color: var(--muted);
    font-size: 14px;
}

.marca strong {
    font-size: 25px;
    letter-spacing: -0.05em;
}

.menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.menu a,
.tema-toggle {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: .2s ease;
}

html[data-theme="light"] .menu a,
html[data-theme="light"] .tema-toggle {
    background: rgba(255, 255, 255, .72);
}

.menu a:hover,
.tema-toggle:hover {
    color: var(--text);
    border-color: rgba(56, 189, 248, .55);
    transform: translateY(-1px);
}

.hero-blog {
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 300px;
    align-items: center;
    gap: 48px;
    padding: 74px 0;
}

.hero-texto h1 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(44px, 8vw, 88px);
    line-height: .92;
    letter-spacing: -0.075em;
}

.hero-texto > p:not(.etiqueta) {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 20px;
}

.etiqueta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(56, 189, 248, .10);
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
}

.etiqueta::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-3);
    box-shadow: 0 0 16px var(--accent-3);
}

.hero-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.botao-principal,
.botao-fantasma,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: .2s ease;
}

.botao-principal:hover,
.botao-fantasma:hover,
button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.botao-fantasma {
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    border: 1px solid var(--line);
}

html[data-theme="light"] .botao-fantasma {
    background: rgba(255, 255, 255, .78);
}

.card-avatar {
    position: relative;
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
}

.card-avatar::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, .22), transparent 36%),
        linear-gradient(315deg, rgba(139, 92, 246, .18), transparent 42%);
    pointer-events: none;
}

.card-avatar > * {
    position: relative;
    z-index: 1;
}

.avatar-glow {
    width: 170px;
    height: 170px;
    margin: 0 auto 18px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(56, 189, 248, .10);
    border: 1px solid rgba(56, 189, 248, .35);
    box-shadow:
        0 0 0 8px rgba(56, 189, 248, .06),
        0 0 38px rgba(56, 189, 248, .22);
}

.avatar-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.card-avatar h2 {
    margin: 20px 0 4px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.card-avatar p {
    margin: 0;
    color: var(--muted);
}

.secao-titulo {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

.secao-titulo p {
    margin: 0;
    color: var(--accent);
    font-weight: bold;
}

.secao-titulo h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -0.06em;
}

.grade-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding-bottom: 78px;
}

.card-post {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .16);
    overflow: hidden;
    transition: .22s ease;
}

.card-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(56, 189, 248, .42);
}

.imagem-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 25% 20%, rgba(56, 189, 248, .34), transparent 32%),
        linear-gradient(135deg, rgba(10, 31, 56, .9), rgba(15, 23, 42, .95));
    overflow: hidden;
}

.imagem-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: .35s ease;
}

.card-post:hover .imagem-card img {
    transform: scale(1.045);
}

.placeholder-post span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 26px;
    border: 1px solid rgba(56, 189, 248, .32);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: -0.08em;
}

.conteudo-card {
    padding: 22px;
}

.meta-datas {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
}

.meta-datas span,
.info-edicao span,
.datas-admin span {
    display: inline-flex;
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(56, 189, 248, .08);
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
}

.meta-datas span:first-child,
.meta-datas-post span:first-child {
    color: var(--accent);
}

.meta-datas-post {
    margin-bottom: 18px;
}

.conteudo-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.conteudo-card h2 a:hover {
    color: var(--accent);
}

.resumo {
    margin: 14px 0 18px;
    color: var(--muted);
}

.autor-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.autor-mini img,
.autor-mini span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .35);
    object-fit: cover;
}

.autor-mini img {
    object-position: center 18%;
}

.autor-mini span {
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, .10);
    color: var(--accent);
    font-size: 13px;
    font-weight: bold;
}

.autor-mini p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.autor-mini a,
.autor-mini strong {
    color: var(--text);
    font-weight: bold;
}

.link-leitura {
    display: inline-flex;
    color: var(--accent);
    font-weight: bold;
}

.link-leitura:hover {
    text-decoration: underline;
}

.vazio {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    margin: 28px 0 80px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.vazio h1,
.vazio h2 {
    margin: 0 0 8px;
    letter-spacing: -0.04em;
}

.vazio p {
    color: var(--muted);
}

.post-individual {
    max-width: 850px;
    margin: 58px auto 82px;
    border: 1px solid var(--line);
    border-radius: 36px;
    padding: clamp(24px, 5vw, 58px);
    background: var(--card);
    box-shadow: var(--shadow);
}

.acoes-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.voltar {
    display: inline-flex;
    color: var(--muted);
    font-weight: bold;
}

.voltar:hover {
    color: var(--accent);
}

.editar-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .07);
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
}

.editar-post:hover {
    border-color: rgba(56, 189, 248, .52);
}

.post-individual h1 {
    margin: 0 0 30px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: .94;
    letter-spacing: -0.075em;
}

.imagem-post {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    object-position: center center;
    border-radius: 28px;
    margin: 0 0 38px;
    border: 1px solid var(--line);
}

.estatisticas-post {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: -12px 0 32px;
}

.estatisticas-post > span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    font-size: 14px;
    font-weight: bold;
}

html[data-theme="light"] .estatisticas-post > span {
    background: rgba(255, 255, 255, .76);
}

.botao-curtir {
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line);
    color: var(--text);
}

.botao-curtir:hover {
    border-color: rgba(248, 113, 113, .55);
}

.botao-curtir.curtido {
    background: rgba(248, 113, 113, .14);
    border-color: rgba(248, 113, 113, .42);
    color: #fb7185;
}

.botao-curtir:disabled {
    opacity: .7;
    cursor: wait;
}

.icone-coracao {
    font-size: 21px;
    line-height: 1;
}

.compartilhar-post {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.botao-compartilhar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s ease;
}

.botao-compartilhar:hover {
    border-color: rgba(56, 189, 248, .52);
    transform: translateY(-2px);
}

.botao-compartilhar.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .24);
}

.botao-compartilhar.whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 211, 102, .32);
}

html[data-theme="light"] .botao-compartilhar {
    background: rgba(255, 255, 255, .76);
}

html[data-theme="light"] .botao-compartilhar.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.feedback-copia {
    min-height: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(2px);
    transition: .2s ease;
}

.feedback-copia.visivel {
    opacity: 1;
    transform: translateY(0);
}

.texto-post {
    color: var(--text);
    font-size: 20px;
    line-height: 1.85;
}

.texto-post a {
    color: var(--accent);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
    word-break: break-word;
}

.assinatura {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.assinatura-avatar img,
.assinatura-avatar span {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .38);
    object-fit: cover;
}

.assinatura-avatar img {
    object-position: center 18%;
}

.assinatura-avatar span {
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, .10);
    color: var(--accent);
    font-weight: bold;
}

.assinatura span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.assinatura a,
.assinatura strong {
    color: var(--text);
    font-size: 18px;
    font-weight: bold;
}

.comentarios {
    margin-top: 54px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.comentarios-cabecalho {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.comentarios-cabecalho h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.comentarios-cabecalho > span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.form-comentario {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, .045);
    margin-bottom: 26px;
}

html[data-theme="light"] .form-comentario {
    background: rgba(255, 255, 255, .74);
}

.comentario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.campo-isca {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.lista-comentarios {
    display: grid;
    gap: 14px;
}

.comentario-item {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, .045);
}

html[data-theme="light"] .comentario-item {
    background: rgba(255, 255, 255, .72);
}

.comentario-topo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.comentario-topo strong {
    font-size: 17px;
}

.comentario-topo span {
    color: var(--muted);
    font-size: 13px;
}

.comentario-item p {
    margin: 0;
    color: var(--text);
}

.telefone-admin {
    width: fit-content;
    margin-top: 14px;
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(56, 189, 248, .10);
    color: var(--muted);
    font-size: 13px;
}

.telefone-admin strong {
    color: var(--accent);
}

.rodape {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    color: var(--muted);
    font-size: 14px;
}

.admin-container {
    padding: 44px 0 72px;
}

.login-card,
.painel-form,
.painel-lista {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.login-card {
    max-width: 430px;
    margin: 58px auto;
}

.login-card h1,
.painel-form h1,
.painel-lista h2 {
    margin: 0 0 8px;
    letter-spacing: -0.05em;
}

.login-card p,
.texto-muted,
.form-ajuda {
    color: var(--muted);
}

.form-ajuda {
    margin: 8px 0 0;
    font-size: 13px;
}

.opcional {
    color: var(--muted);
    font-size: 13px;
    font-weight: normal;
}

.info-edicao {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 18px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 24px;
    align-items: start;
}

form label {
    display: block;
    margin: 18px 0 7px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    outline: none;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea {
    background: rgba(255, 255, 255, .88);
}

input:focus,
textarea:focus {
    border-color: rgba(56, 189, 248, .62);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
}

textarea {
    resize: vertical;
}

.contador-texto {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.preview-imagem {
    display: none;
    width: 100%;
    margin-top: 12px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 25% 20%, rgba(56, 189, 248, .22), transparent 32%),
        linear-gradient(135deg, rgba(10, 31, 56, .74), rgba(15, 23, 42, .88));
}

.preview-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.acoes-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.alerta {
    padding: 13px 15px;
    border-radius: 16px;
    margin: 18px 0;
    font-weight: bold;
}

.alerta.erro {
    color: var(--danger);
    background: var(--danger-bg);
}

.alerta.sucesso {
    color: var(--success);
    background: var(--success-bg);
}

.lista-admin {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.item-admin {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, .045);
}

html[data-theme="light"] .item-admin {
    background: rgba(255, 255, 255, .7);
}

.item-admin h3 {
    margin: 0 0 10px;
    line-height: 1.2;
}

.datas-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.acoes-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acoes-admin a {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: bold;
}

html[data-theme="light"] .acoes-admin a {
    background: rgba(255, 255, 255, .82);
}

.acoes-admin a:hover {
    border-color: rgba(56, 189, 248, .52);
}

.acoes-admin .link-excluir {
    background: var(--danger-bg);
    color: var(--danger);
}

.imagem-atual {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, .045);
}

html[data-theme="light"] .imagem-atual {
    background: rgba(255, 255, 255, .7);
}

.imagem-atual p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: bold;
}

.imagem-atual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    object-fit: cover;
    object-position: center center;
    border: 1px solid var(--line);
}

.opcao-remover {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: normal;
}

.opcao-remover input {
    width: auto;
}

input[type="file"] {
    padding: 11px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    margin-right: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

/* Editor visual do blog */
.editor-blog {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .045);
}

html[data-theme="light"] .editor-blog {
    background: rgba(255, 255, 255, .74);
}

.barra-editor {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .045);
}

html[data-theme="light"] .barra-editor {
    background: rgba(255, 255, 255, .72);
}

.barra-editor button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    font-size: 13px;
    font-weight: bold;
    box-shadow: none;
}

.barra-editor button:hover {
    border-color: rgba(56, 189, 248, .52);
    transform: translateY(-1px);
    filter: none;
}

.separador-editor {
    width: 1px;
    height: 24px;
    background: var(--line);
    margin: 0 2px;
}

.editor-texto {
    min-height: 360px;
    padding: 18px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
    outline: none;
}

.editor-texto:focus {
    box-shadow: inset 0 0 0 3px rgba(56, 189, 248, .12);
}

.editor-texto:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
}

.editor-texto p,
.editor-texto h2,
.editor-texto h3,
.editor-texto blockquote,
.editor-texto ul,
.editor-texto ol {
    margin-top: 0;
}

.editor-texto h2 {
    margin: 24px 0 12px;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.editor-texto h3 {
    margin: 22px 0 10px;
    font-size: 23px;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.editor-texto blockquote {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    background: rgba(56, 189, 248, .09);
    color: var(--text);
}

.editor-texto a {
    color: var(--accent);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.editor-texto hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 24px 0;
}

.campo-texto-editor {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Texto formatado publicado */
.texto-post p {
    margin: 0 0 22px;
}

.texto-post h2 {
    margin: 42px 0 16px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.texto-post h3 {
    margin: 32px 0 12px;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.texto-post ul,
.texto-post ol {
    margin: 0 0 24px;
    padding-left: 1.35em;
}

.texto-post li {
    margin: 8px 0;
}

.texto-post blockquote {
    margin: 34px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--accent);
    border-radius: 20px;
    background: rgba(56, 189, 248, .10);
    color: var(--text);
    font-size: 21px;
    line-height: 1.65;
}

.texto-post blockquote p:last-child {
    margin-bottom: 0;
}

.texto-post hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 38px 0;
}

.texto-post strong,
.texto-post b {
    font-weight: 800;
}

.texto-post em,
.texto-post i {
    color: inherit;
}

@media (max-width: 960px) {
    .hero-blog,
    .grade-posts,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero-blog {
        min-height: auto;
        padding: 54px 0;
    }

    .card-avatar {
        max-width: 340px;
    }
}

@media (max-width: 640px) {
    .topo-conteudo {
        min-height: auto;
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .menu {
        width: 100%;
    }

    .menu a,
    .tema-toggle {
        flex: 1;
        justify-content: center;
    }

    .hero-texto h1,
    .post-individual h1 {
        letter-spacing: -0.058em;
    }

    .hero-texto > p:not(.etiqueta),
    .texto-post {
        font-size: 18px;
    }

    .avatar-glow {
        width: 150px;
        height: 150px;
    }

    .conteudo-card,
    .login-card,
    .painel-form,
    .painel-lista {
        padding: 20px;
    }

    .post-individual {
        border-radius: 26px;
    }

    .assinatura {
        align-items: flex-start;
    }

    .comentarios-cabecalho {
        align-items: flex-start;
        flex-direction: column;
    }

    .comentario-grid {
        grid-template-columns: 1fr;
    }

    .comentario-topo {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .compartilhar-post {
        width: 100%;
    }

    .botao-compartilhar {
        flex: 1;
        min-width: 150px;
    }
}