/*
Theme Name: Letras Digitais
Theme URI: https://letrasdigitais.com.br
Author: Avila Silva Villa
Author URI: https://seudominio.com
Description: Tema personalizado para o site Letras Digitais.
Version: 1.0
Text Domain: letras-digitais
*/

/* ===============================
   REGRAS BÁSICAS DO TEMA
   =============================== */
html, body {
    margin: 0;
    padding: 0;
    background: url('pergaminho-fundo.png') repeat-y;
    background-size: cover;
    font-family: 'Milonga', serif;
}

#page,
.site,
.site-content,
.entry-content {
    margin: 0;
    padding: 0;
}

/* ===============================
   TOPO COMPLETO — SVG, Botões, Pesquisa
   =============================== */
#ld-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 5px; /* diminui para subir conteúdo */
    padding-bottom: 20px;
    z-index: 2;
}

#ld-header .ld-header-inner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===============================
   FITAS / LETRAS ANIMADAS ATRÁS DO TÍTULO
   =============================== */

/* Header da página de cadastro */
.ld-cabecalho-cadastro {
    position: relative;
    height: 220px;
    overflow: hidden;
    text-align: center;
}

/* Container das fitas */
#ld-floating-ribbons {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 1;
}

/* Container das letras animadas */
#ld-floating-letters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

/* Letras criadas via JS */
.ld-ribbon {
    position: absolute;
    font-family: 'Milonga', cursive;
    font-size: 70px;
    font-weight: bold;
    opacity: 1;
    white-space: nowrap;
    user-select: none;
    transition: transform 0.1s linear;
}

/* Letras flutuantes (caso use floating-letter também) */
.floating-letter {
    position: absolute;
    font-family: 'Milonga', cursive;
    font-size: 50px;
    font-weight: bold;
    opacity: 1;
    white-space: nowrap;
    animation: moveRight linear infinite;
}

/* Título da página */
.ld-titulo-pagina {
    position: relative;
    z-index: 5;
    margin-top: 120px;
    font-family: 'Milonga', cursive;
    font-size: 42px;
    color: #4b2c20;
}

/* Animação */
@keyframes moveRight {
    from { transform: translateX(-100px); }
    to   { transform: translateX(100vw); }
}

/* ===============================
   SVG — TÍTULO EM ARCO
   =============================== */
#ld-title-svg {
    width: 850px;
    height: 210px;
    display: block;
    margin: 0 auto 5px;
    overflow: visible;
    position: relative;
    z-index: 3;
    animation: ld-title-appear 1.4s ease-out forwards;
    pointer-events: none;
}

@keyframes ld-title-appear {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ld-title-text {
    font-family: 'Milonga', serif;
    font-size: 70px;
    font-weight: 700;
    letter-spacing: 2px;
    fill: url(#ld-brown-gradient);
    stroke: #5a3a18;
    stroke-width: 2px;
    paint-order: stroke fill;
}

/* ===============================
   CONTROLES — BOTÕES + PESQUISA
   =============================== */
.ld-header-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: -10px; /* sobe os controles */
    width: 100%;
}

.ld-top-buttons, .ld-search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* ===============================
   BOTÕES UNIFICADOS — Cabeçalho, Login, Categorias
   =============================== */
.ld-btn, .ld-btn-marrom, .ld-category-btn {
    background-color: #5C3A21;
    color: #FFD700;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-family: 'Milonga', cursive;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ld-btn:hover, .ld-btn-marrom:hover, .ld-category-btn:hover {
    background-color: #7A5329;
    color: #ffe07f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.ld-btn:focus, .ld-btn-marrom:focus, .ld-category-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* ===============================
   BARRA DE PESQUISA
   =============================== */
.ld-search-bar input[type="text"] {
    padding: 5px 10px;
    border: 1px solid #c9b78b;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ld-search-bar input[type="text"]:focus {
    border-color: #a67c00;
    box-shadow: 0 0 5px rgba(255,215,0,0.7);
}

.ld-search-bar button {
    padding: 5px 12px;
    border: none;
    background-color: #5C3A21;
    color: #FFD700;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ld-search-bar button:hover {
    background-color: #7A5329;
    color: #ffe07f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ===============================
   LINHA ELEGANTE PRÓXIMA DAS CATEGORIAS
   =============================== */
#ld-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #5a3a18, #6b3e1a, #5a3a18);
    margin-top: 15px; /* diminui para aproximar dos controles */
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    z-index: 2;
    opacity: 0.9;
}

/* ===============================
   AJUSTE DE POSICIONAMENTO — CATEGORIAS E TÍTULOS
   =============================== */
.ld-section-title,
#ld-last-title {
    margin-top: 5px !important;
    text-transform: capitalize;
    font-size: 1em;
}

/* ===============================
   LAYOUT PRINCIPAL — 3 COLUNAS (CORRIGIDO)
   =============================== */
.main-container-3-col {
    display: grid;
    grid-template-columns: 180px 1fr 180px; /* aumenta espaço das colunas laterais */
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ===============================
   COLUNA DE CATEGORIAS — AJUSTE
   =============================== */
.category-column {
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px; /* aumenta espaçamento lateral */
    align-items: flex-start; /* garante que não grude nos blocos */
}

/* BOTÕES DAS CATEGORIAS — CORRIGIDO E UNIFICADO */
.category-column a {
    display: block;
    width: 100%;
    max-width: 160px;      /* largura ajustada */
    padding: 6px 10px !important;
    background-color: #6b3e1a;
    color: #f7e6b3 !important;
    text-align: center;
    border-radius: 6px;
    font-family: 'Milonga', cursive;
    font-size: 0.85em;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.category-column a:hover {
    background-color: #532b12;
    transform: translateY(-2px);
}

/* ===============================
   LIMITAR VISUAL DE ÚLTIMAS PUBLICAÇÕES
   =============================== */
#ld-last-publications > .ld-post-block {
    display: none; /* esconde todos por padrão */
}

#ld-last-publications > .ld-post-block:nth-child(-n+21) {
    display: block; /* mostra apenas os 21 primeiros */
}

/* ===============================
   SUBTÍTULO “Últimas Publicações”
   =============================== */
.latest-section .section-title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: 32px !important;
    text-align: center;
    text-transform: capitalize;
}

/* Grid de posts da seção “Últimas Publicações” */
.latest-posts {
    margin-top: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 40px;
}

.latest-posts .latest-block {
    background-color: #fff9f0;
    border: 2px solid #d6a84f;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.latest-posts .latest-block h3 {
    text-transform: capitalize !important; /* primeira letra maiúscula */
    text-align: center;
    margin-bottom: 4px;
    font-size: 1em !important;  /* menor que padrão Milonga */
    line-height: 1.2em;
}

