/* ==========================================================================
   Comentários V2 - Estilos Modernos com Avatares e Aninhamento
   ========================================================================== */

/* Cores e variáveis */
:root {
    --comment-laranja-principal: #b33900;
    --comment-laranja-hover: #e65c2e;
    --comment-texto-escuro: #333;
    --comment-texto-claro: #555;
    --comment-borda-suave: #e9ecef;
    --comment-fundo-claro: #f8f9fa;
}

/* --- Container Principal --- */
.comments-v2-container {
    margin: 3em 0;
    font-family: sans-serif;
    border-top: 3px solid var(--comment-laranja-principal);
    padding-top: 2em;
}
.comments-v2-container h3, .comments-v2-container h4 {
    margin-top: 0;
    color: var(--comment-texto-escuro);
}
.comments-v2-container h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5em; }
.comments-v2-container h4 { font-size: 1.3rem; font-weight: 600; }

/* --- Lista e Itens de Comentário --- */
.comment-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--comment-borda-suave);
}
.comment-item:last-child { border-bottom: none; }
.comment-main-content { display: flex; gap: 15px; align-items: flex-start; }
.comment-text-content { flex: 1; }

/* --- Avatar do Usuário --- */
.comment-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Conteúdo do Comentário --- */
.comment-author {
    font-size: 0.9em;
    color: var(--comment-texto-claro);
    margin-bottom: 8px;
}
.comment-author strong {
    font-weight: 600;
    color: var(--comment-texto-escuro);
}
.comment-content p {
    margin: 0;
    line-height: 1.7;
    color: var(--comment-texto-claro);
    word-break: break-word;
}

/* --- Botão de Responder --- */
.reply-button, .reply-link {
    background: none;
    border: none;
    color: var(--comment-laranja-principal);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85em;
    padding: 5px 0;
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.reply-button:hover, .reply-link:hover {
    color: var(--comment-laranja-hover);
    text-decoration: underline;
}

/* --- Respostas Aninhadas --- */
.comment-replies {
    margin-left: 30px;
    padding-left: 25px;
    border-left: 3px solid var(--comment-borda-suave);
    margin-top: 20px;
}
@media (max-width: 600px) {
    .comment-replies { margin-left: 15px; padding-left: 15px; }
}

/* --- Formulário de Comentário --- */
.comment-form-container {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--comment-fundo-claro);
    border-radius: 8px;
    border: 1px solid var(--comment-borda-suave);
    text-align: center;
}
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-family: sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--comment-laranja-principal);
    box-shadow: 0 0 0 3px rgba(251, 117, 64, 0.2);
}
.comment-form button[type="submit"], .comment-form-container a.button {
    background-color: var(--comment-laranja-principal);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
	text-transform: uppercase;
    text-align: center;
	font-size: 1.1em;
}
.comment-form button[type="submit"]:hover, .comment-form-container a.button:hover {
    background-color: var(--comment-laranja-hover);
    color: white;
}

/* Mensagens de feedback */
.comment-form-message { margin-top: 15px; padding: 12px; border-radius: 6px; font-weight: 500; }
.comment-form-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.comment-form-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.reply-form-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--comment-borda-suave);
}

.reply-form-actions {
    display: flex;
    gap: 10px;
}

.cancel-reply-btn {
    background-color: #6c757d; /* Cinza */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-reply-btn:hover {
    background-color: #5a6268;
}