/* --- Comments --- */
.comments-area { border-top: 1px solid var(--border); margin-top: 60px; padding-top: 40px; }
.comment-form { display: flex; flex-wrap: wrap; gap: 15px; }
.comment-form p { width: 100%; margin: 0; }
.comment-form-author, .comment-form-email { width: calc(50% - 8px); display: inline-block; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid #ddd; padding: 12px; background: #fafafa; border-radius: 4px; }
#respond input#submit { background: var(--red); color: #fff; border: none; padding: 14px 45px; font-weight: 700; text-transform: uppercase; cursor: pointer; border-radius: 4px; width: auto; display: inline-block; }

/* --- Pagination --- */
.archive-pagination { margin: 60px 0; display: flex; justify-content: center; width: 100%; clear: both; border-top: 1px solid var(--border); padding-top: 30px; }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-links .page-numbers { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #ddd; border-radius: 8px; font-weight: 700; font-size: 14px; color: #444; background: #fff; text-decoration: none; transition: all 0.2s ease; }
.nav-links .page-numbers:hover:not(.current) { border-color: var(--red); color: var(--red); }
.nav-links .current { background: var(--red); color: #fff; border-color: var(--red); cursor: default; }

/* --- Mobile Menu --- */
.mobile-menu { display: none; position: fixed; top: 60px !important; left: 0; width: 100%; height: calc(100vh - 60px); background: #fff; z-index: 9990; padding: 0; overflow-y: auto; border-top: 1px solid #eee; }
.mobile-nav { padding: 20px; }
.mobile-nav li { border-bottom: 1px solid #f0f0f0; width: 100%; }
.mobile-nav li a { display: flex;  width: 100%; padding: 18px 0; font-weight: 700; font-size: 18px; text-transform: uppercase; color: #111; font-family: var(--font-head); }
.mobile-nav li a::after { content: '→'; color: var(--red); opacity: 0.5; }

/* --- Modern Comment Bubbles --- */
.comment-list { padding: 0 !important; list-style: none !important; margin: 30px 0 !important; }
.comment-list .comment { margin-bottom: 25px !important; position: relative !important; display: block !important; }

/* Threaded Comments (Children) */
.comment-list .children { 
    list-style: none !important; 
    margin: -10px 0 20px 45px !important; 
    padding: 0 !important; 
    border-left: 3px solid #eee;
}
.comment-list .children .comment { margin-bottom: 15px !important; padding-left: 20px; position: relative; }
.comment-list .children .comment::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    width: 15px;
    height: 2px;
    background: #eee;
}

.comment-body { 
    background: #f8f9fa; 
    padding: 18px 22px; 
    border-radius: 20px 20px 20px 4px; 
    border: 1px solid #edf1f4; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    display: inline-block; 
    max-width: 90%; 
    position: relative;
    transition: transform 0.2s ease;
}
.comment-list .children .comment-body { 
    background: #ffffff; 
    border-radius: 4px 20px 20px 20px; 
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.comment-body:hover { transform: translateY(-2px); border-color: #dee2e6; }

.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author .fn { font-weight: 800; font-size: 15px; color: #222; font-family: var(--font-head); }
.comment-author img { width: 32px !important; height: 32px !important; border-radius: 50% !important; margin: 0 !important; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.comment-metadata { font-size: 11px; color: #999; margin-bottom: 8px; }
.comment-metadata a { color: #aaa !important; text-decoration: none !important; }

.comment-content { font-size: 16px; line-height: 1.5; color: #333; }
.comment-content p { margin: 0 !important; padding: 0 !important; }

.reply { margin-top: 10px; }
.reply a { font-size: 12px; font-weight: 700; color: var(--red) !important; text-transform: uppercase; text-decoration: none !important; }

/* Respond Form Location Fix */
#respond { margin-top: 20px; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 12px; }
.comment-list #respond { margin: 15px 0 30px 45px; border-color: var(--red); }

/* Dark Mode for Comments */
body.dark-mode .comment-body { background: #1e1e1e !important; border-color: #333 !important; box-shadow: none; }
body.dark-mode .comment-list .children { border-left-color: #333; }
body.dark-mode .comment-list .children .comment::before { background: #333; }
body.dark-mode .comment-author .fn { color: #eee !important; }
body.dark-mode .comment-content { color: #ccc !important; }
body.dark-mode .comment-author img { border-color: #444; }

@media (max-width: 768px) {
    .comment-body { max-width: 100%; padding: 15px; }
    .comment-list .children { margin-left: 20px !important; }
}

/* --- Feedback Modal --- */
.feedback-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.feedback-modal {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.feedback-modal h3 {
    margin: 0 0 20px;
    font-size: 22px;
    color: #222;
}
.feedback-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}
.feedback-close:hover { color: #333; }
#feedback-form input,
#feedback-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fafafa;
}
#feedback-form input:focus,
#feedback-form textarea:focus {
    outline: none;
    border-color: #bb1919;
    background: #fff;
}
.feedback-submit {
    background: #bb1919;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.feedback-submit:hover { background: #a31515; }
.feedback-status {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.feedback-status.success { color: #22a559; }
.feedback-status.error { color: #bb1919; }

/* Footer feedback button */
.feedback-btn {
    background: #bb1919;
    color: #fff !important;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
    width: 100%;
    text-align: center;
    display: block;
}
.feedback-btn:hover { background: #a31515; }

body.dark-mode .feedback-modal {
    background: #1e1e1e;
    border: 1px solid #333;
}
body.dark-mode .feedback-modal h3 { color: #eee; }
body.dark-mode #feedback-form input,
body.dark-mode #feedback-form textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #eee;
}
body.dark-mode #feedback-form input:focus,
body.dark-mode #feedback-form textarea:focus {
    border-color: #bb1919;
    background: #333;
}