/* ============================================================
   SECTION: COMMENTS (Single Post)
   ============================================================ */

/* 1. Comments Container & Layout */
#comments, #respond {
    max-width: 80% !important; /* Matches your single post content width */
    margin: 60px auto;
    padding: 0 20px;
    color: var(--color-text);
}

/* 2. Comments Title */
.comments-title, #reply-title {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* 3. Logged-in / Meta text */
.comment-notes, .logged-in-as {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Fix the "Logged in as..." links (Remove default WP blue & purple) */
.logged-in-as a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
.logged-in-as a:hover {
    color: var(--color-primary);
}

/* 4. Comment Form Labels */
.comment-form label {
    display: block;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* 5. The Textarea (Fixing the ugly white box) */
textarea#comment {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    background-color: var(--color-secondary); /* Dark input matching theme */
    color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

/* Textarea Focus State */
textarea#comment:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 6. The Submit Button (Matching your header buttons) */
.form-submit {
    margin-top: 20px;
}
#submit, .comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
#submit:hover, .comment-form input[type="submit"]:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}


/* ============================================================
   SECTION: PREVIOUS / NEXT POST NAVIGATION
   ============================================================ */

/* Fix the purple links at the top of your screenshot */
.post-navigation {
    max-width: 80%;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.post-navigation .nav-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.post-navigation .nav-links a:hover {
    color: var(--color-accent);
}

/* Previous arrow / Next arrow text */
.post-navigation .nav-previous::before { content: '← '; }
.post-navigation .nav-next::after { content: ' →'; }


/* ============================================================
   SECTION: EXISTING COMMENT LIST STYLING
   ============================================================ */
   
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.comment-list .comment {
    padding: 20px;
    margin-bottom: 16px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.comment-list .comment-meta a {
    color: var(--color-muted);
    text-decoration: none;
}
.comment-list .comment-meta a:hover {
    color: var(--color-white);
}
.comment-list .comment-author .fn {
    color: var(--color-white);
    font-weight: 700;
    font-style: normal;
}
.comment-list .comment-content {
    color: var(--color-text);
    margin-top: 10px;
    line-height: 1.6;
}
.comment-list .reply a {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, color 0.2s;
}
.comment-list .reply a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}