.latest-posts .latest-block p.author,
.latest-posts .latest-block p.category {
    text-align: center;
    font-size: 0.9em;
    margin: 2px 0;
    font-style: italic;
    color: #6b3e1a;
}

.latest-posts .latest-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===============================
   AJUSTE FORÇADO DE POSICIONAMENTO — SUBTÍTULO E COLUNAS
   =============================== */

/* Remove espaço extra do container */
.main-container-3-col {
    padding-top: 1.5px !important;
}

/* Subtítulo Últimas Publicações */
.latest-section .section-title {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    font-size: 32px;
    text-align: center;
    text-transform: capitalize; /* Apenas a primeira letra maiúscula */
}

/* Colunas de categorias */
.category-column {
    margin-top: 0 !important;
}

.category-column a {
    padding: 3px 12px !important;  /* altura compacta */
    margin-bottom: 2px !important; /* mínimo entre botões */
    font-size: 0.95em;             /* fonte menor para Milonga */
}

/* ===============================
   TEXTOS EM DESTAQUE — BLOCOS, RESUMO E FAIXAS
   =============================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-block {
    position: relative;
    height: 160px;
    padding: 10px 25px; /* >10px na direita e esquerda para não encostar nas faixas */
    background-color: #fff9f0;
    border: 2px solid #d6a84f;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* ===============================
   NORMALIZAÇÃO E ALINHAMENTO — Textos em Destaque x Últimas Publicações
   =============================== */

/* Garantir box-sizing para evitar que padding quebre o grid */
.featured-grid,
.featured-grid * {
    box-sizing: border-box;
}

/* Forçar o mesmo max-width e centralização usados no layout principal */
.featured-section,
.featured-container,
.featured-grid {
    max-width: 1300px;    /* mesmo valor do .main-container-3-col corrigido */
    margin: 0 auto;
    padding: 0 20px;      /* alinha espaçamento interno com o restante da página */
}

/* Certificar-se que o grid realmente tem 3 colunas e o mesmo gap das Últimas Publicações */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;            /* mesmo gap das últimas publicações */
    align-items: start;
}

/* Tornar blocos responsivos sem estourar a largura do grid */
.featured-block {
    height: auto;         /* permite que o conteúdo dite a altura */
    min-height: 140px;    /* mantém proporção visual sem distorcer */
    padding: 12px 20px;   /* padding simétrico para casar com os blocos centrais */
}

/* Evitar que regras posteriores derrubem o layout desktop; respeitar media queries depois */
@media (max-width: 980px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr); /* aceita 2 colunas em tablets */
        gap: 18px;
    }
}
@media (max-width: 640px) {
    .featured-grid {
        grid-template-columns: 1fr; /* mobile: 1 por linha */
        gap: 14px;
    }
}

/* ===============================
   NORMALIZAÇÃO E ALINHAMENTO — Textos em Destaque x Últimas Publicações
   =============================== */

/* Garantir box-sizing para evitar que padding quebre o grid */
.featured-grid,
.featured-grid * {
    box-sizing: border-box;
}

/* Forçar o mesmo max-width e centralização usados no layout principal */
.featured-section,
.featured-container,
.featured-grid {
    max-width: 1300px;    /* mesmo valor do .main-container-3-col corrigido */
    margin: 0 auto;
    padding: 0 20px;      /* alinha espaçamento interno com o restante da página */
}

/* Certificar-se que o grid realmente tem 3 colunas e o mesmo gap das Últimas Publicações */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;            /* mesmo gap das últimas publicações */
    align-items: start;
}

/* Tornar blocos responsivos sem estourar a largura do grid */
.featured-block {
    height: auto;         /* permite que o conteúdo dite a altura */
    min-height: 140px;    /* mantém proporção visual sem distorcer */
    padding: 12px 20px;   /* padding simétrico para casar com os blocos centrais */
}

/* Evitar que regras posteriores derrubem o layout desktop; respeitar media queries depois */
@media (max-width: 980px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr); /* aceita 2 colunas em tablets */
        gap: 18px;
    }
}
@media (max-width: 640px) {
    .featured-grid {
        grid-template-columns: 1fr; /* mobile: 1 por linha */
        gap: 14px;
    }
}

/* Pequeno "reset" visual para garantir bordas alinhadas com últimas publicações */
.latest-section .latest-grid,
.featured-section .featured-grid {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Faixas verticais animadas nos lados */
.featured-block::before,
.featured-block::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5px; /* largura da faixa */
    background: linear-gradient(to bottom, rgb(0, 0, 255), #0f0, rgba(206, 197, 197, 0), #ff0, #f80, #fc0, rgba(214, 11, 4, 0.247));
    background-size: 100% 200%;
    animation: stripesMove 4s linear infinite;
    z-index: 1;
}

.featured-block::before { left: 0; }
.featured-block::after { right: 0; }

@keyframes stripesMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 -200%; }
}

/* Conteúdo do bloco acima das faixas */
.featured-block h3,
.featured-block p.autor,
.featured-block p.categoria {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
}

