/* Force readable comment colors - Added Aug 7, 2025 */
.modern-comment, .visible-comment, .fighter-comment-item {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #dee2e6;
}

.modern-comment .comment-author, .visible-comment .comment-author, .fighter-comment-author {
    color: #000000 !important;
}

.modern-comment .comment-text, .visible-comment .comment-text, .fighter-comment-text {
    color: #333333 !important;
}

.modern-comment .comment-time, .visible-comment .comment-time, .fighter-comment-item small.text-muted {
    color: #555555 !important;
}

/* Fix comment action buttons - make them visible and accessible */
.comment-actions {
    opacity: 1 !important;
    display: block !important;
    margin-top: 8px !important;
}

.comment-action-btn {
    background: none !important;
    border: 1px solid #007bff !important;
    color: #007bff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    margin-right: 5px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.comment-action-btn:hover {
    background-color: #007bff !important;
    color: white !important;
}

.edit-comment-btn {
    border-color: #28a745 !important;
    color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.edit-comment-btn:hover {
    background-color: #28a745 !important;
    color: white !important;
}

.delete-comment-btn {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.delete-comment-btn:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Fix filter button styling */
.filter-btn {
    background-color: white !important;
    color: #6c757d !important;
    border: 1px solid #ced4da !important;
}

.filter-btn.active {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.filter-btn:hover:not(.active) {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

/* Expert Badge Styling */
.expert-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d2d2d !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #e6c200 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.expert-badge i {
    font-size: 0.85rem !important;
    color: #2d2d2d !important;
}

.expert-author {
    font-weight: 600 !important;
    color: #2d4a87 !important;
}

.expert-avatar {
    background: linear-gradient(135deg, #2d4a87, #3b5cb8) !important;
    color: white !important;
    font-weight: 700 !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Expert comment container highlighting */
.modern-comment:has(.expert-badge),
.visible-comment:has(.expert-badge) {
    border-left: 4px solid #ffd700 !important;
    background: linear-gradient(135deg, #ffffff, #fefdf8) !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1) !important;
}

/* Profile Picture Avatar Styling - Larger for better visibility */
.avatar-image {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    display: block !important;
}

.expert-avatar-image {
    border: 3px solid #ffd700 !important;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4) !important;
}

/* Ensure avatar container works with both images and initials */
.comment-avatar {
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 12px !important; /* Add some spacing from text */
}

/* Update avatar initials styling to match larger size */
.avatar-initials {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 18px !important; /* Larger font for bigger avatar */
    color: white !important;
    background: #6c757d !important;
    border: 3px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive adjustments for expert badges and avatars */
@media (max-width: 576px) {
    .expert-badge {
        font-size: 0.7rem !important;
        padding: 1px 6px !important;
        margin-left: 4px !important;
    }
    
    .expert-badge i {
        font-size: 0.75rem !important;
    }
    
    .avatar-image {
        width: 50px !important;
        height: 50px !important;
        border: 2px solid #dee2e6 !important;
    }
    
    .expert-avatar-image {
        border: 2px solid #ffd700 !important;
    }
    
    .comment-avatar {
        width: 50px !important;
        height: 50px !important;
        margin-right: 8px !important;
    }
    
    .avatar-initials {
        width: 50px !important;
        height: 50px !important;
        font-size: 16px !important;
        border: 2px solid #dee2e6 !important;
    }
}
