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

.comments-section {
    width: 100%;
    max-width: 1210px;
    margin: 64px auto 0;
    /*padding: 0 20px;*/
}

.comments-area {
    background: #ECF2F4;
    border-radius: 24px;
    padding: 32px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
}

/* Título da seção */
.comment-reply-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #21A7D2;
}

.comment-reply-title small {
    font-size: 14px;
    font-weight: 400;
    margin-left: 12px;
}

.comment-reply-title a {
    color: #666;
    text-decoration: none;
}

.comment-reply-title a:hover {
    color: #21A7D2;
    text-decoration: underline;
}

/* Notas do formulário */
.comment-notes {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 32px;
    padding: 12px 16px;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 3px solid #21A7D2;
}

.required {
    color: #E74C3C;
}

.required-field-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

/* Campos do formulário */
.comment-form p {
    margin-bottom: 24px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
    font-size: 15px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #21A7D2;
    box-shadow: 0 0 0 3px rgba(33, 167, 210, 0.1);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Checkbox de cookies */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 8px;
    margin-top: 32px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #21A7D2;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

/* Botão de envio */
.form-submit {
    margin-top: 40px;
}

#submit {
    background: #21A7D2;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Mulish', sans-serif;
}

#submit:hover {
    background: #1A8DB8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 167, 210, 0.2);
}

#submit:active {
    transform: translateY(0);
}

/* Estados de validação */
.comment-form input:invalid:not(:focus):not(:placeholder-shown),
.comment-form textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #E74C3C;
    background-color: #FFF5F5;
}

.comment-form input:valid:not(:focus):not(:placeholder-shown),
.comment-form textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #2ECC71;
}

/* Responsividade */
@media (max-width: 767px) {
    .comments-area {
        padding: 32px 24px;
    }
    
    .comment-reply-title {
        font-size: 24px;
    }
    
    .comment-form-cookies-consent {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    #submit {
        width: 100%;
        padding: 18px 24px;
    }
}

@media (max-width: 480px) {
    .comments-area {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .comment-reply-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .comment-notes {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Animações para foco nos campos */
@keyframes fieldFocus {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(33, 167, 210, 0);
    }
    to {
        transform: scale(1.005);
        box-shadow: 0 0 0 3px rgba(33, 167, 210, 0.1);
    }
}

.comment-form input:focus,
.comment-form textarea:focus {
    animation: fieldFocus 0.3s ease-out;
}

/* Estilo para campos desabilitados */
.comment-form input:disabled,
.comment-form textarea:disabled {
    background: #F5F5F5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ================================
   LISTA DE COMENTÁRIOS EXISTENTES
   ================================ */

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #21A7D2;
}

.comments-title span {
    color: #21A7D2;
    font-weight: 800;
}

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

.comment-list ol {
    list-style: none;
    margin-left: 60px;
    padding: 0;
}

.comment-body {
    background: #ffffff;
    border: 1px solid #E8F4F8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.comment-body:hover {
    border-color: #21A7D2;
    box-shadow: 0 6px 12px rgba(33, 167, 210, 0.08);
}

/* Metadados do comentário */
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.comment-author .avatar {
    display: none; /* Escondendo a foto conforme solicitado */
}

.comment-author .fn {
    font-weight: 700;
    font-size: 16px;
    color: #000000;
}

.comment-author .says {
    font-weight: 400;
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.comment-metadata {
    font-size: 13px;
    color: #888;
}

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

.comment-metadata a:hover {
    color: #21A7D2;
    text-decoration: underline;
}

.comment-metadata time {
    font-style: italic;
}

/* Conteúdo do comentário */
.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

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

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

.comment-content a {
    color: #21A7D2;
    text-decoration: underline;
}

.comment-content a:hover {
    color: #1A8DB8;
    text-decoration: none;
}

/* Link de responder */
.reply {
    margin-top: 20px;
    text-align: right;
}

.comment-reply-link {
    display: inline-block;
    padding: 8px 20px;
    background: #F0F9FD;
    color: #21A7D2;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #D1ECF6;
}

.comment-reply-link:hover {
    background: #21A7D2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 167, 210, 0.2);
}

/* Comentários em resposta (nível 2+) */
.comment.depth-2,
.comment.depth-3,
.comment.depth-4,
.comment.depth-5 {
    margin-left: 40px;
    background: #F8FBFD;
}

.comment.depth-2 .comment-body,
.comment.depth-3 .comment-body,
.comment.depth-4 .comment-body,
.comment.depth-5 .comment-body {
    background: #F8FBFD;
    border-color: #E1F0F7;
}

/* Alternância de cores para comentários pares/ímpares */
.comment.even .comment-body {
    background: #ffffff;
}

.comment.odd .comment-body {
    background: #FCFEFF;
}

/* Estados do comentário */
.bypostauthor .comment-body {
    border-left: 3px solid #21A7D2;
    background: #F8FCFE;
}

/* Responsividade para lista de comentários */
@media (max-width: 767px) {
    .comments-title {
        font-size: 24px;
        margin-bottom: 32px;
        padding-bottom: 16px;
    }
    
    .comment-body {
        padding: 20px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-list ol {
        margin-left: 30px;
    }
    
    .comment.depth-2,
    .comment.depth-3,
    .comment.depth-4,
    .comment.depth-5 {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .comment-body {
        padding: 16px;
    }
    
    .comment-list ol {
        margin-left: 15px;
    }
    
    .comment.depth-2,
    .comment.depth-3,
    .comment.depth-4,
    .comment.depth-5 {
        margin-left: 10px;
    }
}

/* Separador visual entre comentários */
.comment-list > li:not(:last-child) {
    margin-bottom: 32px;
}

/* Efeito de foco para navegação por teclado */
.comment-body:focus-within {
    border-color: #21A7D2;
    box-shadow: 0 0 0 3px rgba(33, 167, 210, 0.1);
}

.wp-content-container h2.comments-title {
  font-size: 24px;
  line-height: 1.25;
}