.featured-block h3 { margin-bottom: 4px; text-transform: uppercase; }
.featured-block p.autor { font-style: italic; font-size: 0.9em; color: #6b3e1a; }
.featured-block p.categoria { font-weight: bold; color: #6b3e1a; }

/* Resumo fixo na base do bloco */
.featured-block .summary-text {
    position: relative;
    max-height: 3.6em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    text-align: justify;
    line-height: 1.3em;
    font-size: 0.85em;
    font-family: Arial, sans-serif;
    padding-right: 5px; /* espaço extra interno à direita */
}

/* ===============================
   RESPONSIVO
   =============================== */
@media (max-width: 1200px) {
    .main-container-3-col { grid-template-columns: 150px 1fr 150px; gap: 15px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    #ld-title-svg { width: 480px; height: 180px; }
    .ld-title-text { font-size: 60px; stroke-width: 2px; }
}
@media (max-width: 800px) {
    .main-container-3-col { grid-template-columns: 1fr; }
    .category-column { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 15px; }
    .category-column a { margin: 4px; padding: 8px 12px; width: auto; }
    .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    #ld-title-svg { width: 360px; height: 140px; }
    .ld-title-text { font-size: 48px; stroke-width: 2px; }
    .ld-btn { padding: 6px 12px; font-size: 0.9em; }
    .ld-search-bar { flex-direction: column; gap: 8px; }
}

/* ============================
   PÁGINA DE CADASTRO — REFINADO
   ============================ */

#ld-cadastro-wrapper {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;

    /* fundo de pergaminho suave */
    background: #fcf3dd;

    /* borda estilizada */
    border: 4px solid #d4c19a;
    border-radius: 18px;

    /* leve ondulação artística */
    clip-path: polygon(
        0% 5%, 5% 0%, 95% 0%, 100% 5%,
        100% 95%, 95% 100%, 5% 100%, 0% 95%
    );

    box-shadow: 0 0 18px rgba(0,0,0,0.23);
    font-family: "Milonga", serif;
    color: #4d2d14;
}

/* TÍTULO */
.ld-cadastro-title {
    text-align: center;
    font-size: 2.2rem;
    color: #5a3c1f;
    margin-bottom: 30px;
    font-weight: normal;
    letter-spacing: 1px;
}

/* CAMPOS */
.ld-field {
    margin-bottom: 22px;
}

.ld-field label {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #4b2d15;
}

/* Inputs */
.ld-field input {
    width: 100%;
    padding: 15px;

    border: 2px solid #c6b89b;
    border-radius: 10px;

    background: #fffdfa;
    font-size: 1rem;

    color: #3a2a18;
    font-family: "Milonga", serif;

    transition: border-color .3s, box-shadow .3s;
}

/* Foco */
.ld-field input:focus {
    border-color: #8c6239;
    box-shadow: 0 0 8px rgba(140, 98, 57, 0.45);
    outline: none;
}

/* LGPD texto */
.ld-lgpd {
    margin: 20px 0;
    font-size: 1rem;
    color: #4d2d14;
}

/* BOTÃO — marrom + dourado */
.ld-btn-cadastro {
    width: 100%;
    padding: 16px;

    background: linear-gradient(180deg, #6b4421 0%, #4e2c14 100%);
    border: none;
    border-radius: 12px;

    color: #ffdd77;
    font-size: 1.3rem;
    font-family: "Milonga", serif;
    letter-spacing: 1px;

    cursor: pointer;
    text-shadow: 0 0 5px rgba(255, 205, 100, 0.6);
    transition: transform .2s, background .3s, box-shadow .4s;
}

/* Hover com brilho */
.ld-btn-cadastro:hover {
    transform: scale(1.03);
    background: linear-gradient(180deg, #7b512b 0%, #55331a 100%);
    box-shadow: 0 0 15px rgba(255, 220, 120, 0.45);
}

/* mensagens */
.ld-msg-erro,
.ld-msg-sucesso {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.ld-msg-erro {
    background: #ffdddd;
    border: 2px solid #d33;
    color: #700;
}

.ld-msg-sucesso {
    background: #ddffdd;
    border: 2px solid #3a3;
    color: #060;
}
/* ===============================
   Formulário de cadastro Letras Digitais
   =============================== */
.ld-form-cadastro {
    display: none; /* inicialmente escondido */
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(255, 248, 220, 0.95); /* pergaminho suave */
    border: 2px solid #a67c52; /* tom marrom pergaminho */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Milonga', cursive;
    z-index: 1000;
}

.ld-form-cadastro label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #5b3a21;
}

.ld-form-cadastro input[type="text"],
.ld-form-cadastro input[type="email"],
.ld-form-cadastro input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #a67c52;
    border-radius: 5px;
    font-size: 16px;
}

.ld-form-cadastro input:focus {
    border-color: #d98484; /* destaque ao receber foco */
    outline: none;
}

.ld-form-cadastro input[type="checkbox"] {
    margin-right: 5px;
}

.ld-form-cadastro button {
    background: #8b5e3c;
    color: gold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.ld-form-cadastro button:hover {
    background: #a67c52;
    color: #fff8dc;
}

/* opcional: animação suave ao aparecer */
.ld-form-cadastro.show {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ===============================
   Formulário de cadastro em modal
   =============================== */
.ld-modal {
    display: none; /* inicialmente escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* fundo escurecido */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.ld-modal.show {
    display: flex;
    animation: fadeInModal 0.3s ease-in-out forwards;
}

@keyframes fadeInModal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.ld-modal-content {
    background: rgba(255, 248, 220, 0.95); /* pergaminho */
    border: 2px solid #a67c52;
    border-radius: 10px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    position: relative;
    font-family: 'Milonga', cursive;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ld-modal-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #5b3a21;
}

.ld-modal-content input[type="text"],
.ld-modal-content input[type="email"],
.ld-modal-content input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #a67c52;
    border-radius: 5px;
    font-size: 16px;
}

.ld-modal-content input:focus {
    border-color: #d98484;
    outline: none;
}

.ld-modal-content input[type="checkbox"] {
    margin-right: 5px;
}

.ld-modal-content button {
    background: #8b5e3c;
    color: gold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.ld-modal-content button:hover {
    background: #a67c52;
    color: #fff8dc;
}

/* botão de fechar */
.ld-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #5b3a21;
    cursor: pointer;
}

.ld-modal-close:hover {
    color: #d98484;
}

#ld-form-cadastro {
    display: block !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 20px !important;
    position: relative !important;
    z-index: 9999 !important;
}

#ld-cadastro-wrapper {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* ============================================
   LOGIN PAGE – Letras Digitais (Limpinho)
   ============================================ */

/* Container geral do formulário */
.ld-form-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background-color: rgba(253, 244, 227, 0.9); /* tom pergaminho suave */
    border: 2px solid #d2b48c;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(3px);
    font-family: 'Milonga', cursive;
}

/* Título do formulário */
.ld-form-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: #4a2c0f;
}

/* Grupo de campos */
.ld-form-group {
    margin-bottom: 18px;
}

.ld-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #4a2c0f;
}

.ld-form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #b48553;
    border-radius: 8px;
    background-color: #fffdfa;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ld-form-group input:focus {
    border-color: #7a532b;
    box-shadow: 0 0 6px rgba(122,83,43,0.4);
    outline: none;
    background-color: #fffaf0;
}

/* Botão de login marrom/dourado */
.ld-btn-marrom {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    background-color: #5C3A21;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s;
}

