/* --- ESCORPO GERAL --- */
.comments-area {
    --comment-bg: #ffffff;
    --comment-card-bg: #f9f9f9;
    --comment-text-color: #333;
    --comment-border-radius: 12px;

    padding: 40px;
    background: var(--comment-bg);
    border-radius: var(--comment-border-radius);
    color: var(--comment-text-color);
}

@media (max-width: 768px) {
    .comments-area {
        padding: 0px;
    }
}

.comments-area .comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--comment-text-color);
}

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

.comments-area .comment-list li.comment {
    background: var(--comment-card-bg);
    border-radius: var(--comment-border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* Layout do Avatar e Texto */
.comments-area .comment-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.comments-area .comment-meta {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    width: 100%;
}

.comments-area .avatar {
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    width: 60px;
    height: 60px;
}

.comments-area .fn {
    font-style: normal;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--comment-text-color);
}

.comments-area .comment-metadata {
    margin-left: auto;
    font-size: 0.85rem;
    color: #999;
}

.comments-area .comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comments-area .comment-content {
    width: 100%;
    margin-left: 75px; 
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Botão de Responder (Link pequeno) */
.comments-area .reply {
    margin-left: 75px;
    margin-top: 15px;
}

.comments-area .comment-reply-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--comment-text-color);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    color: var(--comment-text-color);
}

.comments-area .comment-reply-link:hover {
    background: var(--primary);
    border: 1px solid var(--primary);
}

.comments-area .comment-list .children {
    list-style: none;
    padding-left: 0;
    margin-left: 20px;
    border-left: 2px solid #e5e7eb;
}
@media (min-width: 768px) {
    .comments-area .comment-list .children { margin-left: 50px; padding-left: 30px; }
}

.comments-area .comment-respond {
    background: var(--comment-card-bg);
    padding: 40px;
    margin-top: 30px;
    border-radius: var(--comment-border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.comments-area .comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: block;
}

.comments-area .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
    gap: 20px; 
}

/* Classes que devem ocupar a linha inteira */
.comments-area .comment-textarea, 
.comments-area .form-submit {
    grid-column: 1 / -1; 
}

/* O container do input (Nome/Email) */
.comments-area .comment-form-group {
    min-width: 0; /* Evita estouro do grid */
}

/* Estilo dos Inputs */
.comments-area .comment-form-group input,
.comments-area .comment-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fcfcfc;
    transition: all 0.3s;
    font-family: inherit;
    
    /* A CORREÇÃO MÁGICA: */
    box-sizing: border-box; 
    /* Garante que o padding não aumente a largura total */
}

.comments-area .comment-form-group input:focus,
.comments-area .comment-form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsividade para celular */
@media (max-width: 768px) {
    .comments-area .comment-form {
        grid-template-columns: 1fr; /* Vira uma coluna só no mobile */
    }
}

/* Botão de Enviar Principal */
.comments-area .submit-btn {
    background: var(--primary);
    color: #333;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comments-area .submit-btn:hover {
    filter: brightness(110%);
}

.comments-area .submit-btn .arrow {
    margin-left: 8px;
    transition: transform 0.2s;
}

.comments-area .submit-btn:hover .arrow {
    transform: translateX(5px);
}