/* ==========================================================
   COMMENTS AREA STYLING – The Network Bits Theme
   ========================================================== */

/* Comments Wrapper */
#comments,
.comments-area {
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    background-color: #f9f9f9;
}

/* Comments Title */
.comments-title {
    color: var(--tnb-primary, #0057b8);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--tnb-primary, #0057b8);
    padding-bottom: 0.5rem;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment,
.comment.depth-1 {
    margin-bottom: 2rem;
}

/* Comment Body */
.comment-body {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Comment Meta */
.comment-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Author Info */
.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-author .fn,
.comment-author .fn a {
    font-weight: 600;
    color: var(--tnb-primary, #0057b8);
    text-decoration: none;
}

/* Metadata Links (date/time) */
.comment-metadata {
    font-size: 0.875rem;
    color: #666;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

/* Comment Content */
.comment-content {
    margin: 1rem 0;
    line-height: 1.6;
}

/* Reply Link */
.reply {
    margin-top: 1rem;
}

.reply a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--tnb-primary, #0057b8);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.reply a:hover {
    background-color: #00408d;
}

/* Nested Replies */

.children::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 0;
    border-left: 1px dashed rgba(0,0,0,0.1);
}
.children {
    list-style: none;
    margin-left: 2rem;
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--tnb-primary, #0057b8);
}

/* ==========================================================
   COMMENT FORM STYLING
   ========================================================== */

.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-reply-title {
    color: var(--tnb-primary, #0057b8);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

/* Input Labels */
.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
}

/* Text Fields and Textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--tnb-primary, #0057b8);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 87, 184, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Post Comment Button */
.comment-form input[type="submit"],
#submit {
    background-color: var(--tnb-primary, #0057b8);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px; /* Fixed rounded edges */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.comment-form input[type="submit"]:hover,
#submit:hover {
    background-color: #00408d;
    transform: scale(1.03);
}

/* ==========================================================
   COMMENT NAVIGATION
   ========================================================== */

.comment-navigation {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous a,
.nav-next a {
    color: var(--tnb-primary, #0057b8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-previous a:hover,
.nav-next a:hover {
    text-decoration: underline;
}

/* ==========================================================
   NO COMMENTS
   ========================================================== */

.no-comments {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    color: #666;
    font-style: italic;
}