.ld-btn-marrom:hover {
    background-color: #7A5329;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Mensagem de erro */
.ld-erro {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Links de login, esqueci a senha e cadastro */
.ld-login-links {
    text-align: center;
    margin-top: 15px;
}

.ld-login-links a {
    color: #5C3A21;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ld-login-links a:hover {
    color: #7A5329;
}

/* Separador elegante */
.ld-separador {
    border: none;
    border-top: 1px solid #d2b48c;
    margin: 20px auto;
    width: 70%;
    opacity: 0.7;
}
/* ================================
   PÁGINA PUBLICAR - ESTILO GERAL
   ================================ */
.publicar-container {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* TÍTULO DA PÁGINA */
.publicar-titulo {
    font-family: "Milonga", serif;
    font-size: 38px;
    text-align: center;
    margin-bottom: 30px;
    color: #4d2a18;
    font-weight: bold;
}

/* ================================
   BOTÕES DAS 20 CATEGORIAS
   ================================ */
.publicar-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.pub-cat-btn {
    background: #4b2b16;          /* marrom escuro */
    color: #d7b668;                /* dourado */
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #d7b668;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
    font-weight: bold;
}

.pub-cat-btn:hover {
    background: #6a3c1d;
    transform: scale(1.04);
}

/* ================================
   SUBCATEGORIAS
   ================================ */
.publicar-subcategorias {
    display: none;
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #bfa677;
    border-radius: 10px;
    background: #f6eddc;
}

.publicar-subcategorias.active {
    display: block;
}

.subcat-btn {
    display: inline-block;
    margin: 6px;
    padding: 8px 14px;
    background: #dec08e;
    border: 1px solid #8b6938;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.subcat-btn:hover {
    background: #f1d7a8;
    transform: scale(1.05);
}

/* ================================
   ÁREA DO FORMULÁRIO
   ================================ */
.publicar-form {
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    background: #fff4e6;
    border: 2px solid #c8a878;
    display: none;
}

.publicar-form.active {
    display: block;
}

/* TÍTULO DO TEXTO */
.pub-input-titulo {
    width: 100%;
    padding: 12px;
    font-size: 20px;
    border-radius: 8px;
    border: 2px solid #c8a878;
    margin-bottom: 20px;
}

/* CORPO DO TEXTO */
.pub-input-texto {
    width: 100%;
    height: 350px;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #c8a878;
    resize: vertical;
    font-size: 16px;
    line-height: 1.6;
    background: #fff;
}

/* ================================
   CLASSIFICAÇÃO INDICATIVA
   ================================ */
.classificacao-box {
    margin-top: 20px;
    padding: 10px 15px;
    border: 1px dashed #b08c5b;
    background: #fdf7f0;
    border-radius: 10px;
}

.classificacao-box label {
    font-weight: bold;
    margin-right: 10px;
    color: #4d2a18;
}

/* ================================
   AUTORES PREFERIDOS
   ================================ */
.autores-wrapper {
    margin-top: 25px;
    padding: 20px;
    border: 2px solid #c8a878;
    background: #fffaf3;
    border-radius: 12px;
}

.autores-wrapper h3 {
    margin-bottom: 12px;
    color: #4d2a18;
    font-size: 22px;
    font-family: "Milonga", serif;
}

.autor-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f2e2c7;
    border-radius: 8px;
    margin-bottom: 6px;
}

.autor-item span {
    font-weight: bold;
    color: #3b240f;
}

.autor-add {
    cursor: pointer;
    font-size: 22px;
    color: #4b2b16;
    font-weight: bold;
}

.autor-add:hover {
    color: #7a4a24;
}

/* ================================
   BOTÃO PUBLICAR
   ================================ */
.btn-publicar {
    width: 100%;
    margin-top: 30px;
    padding: 14px;
    background: #4b2b16;
    color: #ffd985;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid #d7b668;
    cursor: pointer;
    transition: 0.3s;
}

.btn-publicar:hover {
    background: #6a3c1d;
    transform: scale(1.03);
}

/* ================================
   ÁREA DE COMENTÁRIOS (850 palavras)
   ================================ */
.publicar-comentarios {
    margin-top: 35px;
    padding: 18px;
    background: #fffaf1;
    border: 2px solid #ccb089;
    border-radius: 10px;
}

.publicar-comentarios textarea {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    border: 2px solid #c8a878;
    padding: 12px;
    font-size: 15px;
    resize: vertical;
}
/* ============================================================
   ESTILOS DA PÁGINA "PUBLICAR"
   ============================================================ */

.ld-publicar-container {
    max-width: 1100px;
    margin: 40px auto;
    background: rgba(255, 248, 230, 0.88);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    font-family: "Milonga", serif;
}

.ld-publicar-titulo {
    text-align: center;
    font-size: 34px;
    margin-bottom: 25px;
    color: #4d2c0b;
    letter-spacing: 1px;
}

/* ===============================
   BOTÕES DAS CATEGORIAS PRINCIPAIS
   =============================== */

.ld-categorias-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.ld-cat-btn {
    background: #4b2b12;
    color: #ffd77f;
    border: 2px solid #3d210c;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.25s;
}

.ld-cat-btn:hover {
    background: #5b3417;
    transform: scale(1.05);
}

/* ===============================
   SUBCATEGORIAS
   =============================== */

#ld-subcategorias-wrapper {
    margin-bottom: 30px;
}

.ld-subcategorias-titulo h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 15px;
    color: #3d240d;
}

.ld-subcategorias-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ld-sub-btn {
    background: #7b5321;
    color: #ffe9b2;
    border: 2px solid #603d17;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
}

.ld-sub-btn:hover {
    background: #8d6329;
    transform: scale(1.05);
}

/* ===============================
   FORMULÁRIO PRINCIPAL
   =============================== */

#ld-publicar-form {
    background: #fff7e5;
    padding: 25px;
    border-radius: 12px;
    border: 3px solid #c8a878;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.13);
}

.ld-publicar-campos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ld-label {
    font-size: 18px;
    color: #3b210a;
    margin-bottom: 4px;
}

.ld-input,
.ld-textarea,
#ld-idade {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    border: 2px solid #bfa87c;
    border-radius: 8px;
    background: #fffaf0;
    font-family: Arial, sans-serif;
    transition: 0.25s;
}

.ld-input:focus,
.ld-textarea:focus,
#ld-idade:focus {
    border-color: #e0c07a;
    box-shadow: 0 0 6px #e0c07a;
}

/* ===============================
   CLASSIFICAÇÃO INDICATIVA
   =============================== */

.ld-classificacao-box {
    margin-top: 10px;
}

/* ===============================
   AUTORES PREFERIDOS
   =============================== */

.ld-autores-box {
    background: #fff3da;
    padding: 15px;
    border: 2px solid #d6b98a;
    border-radius: 12px;
}

.ld-autores-box ul {
    list-style: none;
    padding-left: 0;
}

.ld-autores-box li {
    padding: 4px 0;
    color: #4d2c0b;
    font-size: 15px;
}

.ld-add-btn {
    margin-top: 8px;
    background: #4b2b12;
    color: #ffd77f;
    font-size: 20px;
    padding: 4px 14px;
    border-radius: 8px;
    border: 2px solid #3a220e;
    cursor: pointer;
    transition: 0.25s;
}

.ld-add-btn:hover {
    background: #5c3619;
}

