/* ===============================================
   SEÇÃO DE COMENTÁRIOS - COMMENTS SECTION
   Design moderno e limpo para área de comentários
   =============================================== */

/* Container Principal de Comentários */
.comments-area {
    margin: 60px 0;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Título da Seção */
.comments-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.comments-title svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Lista de Comentários */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 50px;
    margin-top: 20px;
}

/* Item de Comentário Individual */
.comment-body {
    display: flex;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px;
    background: #fafafa;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.comment-body:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

/* Avatar do Comentário com Ícone */
.comment-author-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(var(--primary-rgb), 0.7) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.comment-author-avatar svg {
    width: 35px;
    height: 35px;
    color: #ffffff;
    stroke-width: 2;
}

/* Conteúdo do Comentário */
.comment-content-wrap {
    flex: 1;
    min-width: 0;
}

/* Meta Informações */
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.comment-author {
    font-size: 1.05rem;
}

.comment-author b {
    font-weight: 700;
    color: var(--text-color);
}

.comment-author a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author a:hover {
    color: var(--primary-color);
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #6b7280;
}

.comment-metadata a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-metadata time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.edit-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Conteúdo do Comentário */
.comment-content {
    margin: 15px 0;
    line-height: 1.7;
    color: #4b5563;
    font-size: 0.95rem;
}

.comment-content p {
    margin: 0 0 10px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Aguardando Moderação */
.comment-awaiting-moderation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    color: #856404;
    font-size: 0.9rem;
    margin: 15px 0;
}

.comment-awaiting-moderation svg {
    width: 18px;
    height: 18px;
    color: #ffc107;
}

/* Botão de Responder */
.reply {
    margin-top: 15px;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary-color);
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.reply a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

/* Mensagem Sem Comentários */
.no-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    background: #f9fafb;
    border-radius: 15px;
}

.no-comments svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* ===============================================
   FORMULÁRIO DE COMENTÁRIOS
   =============================================== */

.comment-respond {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px solid #f0f0f0;
}

.comment-reply-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.comment-reply-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.comment-reply-title small {
    font-size: 0.75rem;
    font-weight: 400;
}

.comment-reply-title small a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-reply-title small a:hover {
    color: var(--primary-dark);
}

/* Notas do Formulário */
.comment-notes {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

/* Campos do Formulário */
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Botão de Enviar */
.form-submit {
    margin: 0;
}

.submit-comment-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.submit-comment-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}

.submit-comment-button svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* ===============================================
   NAVEGAÇÃO DE COMENTÁRIOS
   =============================================== */

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* ===============================================
   RESPONSIVIDADE
   =============================================== */

@media (max-width: 768px) {
    .comments-area {
        padding: 25px 20px;
        margin: 40px 0;
        border-radius: 15px;
    }
    
    .comments-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .comments-title svg {
        width: 26px;
        height: 26px;
    }
    
    .comment-body {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .comment-author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .comment-author-avatar svg {
        width: 28px;
        height: 28px;
    }
    
    .comment-list .children {
        padding-left: 25px;
    }
    
    .comment-respond {
        padding: 25px 20px;
        margin-top: 40px;
    }
    
    .comment-reply-title {
        font-size: 1.4rem;
    }
    
    .comment-reply-title svg {
        width: 24px;
        height: 24px;
    }
    
    .submit-comment-button {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .comments-area {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .comments-title {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .comment-body {
        padding: 15px;
    }
    
    .comment-respond {
        padding: 20px 15px;
    }
    
    .comment-reply-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .submit-comment-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
}
