/* =============== COMMENT AREA =============== */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border, #eee);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--color-text-main, #333);
}

/* List of comments */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--color-border, #eee);
}

.comment-list .comment-body {
    display: flex;
    gap: 20px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-meta .fn {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-main, #333);
    text-transform: capitalize;
}

.comment-metadata a {
    font-size: 0.85rem;
    color: var(--color-text-light, #777);
    text-decoration: none;
}

.comment-content {
    font-size: 1rem;
    color: var(--color-text-main, #444);
    line-height: 1.6;
}

.reply a {
    display: inline-block;
    background: var(--color-surface-hover, #f0f0f0);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text-main, #333);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.reply a:hover {
    background: var(--color-primary, #0073aa);
    color: #fff;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    background: var(--color-surface, #fff);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.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: var(--color-primary, #0073aa);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .btn-submit {
    background: var(--color-primary, #0073aa);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form .btn-submit:hover {
    background: var(--color-primary-hover, #005a87);
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    font-size: 0.9rem;
    color: var(--color-text-light, #777);
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.comment-form .comment-form-cookies-consent input {
    width: auto;
}

/* Nested comments */
.comment-list .children {
    list-style: none;
    margin: 20px 0 0 0;
    padding-left: 40px;
    border-left: 2px solid var(--color-border, #eee);
}

@media (max-width: 768px) {
    .comment-list .comment-body {
        flex-direction: column;
        gap: 15px;
    }
    
    .comment-list .children {
        padding-left: 20px;
    }
    
    .comment-respond {
        padding: 20px;
    }
}
