/* ============================================
   POST — Estilo Premium Revista Topazioverse
   ============================================ */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: "Merriweather", serif;
    background: #0a0a12;
    color: #e8e5ff;
    overflow-x: hidden;
}

/* Fundo + Partículas */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    opacity: .35;
}

/* ===========================
   ÁREA DO POST
=========================== */
.post-area {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 40px 25px;
    position: relative;
    background: rgba(20, 15, 35, 0.45);
    border-radius: 18px;
    backdrop-filter: blur(9px);
    border: 1px solid rgba(140, 120, 255, 0.18);
    box-shadow: 0 0 70px rgba(60, 40, 160, .25);
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

/* Título */
.post-area .titulo {
    font-size: 2.6rem;
    font-weight: 700;
    color: #f4efff;
    line-height: 3rem;
    text-shadow: 0 0 18px rgba(200, 130, 255, .5);
    margin-bottom: 14px;
}

/* Data */
.post-area .data {
    font-size: .95rem;
    color: #b39bff;
    margin-bottom: 22px;
    opacity: .9;
}

/* Imagem de capa */
.post-area .capa {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin: 18px 0;
    box-shadow: 0 0 35px rgba(140, 90, 255, 0.35);
}

/* Conteúdo */
.post-area .conteudo {
    margin-top: 25px;
    font-size: 1.12rem;
    color: #ddd8ff;
    line-height: 1.8rem;
    letter-spacing: .3px;
    font-family: "Merriweather", serif;
}

.post-area .conteudo p {
    margin-bottom: 18px;
}

.post-area .conteudo img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(160, 90, 255, 0.22);
}

/* ===========================
   COMENTÁRIOS
=========================== */
.comentarios {
    max-width: 900px;
    margin: 40px auto 100px;
    padding: 20px 25px;
}

.comentarios h2 {
    font-size: 1.9rem;
    margin-bottom: 22px;
    text-shadow: 0 0 12px rgba(160, 80, 255, 0.45);
}

/* Formulário */
.coment-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 35px;
    gap: 10px;
}

.coment-form textarea {
    width: 100%;
    height: 130px;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(160, 120, 255, 0.3);
    color: #fff;
    outline: none;
    resize: none;
    transition: .3s ease;
}

.coment-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(160, 100, 255, 0.35);
}

.coment-form button {
    width: 160px;
    padding: 11px 0;
    font-size: 1rem;
    color: white;
    background: linear-gradient(90deg, #6b37ff, #a765ff);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    align-self: flex-end;
    box-shadow: 0 0 20px rgba(150, 60, 255, .35);
    transition: .3s ease;
}

.coment-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(180, 100, 255, .45);
}

/* Aviso login */
.alert-login {
    font-size: 1rem;
    margin-bottom: 20px;
}

.alert-login a {
    color: #a57bff;
    font-weight: bold;
    text-decoration: underline;
}

/* Lista de comentários */
.coment-list .coment {
    background: rgba(35, 28, 60, 0.45);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(150, 90, 255, 0.2);
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.coment .meta {
    font-size: .9rem;
    color: #baaaff;
    margin-bottom: 6px;
}

.coment .meta strong {
    color: #dec8ff;
}

.coment .meta span {
    float: right;
    opacity: .8;
}

.coment p {
    font-size: 1rem;
    line-height: 1.5rem;
    color: #e1dbff;
}

.no-coment {
    font-size: 1.1rem;
    color: #b0a1db;
    margin-top: 15px;
}

/* Animação */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .post-area {
        padding: 30px 15px;
    }

    .post-area .titulo {
        font-size: 2rem;
        line-height: 2.4rem;
    }
}

.post-actions {
    text-align: center;
    margin: 25px 0;
}

#btnFavoritar {
    background: rgba(130, 60, 255, 0.35);
    border: 1px solid rgba(180, 120, 255, 0.55);
    box-shadow: 0 0 10px rgba(140, 90, 255, 0.35);
    padding: 10px 22px;
    color: #eee;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.25s ease;
}

#btnFavoritar:hover {
    background: rgba(160, 90, 255, 0.55);
}

#btnFavoritar.favorited {
    background: rgba(255, 130, 70, 0.45);
    border-color: rgba(255, 100, 40, 0.8);
    box-shadow: 0 0 15px rgba(255, 100, 40, 0.45);
}
