/* Restored original styles that were previously inline in noticia.html */

/* ===== BOTÃO VOLTAR FIXO ===== */
.back-btn-fixed{
  position: fixed;
  top: 90px;
  left: 20px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--branco);
  color: var(--preto);
  border: 2px solid var(--cinza-medio);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.back-btn-fixed:hover{
  background: var(--vermelho);
  color: var(--branco);
  border-color: var(--vermelho);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(190, 19, 17, 0.3);
}

@media (max-width: 480px){
  .back-btn-fixed{ top: 80px; left: 10px; width: 45px; height: 45px; font-size: 1.1rem; }
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--cinza-claro);
    margin: 0;
    color: var(--preto);
}

.pagina-noticia-container {
    max-width: 1120px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 32px 16px 48px;
}

.barra-superior-noticia {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.titulo-secao-noticia {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cinza-escuro);
    font-weight: 600;
}

.link-voltar-noticia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    text-decoration: none;
    color: var(--azul);
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cinza-claro);
    transition: background .2s, transform .1s;
}
.link-voltar-noticia:hover {
    background: var(--cinza-medio);
    transform: translateY(-1px);
}

.layout-noticia {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .layout-noticia {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cartao-noticia {
    background: var(--branco);
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(15,23,42,.08);
    overflow: hidden;
}

.midia-noticia {
    position: relative;
    background: linear-gradient(135deg, var(--azul), var(--laranja));
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cinza-medio);
}
.midia-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.midia-noticia-placeholder {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.corpo-noticia {
    padding: 24px 24px 28px;
}

.titulo-noticia {
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--preto);
}

.meta-noticia {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: var(--cinza-escuro);
    margin-bottom: 20px;
}
.meta-noticia span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.meta-noticia .ponto {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cinza-medio);
}

.conteudo-noticia {
    font-size: 16px;
    line-height: 1.7;
    color: var(--preto);
}
.conteudo-noticia p {
    margin: 0 0 1em;
}

.bloco-tags-noticia {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.titulo-tags-noticia {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cinza-medio);
    margin-bottom: 8px;
}
.lista-tags-noticia {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-noticia {
    font-size: 13px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cinza-claro);
    color: var(--azul);
    border: 1px solid var(--cinza-medio);
    transition: background .2s, transform .1s, box-shadow .1s;
}
.tag-noticia:hover {
    background: var(--cinza-medio);
    box-shadow: 0 4px 10px rgba(37,99,235,.18);
    transform: translateY(-1px);
}

.bloco-compartilhar-noticia {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.bloco-compartilhar-noticia span {
    font-size: 13px;
    color: var(--cinza-escuro);
    text-transform: uppercase;
    letter-spacing: .16em;
}
.botoes-compartilhar-noticia {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.botao-compartilhar-noticia {
    font-size: 13px;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background: var(--cinza-claro);
    text-decoration: none;
    color: var(--cinza-escuro);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, transform .1s, box-shadow .1s;
}
.botao-compartilhar-noticia:hover {
    background: var(--cinza-medio);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(148,163,184,.35);
}

/* ======= LATERAL (SIDEBAR) ======= */
.titulo-sidebar-noticia {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #9ca3af;
    margin-bottom: 8px;
}
.cartao-sidebar-noticia {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.lista-sidebar-noticia {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.item-sidebar-noticia a {
    text-decoration: none;
    font-size: 15px;
    color: #111827;
}
.item-sidebar-noticia a:hover {
    color: #1d4ed8;
}
.item-sidebar-noticia small {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

/* ===== SEÇÃO DE FEEDBACK ===== */
.secao-feedback-noticia {
    margin-top: 48px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--azul);
}

.titulo-feedback {
    font-size: 24px;
    font-weight: 700;
    color: var(--preto);
    margin: 0 0 12px;
}

.texto-feedback {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px;
}

.form-feedback {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-feedback {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label-feedback {
    font-size: 16px;
    font-weight: 600;
    color: var(--preto);
}

.rating-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--branco);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.01;
    cursor: pointer;
    margin: 0;
    padding: 0;
    z-index: 2;
    pointer-events: auto;
    background: transparent;
    border: none;
}

.rating-label:hover {
    border-color: var(--azul);
    background: #f0f8ff;
}

.rating-input:checked + .rating-value {
    background: var(--azul);
    color: var(--branco);
}

.rating-label:has(.rating-input:checked) {
    border-color: var(--azul);
    background: #f0f8ff;
}

.rating-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-weight: 700;
    font-size: 16px;
    color: var(--preto);
    border-radius: 4px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.textarea-feedback {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--preto);
    resize: vertical;
    transition: border-color 0.3s ease;
}

.textarea-feedback:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.texto-ajuda {
    font-size: 12px;
    color: #9ca3af;
}

.btn-enviar-feedback {
    padding: 12px 24px;
    background: var(--azul);
    color: var(--branco);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-enviar-feedback:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-enviar-feedback:active {
    transform: translateY(0);
}

.btn-enviar-feedback:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mensagem-feedback {
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 12px;
}

.mensagem-feedback.sucesso {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.mensagem-feedback.erro {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

@media (max-width: 640px) {
    .pagina-noticia-container{
        padding:20px 12px 40px;
        margin-top:10px;
    }
    
    .barra-superior-noticia{
        flex-direction:column;
        align-items:flex-start;
        margin-bottom:16px;
    }
    
    .secao-feedback-noticia {
        padding: 20px 14px;
    }

    .titulo-feedback {
        font-size: 18px;
    }

    .rating-container {
        gap: 6px;
        justify-content:center;
    }

    .rating-label {
        width: 40px;
        height: 40px;
    }

    .rating-value {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .cartao-noticia{
        border-radius:12px;
    }
    
    .conteudo-noticia{
        padding:20px 16px;
    }
    
    .titulo-noticia{
        font-size:1.5rem;
        line-height:1.3;
    }
    
    .meta-noticia{
        font-size:0.85rem;
        flex-wrap:wrap;
    }
    
    .corpo-noticia{
        font-size:1rem;
        line-height:1.7;
    }
    
    .btn-enviar-feedback{
        width:100%;
        justify-content:center;
    }
}