/* ===============================
   BOTÃO PUBLICAR
   =============================== */

.ld-publicar-btn {
    background: #4b2b12;
    color: #ffe49b;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 20px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid #3b230c;
    transition: 0.2s;
    font-weight: bold;
}

.ld-publicar-btn:hover {
    background: #5d3818;
    transform: scale(1.05);
}
/* =========================================================
   ESTILO APRIMORADO — PÁGINA PUBLICAR
   ========================================================= */

/* Container geral */
.publicar-container {
    background: #fff7e2;
    border: 2px solid #c9a86a;
    border-radius: 18px;
    padding: 35px;
    max-width: 1000px;
    width: 95%;
    margin: 50px auto;
    box-shadow: 0 0 22px rgba(0,0,0,0.15);
    font-family: 'Milonga', serif;
    position: relative;
    overflow: hidden;
}

/* Ondulações nas bordas */
.publicar-container::before,
.publicar-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M0 6 Q50 0 100 6 T200 6 T300 6 T400 6" fill="none" stroke="%23c9a86a" stroke-width="2"/></svg>');
    opacity: 0.6;
}

.publicar-container::before { top: -6px; }
.publicar-container::after { bottom: -6px; }

/* Título */
.publicar-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 34px;
    color: #5a3e1b;
}

/* Layout em duas colunas */
.publicar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* No mobile volta para uma coluna */
@media (max-width: 750px) {
    .publicar-grid {
        grid-template-columns: 1fr;
    }
}

/* Labels */
.publicar-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #5a3e1b;
}

/* Campos */
.publicar-container input[type="text"],
.publicar-container select,
.publicar-container textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1b37b;
    border-radius: 10px;
    background: #fffdf8;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Brilho ao focar */
.publicar-container input[type="text"]:focus,
.publicar-container select:focus,
.publicar-container textarea:focus {
    border-color: #b5832b;
    background: #fffaf0;
    box-shadow: 0 0 12px rgba(181,131,43,0.45);
    outline: none;
}

/* Área do texto */
.publicar-container textarea {
    height: 340px;
    resize: vertical;
}

/* Botão com animação */
.publicar-container button,
.publicar-container input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #7a4b23;
    color: #f4d58b;
    border: none;
    border-radius: 12px;
    font-size: 19px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    font-family: 'Milonga', serif;
    letter-spacing: 0.5px;
    transform: translateY(0);
}

/* Hover */
.publicar-container button:hover,
.publicar-container input[type="submit"]:hover {
    background: #8b5a2b;
    color: #ffe6a8;
    box-shadow: 0 4px 12px rgba(150,100,40,0.35);
}

/* Press effect */
.publicar-container button:active,
.publicar-container input[type="submit"]:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(150,100,40,0.2);
}

/* Caixa da pré-visualização */
.publicar-preview-box {
    margin-top: 40px;
    padding: 25px;
    background: #fffbe9;
    border: 2px solid #d3b57e;
    border-radius: 14px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.08);
}

.publicar-preview-box h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #5a3e1b;
}

.publicar-preview-content {
    white-space: pre-wrap;
    font-size: 17px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* ============================================================
   MINHA PÁGINA – ESTILIZAÇÃO COMPLETA
   Coerente com o tema Letras Digitais
   ============================================================ */

#ld-minha-pagina {
    font-family: "Milonga", serif;
    padding: 40px 0;
}

.ld-mp-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ----------- TÍTULO ----------- */

.ld-mp-title {
    font-size: 42px;
    color: #5a3a18;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #e8d8b3;
}

/* ----------- BOAS-VINDAS ----------- */

.ld-mp-boasvindas {
    font-size: 22px;
    color: #4b3216;
    margin-bottom: 30px;
    background: rgba(255, 248, 230, 0.75);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 12px;
    border: 2px solid #b8925d;
    box-shadow: 0 0 12px rgba(90, 58, 24, 0.15);
}

/* ----------- BOTÕES SUPERIORES ----------- */

.ld-mp-top-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.ld-mp-btn {
    background: linear-gradient(#7b4f24, #5a3a18);
    color: #f4d9a0;
    font-weight: bold;
    padding: 10px 22px;
    border-radius: 10px;
    border: 2px solid #40270f;
    text-decoration: none;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s;
}

.ld-mp-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.15);
}

/* ----------- GRID DE ÍCONES / SEÇÕES ----------- */

.ld-mp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* ----------- CAIXAS DOS BLOCO ----------- */

.ld-mp-box {
    background: rgba(255, 249, 235, 0.85);
    border: 3px solid #c7a979;
    padding: 35px 10px;
    border-radius: 18px;
    text-decoration: none;
    color: #4b3216;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.25s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    position: relative;
}

/* Ícones mais fortes e visíveis */
.ld-mp-box i {
    font-size: 42px;
    margin-bottom: 12px;
    color: #7b4f24;
    text-shadow: 1px 1px 0 #f8eacc;
}

/* Título dentro da caixa */
.ld-mp-box h3 {
    font-size: 22px;
    margin: 0;
    color: #5a3a18;
}

/* Hover bonito, elegante */
.ld-mp-box:hover {
    transform: translateY(-6px);
    background: rgba(255, 249, 235, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.16);
    border-color: #b18454;
}
/* ============================================================
   MINHA PÁGINA — VERSÃO COMPLETA FINAL
   ============================================================ */

#ld-minha-pagina {
    font-family: "Milonga", serif;
    padding: 40px 0 70px;
}

.ld-mp-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* -------------------------------------- */
/* TÍTULO PRINCIPAL */
/* -------------------------------------- */
.ld-mp-title {
    font-size: 48px;
    color: #5a3a18;
    margin-bottom: 12px;
    text-shadow: 1px 1px 0 #e8d8b3;
}

/* -------------------------------------- */
/* BOAS-VINDAS */
/* -------------------------------------- */
.ld-mp-boasvindas {
    font-size: 22px;
    color: #4b3216;
    margin-bottom: 35px;
    background: rgba(255, 248, 230, 0.8);
    padding: 12px 25px;
    border: 2px solid #b8925d;
    border-radius: 14px;
    display: inline-block;
    box-shadow: 0 0 12px rgba(90, 58, 24, 0.22);
}

/* -------------------------------------- */
/* BOTÕES SUPERIORES */
/* -------------------------------------- */
.ld-mp-top-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 45px;
}

.ld-mp-btn {
    background: linear-gradient(#7b4f24, #5a3a18);
    color: #f4d9a0;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #40270f;
    transition: 0.25s;
}

.ld-mp-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.12);
}

/* -------------------------------------- */
/* SEÇÕES */
/* -------------------------------------- */
.ld-mp-section {
    margin-top: 55px;
    text-align: center;
}

