/*
 * Styles for the Comments Section (comments.php)
 * VERSION 2.0: Cleaned up and implemented CSS variables.
 */

.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--py-border-color); /* CHANGED: Used CSS variable */
}

.comments-title,
#reply-title {
    /* REMOVED: font-size, margin, font-weight, color are inherited from global h2/h3 styles */
}

/* --- Comment List --- */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f3f5;
}
.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-author .avatar {
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-body {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.comment-meta .fn { /* Author Name */
    font-weight: 600;
    font-style: normal;
    color: var(--py-secondary-color); /* CHANGED: Used CSS variable */
}

.comment-meta .comment-metadata a {
    color: var(--py-text-light); /* CHANGED: Used CSS variable */
    font-size: 0.85rem;
    /* REMOVED: text-decoration rules are now global */
}

.comment-content p {
    margin: 0 0 10px 0;
    line-height: 1.7;
    color: var(--py-text-color); /* CHANGED: Used CSS variable */
}

.reply .comment-reply-link {
    background-color: #f1f3f5;
    color: var(--py-text-color); /* CHANGED: Used CSS variable */
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}
.reply .comment-reply-link:hover {
    background-color: #e9ecef;
    color: var(--py-secondary-color); /* CHANGED: Used CSS variable */
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 20px;
}

/* --- Comment Form --- */
.comment-respond {
    margin-top: 30px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* REMOVED: Input, textarea, and focus styles are now handled by global.css */

/* Custom layout for Name and Email fields */
.comment-form-inputs {
    display: flex;
    gap: 20px;
}
.comment-form-inputs .comment-form-author,
.comment-form-inputs .comment-form-email {
    flex: 1;
}

.comment-form .submit-comment-btn {
    /* This is a custom button, but we can align it with the global .button-primary */
    background-color: var(--py-primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: var(--py-border-radius); /* CHANGED: Used CSS variable */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.comment-form .submit-comment-btn:hover {
    background-color: var(--py-primary-dark);
}

.no-comments {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: var(--py-border-radius); /* CHANGED: Used CSS variable */
    text-align: center;
    color: var(--py-text-light); /* CHANGED: Used CSS variable */
}

/* Responsive */
@media (max-width: 600px) {
    .comment-form-inputs {
        flex-direction: column;
        gap: 0;
    }
    .comment-list .children {
        padding-left: 20px;
    }
}