/* Custom CSS to match the original comment design */

/* Comments container */
#wpdcom {
    margin-top: 20px;
}

/* Comments heading */
#wpdcom .wpd-thread-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#wpdcom .wpd-thread-head .wpd-thread-info {
    display: flex;
    align-items: center;
}

#wpdcom .wpd-thread-head .wpd-thread-info::before {
    content: "\f075";
    font-family: "FontAwesome";
    margin-right: 10px;
    color: #666;
}

/* Comment list styling to match original */
#wpdcom .wpd-thread-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

#wpdcom .wpd-comment {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Comment author styling */
#wpdcom .wpd-comment-author {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

#wpdcom .wpd-avatar {
    margin-right: 15px;
}

#wpdcom .wpd-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* User position badge */
#wpdcom .wpd-comment-author .user-position {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 10px;
}

/* Comment content */
#wpdcom .wpd-comment-text {
    flex: 1;
}

#wpdcom .wpd-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#wpdcom .wpd-comment-author-name {
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

#wpdcom .wpd-comment-date {
    color: #666;
    font-size: 13px;
}

#wpdcom .wpd-reply-button {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

#wpdcom .wpd-reply-button:before {
    content: "\f112";
    font-family: "FontAwesome";
    margin-right: 5px;
}

/* Comment text content */
#wpdcom .wpd-comment-text p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* Reply/children comments */
#wpdcom .wpd-reply {
    margin-left: 47px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

/* Comment form styling */
#wpdcom .wpd-form-wrap {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Buttons styling to match original theme */
#wpdcom .wpd-prim-button,
#wpdcom .btn-primary {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

#wpdcom .wpd-prim-button:hover,
#wpdcom .btn-primary:hover {
    background: #005a87;
}

/* Load more button */
#wpdcom .wpd-load-more-submit-wrap {
    text-align: center;
    margin: 20px 0;
}

#wpdcom .wpd-load-more-submit {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

#wpdcom .wpd-load-more-submit:hover {
    background: #007cba;
    color: white;
}

/* Hide WPDiscuz default styling that conflicts */
#wpdcom .wpd-thread-head .wpd-thread-filter,
#wpdcom .wpd-thread-head .wpd-thread-sorting {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #wpdcom .wpd-reply {
        margin-left: 20px;
        padding-left: 10px;
    }
    
    #wpdcom .wpd-comment-head {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #wpdcom .wpd-comment-date,
    #wpdcom .wpd-reply-button {
        margin-top: 5px;
    }
}

/* Integration with existing theme styles */
#wpdcom .heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#wpdcom .heading i {
    margin-right: 10px;
    color: #666;
}

/* Up arrow button styling */
.uptop {
    display: inline-block;
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
}

.uptop:hover {
    background: #e9ecef;
    color: #333;
}