.ld-mp-section h2 {
    font-size: 30px;
    color: #5a3a18;
    padding-bottom: 8px;
    border-bottom: 3px solid #c7a979;
    display: inline-block;
    margin-bottom: 25px;
}

/* -------------------------------------- */
/* GRID DAS CAIXAS */
/* -------------------------------------- */
.ld-mp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    justify-items: center;
}

/* -------------------------------------- */
/* CAIXAS */
/* -------------------------------------- */
.ld-mp-box {
    width: 100%;
    max-width: 230px;
    background: rgba(255, 249, 235, 0.86);
    border: 3px solid #c7a979;
    border-radius: 18px;
    padding: 28px 10px;
    text-decoration: none;
    color: #4b3216;
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
    transition: 0.25s;
}

.ld-mp-box:hover {
    transform: translateY(-6px);
    border-color: #b18454;
    background: rgba(255, 249, 235, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.20);
}

/* -------------------------------------- */
/* ÍCONES COLORIDOS */
/* -------------------------------------- */
.ld-mp-ic {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
}

/* Texto das caixas */
.ld-mp-box h3 {
    font-size: 22px;
    margin: 0;
    color: #5a3a18;
}
/* ===============================
   PÁGINA DE LEITURA — CSS PREMIUM
   Letras Digitais
================================== */

/* -------------------------------
   CONTAINER PRINCIPAL
-------------------------------- */
#ld-reading {
    max-width: 860px;
    margin: 40px auto;
    padding: 20px 25px;
    background: rgba(255, 245, 225, 0.90);
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}


/* -------------------------------
   TÍTULO DO TEXTO
-------------------------------- */
.ld-reading-title h1 {
    font-family: 'Milonga', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #3a2400;
    text-align: center;
    letter-spacing: 1px;
}


/* -------------------------------
   CONTEÚDO DO TEXTO
-------------------------------- */
.ld-reading-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2a1800;
    margin-bottom: 35px;
}

.ld-reading-content p {
    margin-bottom: 18px;
}


/* ===============================
   AVALIAÇÃO 5 ESTRELAS
================================ */
.ld-rating-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7e7c2;
    border: 1px solid #d6b98a;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 30px 0;
}

.ld-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ld-star {
    font-size: 26px;
    cursor: pointer;
    color: #c4a257;      /* dourado fosco */
    transition: transform 0.2s ease, color 0.2s ease;
}

.ld-star:hover {
    transform: scale(1.25);
    color: #ffcc48;      /* dourado brilhante */
}

.ld-vote-count {
    font-size: 14px;
    color: #5c4421;
    margin-left: 6px;
}


/* ===============================
   BOTÕES: DENUNCIAR + EDITAR
================================ */
.ld-actions {
    display: flex;
    gap: 10px;
}

.ld-actions button {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    background: #5b3b1a;
    color: #fbd88c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.2s, background 0.2s;
}

.ld-actions button:hover {
    background: #6a4520;
    transform: translateY(-2px);
}


/* ===============================
   AUTORES INDICADOS
================================ */
.ld-suggested-authors {
    margin: 40px 0 30px;
}

.ld-suggested-authors h3 {
    font-family: 'Milonga', serif;
    color: #3a2400;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.ld-author-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ld-author-box button {
    padding: 7px 14px;
    border-radius: 6px;
    background: #f5e1b5;
    border: 1px solid #d0b078;
    cursor: pointer;
    font-size: 14px;
    color: #3f2c11;
    transition: background 0.25s;
}

.ld-author-box button:hover {
    background: #ffe7b8;
}


/* ===============================
   COMENTÁRIOS
================================ */
.ld-comment-box {
    margin-top: 35px;
    padding: 15px 18px;
    border: 1px solid #d4b98c;
    border-radius: 8px;
    background: #fff9ef;
}

.ld-comment-box h3 {
    font-family: 'Milonga', serif;
    font-size: 1.3rem;
    color: #3a2400;
    margin-bottom: 10px;
}

.ld-comment-box textarea {
    width: 100%;
    height: 110px;
    resize: vertical;
    font-size: 15px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d0b080;
    background: #fff8e8;
    color: #3d2a00;
    outline: none;
    transition: border-color 0.25s;
}

.ld-comment-box textarea:focus {
    border-color: #b68a4a;
    box-shadow: 0 0 4px rgba(180,140,70,0.5);
}

.ld-comment-send {
    margin-top: 12px;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #5b3b1a;
    color: #fbd88c;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.2s, background 0.2s;
}

.ld-comment-send:hover {
    background: #6a4520;
    transform: translateY(-2px);
}


/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 600px) {
    .ld-rating-wrapper {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .ld-actions {
        justify-content: center;
    }
}
/* ==========================================
   PÁGINA DE LEITURA — ESTILO DELUXE
   ========================================== */

#ld-reading {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 25px;
    background: rgba(255, 249, 238, 0.92);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
}

/* -------------------------------
   TÍTULO DO TEXTO
-------------------------------- */
.ld-reading-title h1 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* -------------------------------
   CONTEÚDO PRINCIPAL
-------------------------------- */
.ld-reading-content {
    font-size: 1.18rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 40px;
}

/* ==========================================
   AVALIAÇÃO — ESTRELAS
   ========================================== */

.ld-rating-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 10px 0;
    border-top: 1px solid #ccb88a;
    border-bottom: 1px solid #ccb88a;
}

.ld-stars {
    display: flex;
    align-items: center;
}

.ld-star {
    font-size: 28px;
    cursor: pointer;
    color: #c5b07a;
    transition: transform 0.15s, color 0.2s;
    margin-right: 6px;
}

.ld-star:hover {
    transform: scale(1.2);
    color: #e0c66d;
}

.ld-star.ld-selected {
    color: #ffcc00;
}

.ld-vote-count {
    font-size: 0.95rem;
    color: #6a5c3a;
    margin-left: 10px;
}

/* ==========================================
   BOTÕES DENUNCIAR + EDITAR
   ========================================== */

.ld-actions {
    display: flex;
    gap: 12px;
}

.ld-actions button {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
}

/* Denunciar */
.ld-report-btn {
    background: #b33a3a;
    color: #fff3d5;
}

.ld-report-btn:hover {
    background: #cc4343;
    transform: scale(1.05);
}

/* Editar */
.ld-edit-btn {
    background: #4d6fa5;
    color: #e9ecff;
}

.ld-edit-btn:hover {
    background: #5c7fc0;
    transform: scale(1.05);
}

/* ==========================================
   AUTORES INDICADOS
   ========================================== */

.ld-suggested-authors {
    margin-top: 40px;
}

