/* Features: Threaded Reply Layout, Dynamic Badge Colors, Glassmorphism Forms, Responsive Avatars */

.comment-section {
    margin-top: 50px;
    background: rgba(30, 41, 59, 0.3);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #f1f5f9;
}

.main-comment-form textarea, .reply-form-container textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    color: #f1f5f9;
    resize: none;
    height: 100px;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
}

.main-comment-form textarea:focus { border-color: #38bdf8; }

.main-comment-form button, .reply-form-container button {
    background: #38bdf8;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.comment-block {
    margin-top: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.user-avatar { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #38bdf8; }
.user-avatar-sm { width: 35px; height: 35px; border-radius: 50%; border: 1.5px solid #94a3b8; }

.user-name { font-weight: 700; color: #f1f5f9; }
.user-name-sm { font-weight: 600; color: #cbd5e1; font-size: 14px; }

/* Badge Colors */
.user-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; font-weight: 800; }
.badge-pixel-legend { background: #f59e0b; color: #000; }
.badge-loyal-reader { background: #38bdf8; color: #000; }
.badge-active-member { background: #22c55e; color: #000; }
.badge-new-reader { background: #94a3b8; color: #000; }

.comment-text { color: #cbd5e1; line-height: 1.6; margin-left: 57px; }
.reply-text { color: #94a3b8; line-height: 1.5; margin-left: 47px; font-size: 15px; }

.comment-actions { margin-left: 57px; margin-top: 10px; display: flex; gap: 15px; }

.btn-reply, .btn-show-replies {
    background: none;
    border: none;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.replies-wrapper {
    margin-left: 57px;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(56, 189, 248, 0.2);
}

.reply-block { margin-bottom: 20px; }