/**
 * TEATIA COMENTÁRIOS - DESIGN PROFISSIONAL
 */

/* === SEÇÃO DE COMENTÁRIOS === */
#comments {
    background: white;
    border-radius: 25px;
    padding: 50px;
    margin: 50px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

#comments h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #c6a3d5;
    position: relative;
}

#comments h3::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #c6a3d5 0%, #b2cdd6 100%);
}

/* === LISTA DE COMENTÁRIOS === */
.commentlist,
ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment,
li.comment {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.comment-body {
    background: #fafafa;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    border-left: 4px solid #c6a3d5;
    transition: all 0.3s ease;
}

.comment-body:hover {
    background: #f5f2f6;
    border-left-color: #b2cdd6;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* === AVATAR === */
.comment .avatar,
.comment-author img {
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-right: 15px;
    float: left;
    width: 64px !important;
    height: 64px !important;
}

/* === METADATA === */
.comment-meta,
.comment-metadata {
    margin-bottom: 15px;
    overflow: hidden;
}

.comment-author {
    margin-bottom: 8px;
}

.comment-author .fn {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    font-style: normal;
}

.comment-author .fn a {
    color: #c6a3d5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author .fn a:hover {
    color: #b599c4;
}

.comment-author .says {
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

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

.comment-metadata a:hover {
    color: #c6a3d5;
}

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

.comment-metadata time::before {
    content: '🕒';
    font-size: 0.9rem;
}

.edit-link a,
.comment-edit-link {
    background: linear-gradient(135deg, #b2cdd6 0%, #9bb5bf 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.edit-link a:hover,
.comment-edit-link:hover {
    background: linear-gradient(135deg, #9bb5bf 0%, #8aa4ae 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(178, 205, 214, 0.4);
}

/* === CONTEÚDO DO COMENTÁRIO === */
.comment-content {
    clear: both;
    padding-top: 15px;
    line-height: 1.7;
    color: #2d3748;
}

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

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

/* === BOTÃO DE RESPOSTA === */
.reply {
    margin-top: 15px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c6a3d5 0%, #b599c4 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(198, 163, 213, 0.3);
}

.comment-reply-link::before {
    content: '↩️';
    font-size: 1rem;
}

.comment-reply-link:hover {
    background: linear-gradient(135deg, #b599c4 0%, #a388b3 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(198, 163, 213, 0.4);
}

/* === COMENTÁRIOS ANINHADOS === */
.children {
    list-style: none;
    margin: 20px 0 0 40px;
    padding: 0;
}

@media (max-width: 768px) {
    .children {
        margin-left: 20px;
    }
}

/* === FORMULÁRIO DE RESPOSTA === */
#respond,
.comment-respond {
    background: linear-gradient(135deg, #f9f7fa 0%, #f5f2f6 100%);
    border-radius: 25px;
    padding: 40px;
    margin-top: 40px;
    border: 2px solid #e8e1ea;
}

.comment-reply-title,
#reply-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: #2d3748;
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#cancel-comment-reply-link {
    font-size: 0.85rem;
    color: #ff6b9d;
    text-decoration: none;
    padding: 8px 15px;
    background: white;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
}

#cancel-comment-reply-link:hover {
    background: #ff6b9d;
    color: white;
    transform: scale(1.05);
}

/* === FORMULÁRIO === */
.comment-form,
#commentform {
    margin: 0;
}

.comment-form p,
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.comment-form .required {
    color: #ff6b9d;
    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.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: #c6a3d5;
    box-shadow: 0 0 0 4px rgba(198, 163, 213, 0.1);
}

.comment-form textarea,
#comment {
    min-height: 150px;
    resize: vertical;
}

/* Logged in */
.logged-in-as {
    background: white;
    border-left: 4px solid #b2cdd6;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.logged-in-as a {
    color: #c6a3d5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.logged-in-as a:hover {
    color: #b599c4;
    text-decoration: underline;
}

/* Mensagem de campos obrigatórios */
.required-field-message {
    display: inline-block;
    margin-left: 5px;
    color: #666;
    font-size: 0.9rem;
}

/* === BOTÃO DE SUBMIT === */
.form-submit {
    margin: 30px 0 0 0;
}

#submit,
.submit {
    background: linear-gradient(135deg, #c6a3d5 0%, #b2cdd6 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(198, 163, 213, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#submit:hover,
.submit:hover {
    background: linear-gradient(135deg, #b599c4 0%, #a1bac5 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 163, 213, 0.4);
}

/* === NAVEGAÇÃO DE COMENTÁRIOS === */
.navigation,
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 15px;
}

.navigation .alignleft,
.navigation .alignright,
.comment-navigation .nav-previous,
.comment-navigation .nav-next {
    flex: 1;
}

.navigation a,
.comment-navigation a {
    display: inline-block;
    background: white;
    color: #c6a3d5;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #c6a3d5;
    transition: all 0.3s ease;
}

.navigation a:hover,
.comment-navigation a:hover {
    background: #c6a3d5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 163, 213, 0.3);
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    #comments {
        padding: 30px 20px;
    }
    
    #respond,
    .comment-respond {
        padding: 25px 20px;
    }
    
    .comment-body {
        padding: 20px 15px;
    }
    
    .comment .avatar,
    .comment-author img {
        width: 48px !important;
        height: 48px !important;
        margin-right: 12px;
    }
    
    .comment-reply-title,
    #reply-title {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