.ld-suggested-authors h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.ld-author-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ld-author-box button {
    background: #f7efe0;
    border: 1px solid #c9b58a;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    font-size: 0.92rem;
}

.ld-author-box button:hover {
    background: #fff7e8;
    transform: scale(1.05);
}

/* ==========================================
   CAIXA DE COMENTÁRIOS
   ========================================== */

.ld-comment-box {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #ccb88a;
}

.ld-comment-box h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.ld-comment-box textarea {
    width: 100%;
    min-height: 90px;
    max-height: 160px;
    padding: 10px;
    border: 1px solid #b8a57f;
    border-radius: 8px;
    resize: vertical;
    font-size: 0.95rem;
    background: #fffdf8;
    transition: border-color 0.2s;
}

.ld-comment-box textarea:focus {
    border-color: #e1c27c;
    outline: none;
}

.ld-comment-send {
    margin-top: 10px;
    padding: 7px 15px;
    background: #806b45;
    color: #f9e7c0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}

.ld-comment-send:hover {
    background: #927b52;
    transform: scale(1.05);
}

/* ===============================
   Ajustes finais - Letras Digitais
   =============================== */

/* 1️⃣ Centraliza títulos das seções e define cor marrom escuro */
#ultimas-publicacoes h2,
#textos-em-destaque h2 {
    text-align: center;
    color: #5A2E1A; /* marrom escuro */
    font-weight: bold;
    margin-bottom: 20px;
}

/* 2️⃣ Ajusta largura e espaçamento dos botões de categoria */
.ld-category-button {
    max-width: 120px;      /* largura máxima desejada */
    padding: 8px 12px;     /* espaço interno */
    text-align: center;
    display: inline-block;
    margin: 5px;           /* espaçamento entre botões */
    white-space: nowrap;    /* impede quebra de linha */
    font-size: 14px;       /* ajuste da fonte */
}

/* =====================================================
   LETRAS DIGITAIS - STYLE.CSS FINAL FUNCIONAL
   ===================================================== */

/* ===============================
   GRID DAS CAIXAS (MENU, Destaques)
================================= */
.ld-mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    justify-items: center;
}

/* CAIXAS */
.ld-mp-box {
    width: 100%;
    max-width: 230px;
    background: rgba(255, 249, 235, 0.86);
    border: 3px solid #c7a979;
    border-radius: 18px;
    padding: 28px 10px;
    text-decoration: none;
    color: #4b3216;
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ld-mp-box:hover {
    transform: translateY(-6px);
    border-color: #b18454;
    background: rgba(255, 249, 235, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.20);
}

/* Ícones */
.ld-mp-ic {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
}

/* Títulos das caixas */
.ld-mp-box h3 {
    font-size: 22px;
    margin: 0;
    color: #5a3a18;
    text-align: center;
}

/* ===============================
   BLOCOS DE TEXTOS - Últimas Publicações
================================= */
.ld-text-block-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ld-text-block {
    background-color: #fdf6e3;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ld-text-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ld-text-block h3 a {
    color: #5A2E1A;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.ld-text-block h3 a:hover {
    color: #3f1f0f;
    text-decoration: underline;
}

.ld-text-block .autor,
.ld-text-block .categoria {
    font-style: italic;
    color: #5a3d2b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ld-text-block .summary-text {
    margin-top: auto;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #3e2b1f;
    display: none;
}

.ld-text-block:hover .summary-text {
    display: block;
}

/* ===============================
   LINKS DO SITE
================================= */
.latest-posts a,
.featured-grid a,
.ld-text-block a,
.latest-block a,
.post-content a,
.entry-content a {
    color: #5A2E1A;
    text-decoration: none;
    transition: 0.2s;
}

.latest-posts a:hover,
.featured-grid a:hover,
.ld-text-block a:hover,
.latest-block a:hover,
.post-content a:hover,
.entry-content a:hover {
    color: #3f1f0f;
    text-decoration: underline;
}

.latest-posts .latest-block p.category a,
.latest-posts .latest-block p.author a {
    color: #6b3e1a;
    text-decoration: underline;
}

/* ===============================
   FEATURED BLOCKS / TEXTOS EM DESTAQUE
================================= */
.featured-grid.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.featured-grid.post-grid .post-block.featured-block {
    flex: 1 1 calc(33.333% - 20px);
    min-height: 300px;
    background-color: #fdf6e3;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-grid.post-grid .post-block.featured-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured-grid.post-grid .post-block.featured-block h3 a {
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.featured-grid.post-grid .post-block.featured-block .autor,
.featured-grid.post-grid .post-block.featured-block .categoria {
    font-style: italic;
    color: #5a3d2b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.featured-grid.post-grid .post-block.featured-block .summary-text {
    margin-top: auto;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #3e2b1f;
    display: none;
}

.featured-grid.post-grid .post-block.featured-block:hover .summary-text {
    display: block;
}

/* ===============================
   FORMULÁRIO DE CADASTRO
================================= */
.ld-form-cadastro {
    background: #fdf6e3;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 20px auto;
    font-family: 'Milonga', cursive;
}

.ld-form-cadastro input,
.ld-form-cadastro textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ld-form-cadastro input:focus,
.ld-form-cadastro textarea:focus {
    border-color: #8b5e3c;
    box-shadow: 0 0 5px rgba(139,94,60,0.5);
    outline: none;
}

.ld-form-cadastro .ld-btn-cadastro {
    background-color: #8b5e3c;
    color: #ffd700;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.ld-form-cadastro .ld-btn-cadastro:hover {
    background-color: #a36f48;
    transform: translateY(-2px);
}

/* ===============================
   MENSAGENS DE SUCESSO/ERRO
================================= */
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.ld-msg.ld-msg-sucesso {
    background-color: #e0ffe0;
    color: #006400;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #00a000;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.6s forwards;
}

.ld-msg.ld-msg-erro {
    background-color: #ffe0e0;
    color: #800000;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ff0000;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(128, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.6s forwards;
}

/* ===============================
   RESPONSIVIDADE
================================= */
@media (max-width: 980px) {
    .ld-text-block-container,
    .latest-posts,
    .featured-grid.post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ld-text-block-container,
    .latest-posts,
    .featured-grid.post-grid {
        grid-template-columns: 1fr;
    }
    .category-column { display: none; }
}

/* ===============================
   FOOTER
================================= */
#ld-footer {
    background: #3d1f0f;
    color: #d9b878;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Milonga', serif;
    margin-top: 60px;
}

#ld-footer a {
    color: #d9b878;
    text-decoration: none;
    margin: 0 12px;
    font-weight: bold;
    transition: 0.2s;
}

#ld-footer a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.footer-top,
.footer-social,
.footer-bottom {
    margin-bottom: 20px;
}
/* ===============================
   ESCONDER TÍTULO AUTOMÁTICO DO WP
=============================== */
.site-title,
.page-title {
    display: none !important;
}

/* ===============================
   CABEÇALHO — CENTRALIZAÇÃO E ESTILO
=============================== */
#ld-header-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: url('../images/pergaminho.png') no-repeat center top;
    background-size: cover;
}

#ld-title-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.background-letters {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Milonga', cursive;
    font-size: 100px;
    color: rgba(200, 180, 150, 0.15); /* leve transparência */
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

#ld-title-svg {
    position: relative;
    z-index: 2;
}

/* ===============================
   BOTÕES + BARRA DE PESQUISA
=============================== */
#ld-header-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.ld-top-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ld-btn {
    background-color: #6b3e1a;
    color: #f7e6b3;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Milonga', cursive;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ld-btn:hover {
    background-color: #532b12;
    transform: translateY(-2px);
}

/* ===============================
   BARRA DE PESQUISA
=============================== */
.ld-search-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.ld-search-bar input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #a67c52;
    border-radius: 4px;
    font-family: 'Milonga', cursive;
}

.ld-search-bar button.ld-btn {
    background-color: #6b3e1a;
    color: #f7e6b3;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ld-search-bar button.ld-btn:hover {
    background-color: #532b12;
}

   Título pequeno invisível — proteção máxima
   ====================================================== */
#ld-floating-letters,
#ld-floating-letters * {
    display: block !important;   /* mantém o container, mas... */
    color: transparent !important; /* texto invisível */
    text-indent: -9999px !important; /* empurra qualquer texto para fora da tela */
    font-size: 0 !important;     /* impede que qualquer letra apareça */
    width: 0 !important;         /* evita que o span ocupe espaço */
    height: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* ===============================
   STYLE GERAL — Letras Digitais
   =============================== */

/* Fonte padrão */
body {
    font-family: 'Milonga', cursive;
    background-color: #fff9f0;
    color: #4b2c20;
    margin: 0;
    padding: 0;
}

/* ===============================
   LAYOUT PRINCIPAL — 3 COLUNAS
   =============================== */
.main-container-3-col {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0;
}

/* COLUNA DE CATEGORIAS */
.category-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.category-column a {
    display: block;
    width: 100%;
    max-width: 160px;
    padding: 3px 12px;
    margin-bottom: 2px;
    background-color: #6b3e1a;
    color: #f7e6b3;
    text-align: center;
    border-radius: 6px;
    font-family: 'Milonga', cursive;
    font-size: 0.95em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.category-column a:hover {
    background-color: #532b12;
    transform: translateY(-2px);
}

/* ===============================
   ÚLTIMAS PUBLICAÇÕES
   =============================== */
.latest-section .section-title {
    font-size: 32px;
    text-align: center;
    text-transform: capitalize;
    margin: 0 0 10px 0 !important;
}

.latest-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 40px;
}

.latest-posts .latest-block {
    background-color: #fff9f0;
    border: 2px solid #d6a84f;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.latest-posts .latest-block h3 {
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 4px;
    font-size: 1em;
    line-height: 1.2em;
}

.latest-posts .latest-block p.author,
.latest-posts .latest-block p.category {
    text-align: center;
    font-size: 0.9em;
    margin: 2px 0;
    font-style: italic;
    color: #6b3e1a;
}

.latest-posts .latest-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===============================
   LIMITAR VISUAL DE ÚLTIMAS PUBLICAÇÕES
   =============================== */
#ld-last-publications > .ld-post-block {
    display: none;
}
#ld-last-publications > .ld-post-block:nth-child(-n+21) {
    display: block;
}
.um-form-container, #um_upload_single {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* =========================
   PÁGINA DE CADASTRO – LETRAS DIGITAIS
   Container da página
========================= */

.ld-cadastro-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fcf4e3;
    border: 3px solid #d4b06b;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    font-family: "Milonga", serif;
}

/* Título da página */
.ld-cadastro-title {
    text-align: center;
    color: #8b5c2c;
    font-size: 32px;
    text-shadow: 1px 1px 0 #f9e79f;
    margin-bottom: 30px;
}

/* =========================
   FORMULÁRIO (ProfilePress)
========================= */

.pp-form-wrapper {
    background: transparent !important;
    padding: 0;
    border: none;
    box-shadow: none;
    font-family: inherit;
}

/* Título interno do formulário (se existir) */
.pp-form-wrapper h2 {
    text-align: center;
    color: #8b5c2c;
    font-size: 26px;
    margin-bottom: 20px;
}

/* Labels */
.pp-form-wrapper label {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: #5c3a18;
}

/* Campos */
.pp-form-wrapper input[type="text"],
.pp-form-wrapper input[type="email"],
.pp-form-wrapper input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #c8a45a;
    background: #fffaf0;
    font-size: 15px;
    font-family: Arial, sans-serif;
    transition: 0.3s;
}

/* Foco */
.pp-form-wrapper input:focus {
    outline: none;
    border-color: #8b5c2c;
    box-shadow: 0 0 5px rgba(139,92,44,0.5);
}

/* Checkbox */
.pp-form-wrapper input[type="checkbox"] {
    margin-right: 6px;
}

/* Botão */
.pp-form-wrapper input[type="submit"],
.pp-form-wrapper button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(#d4af37, #a67c00);
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-shadow: 1px 1px 2px #000;
    transition: 0.3s;
}

/* Hover botão */
.pp-form-wrapper input[type="submit"]:hover,
.pp-form-wrapper button:hover {
    background: linear-gradient(#f1c40f, #b8860b);
    transform: scale(1.02);
}

/* Mensagens */
.pp-form-wrapper .pp-error,
.pp-form-wrapper .pp-success {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.pp-form-wrapper .pp-error {
    background: #f8d7da;
    color: #721c24;
}

.pp-form-wrapper .pp-success {
    background: #d4edda;
    color: #155724;
}

/* reCAPTCHA */
.pp-form-wrapper .g-recaptcha {
    margin: 15px auto;
}

/* Remove listas feias */
.pp-form-wrapper ul {
    list-style: none;
    padding: 0;
}
.ld-comments-area{
margin-top:40px;
padding-top:20px;
border-top:1px solid #c2a36b;
}

.ld-comments-title{
color:#5a3e1b;
text-align:center;
margin-bottom:20px;
}

.comment-list{
margin-top:20px;
}

.comment-list li{
margin-bottom:15px;
padding:10px;
background:#fff7e2;
border-radius:8px;
}